clslgrnc / tbrop

Unguarded next inside generator PTC-W0063
Bug risk
Critical
10 months ago10 months old
Call to next() should be wrapped in try-except
 94        for address in self.gentryPoints:
 95            gadget = Gadget(
 96                self.arch,
 97                [next(self.md.disasm(self.data[address:], address, 1))], 98                max_cost=max_cost,
 99            )
100            gadget_bytes = gadget.bytes()