quokka icon indicating copy to clipboard operation
quokka copied to clipboard

Bugfix: IDA mnemonics fallback for architectures not supported by capstone

Open dominikbayerl opened this issue 2 years ago • 1 comments

quokka.CapstoneErrors are currently not handled appropriately, i.e. if you try to get instruction listings for an architecture not supported by capstone, you receive the error quokka.exc.CapstoneError: Unable to find the Architecture: https://github.com/quarkslab/quokka/blob/2f1d4ccd708146d02d700e4f1e49f1e57df6dda7/bindings/python/quokka/backends/capstone.py#L68-L71

This patch addresses this, by handling quokka.CapstoneError with a proper fallback to the IDA disassembly, at least for instruction mnemonics.

dominikbayerl avatar Sep 25 '23 13:09 dominikbayerl

N.B.: I am not entirely sure, if this should better be handled here: https://github.com/dominikbayerl/quokka/blob/2f1d4ccd708146d02d700e4f1e49f1e57df6dda7/bindings/python/quokka/instruction.py#L171-L182

dominikbayerl avatar Sep 25 '23 13:09 dominikbayerl