diff options
| author | Mark Rowe <mark@vector35.com> | 2026-03-18 22:58:20 -0700 |
|---|---|---|
| committer | Mark Rowe <mark@vector35.com> | 2026-03-19 08:43:51 -0700 |
| commit | cbc66f931da1046b3980c2c7c6b64c2f2ac358e2 (patch) | |
| tree | 3483e6c6d37ab18c7698c5148e61f6a715a6472c /highlevelilinstruction.h | |
| parent | eeceddfaf7c8d2ef4a9feed5dc2abb1dcc498b76 (diff) | |
Fix operand list iterators being validated when appending new instructions
The iterators now store an offset into the operand storage, rather than
a pointer. Deferencing the iterator retrieves the value at that offset
from the IL function.
This issue existed prior to the operand list storage refactor, but
became easier to hit after that change. The separate operand list vector
is smaller and thus more likely to reallocate when a new instruction is
appended.
Diffstat (limited to 'highlevelilinstruction.h')
| -rw-r--r-- | highlevelilinstruction.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/highlevelilinstruction.h b/highlevelilinstruction.h index 93152241..bf2b5162 100644 --- a/highlevelilinstruction.h +++ b/highlevelilinstruction.h @@ -196,7 +196,7 @@ namespace BinaryNinja #else Ref<HighLevelILFunction> function; #endif - const uint64_t* cur; + size_t offset; size_t count; bool operator==(const ListIterator& a) const; |
