binaryninja-api icon indicating copy to clipboard operation
binaryninja-api copied to clipboard

Fix unexpected behavior in BasicBlockList iteration

Open SmoothHacker opened this issue 1 year ago • 0 comments

The culprit here is the _n class member which serves as the counter for the __next__ function. That needs to be reset when iterating through the list. Making a new instance fixes that issue. Fixes #4736

SmoothHacker avatar Oct 06 '24 19:10 SmoothHacker