binaryninja-api
binaryninja-api copied to clipboard
Fix unexpected behavior in BasicBlockList iteration
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