mirror of
https://github.com/eshard/obfuscator-llvm
synced 2026-06-08 14:07:01 +00:00
be910da926
When a basic block has exactly as many instructions as splitN (e.g. 2 instructions with default splitN=2), the bound check `splitN > curr->size()` was false so splitN was not capped. The `test` vector only has `curr->size()-1` entries, causing an out-of-bounds access on `test[i]` and a crash. Change `>` to `>=` so splitN is correctly capped to `curr->size()-1`. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>