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

Proper lifting of atomic operations

Open alexrp opened this issue 1 year ago • 1 comments

As I'm delving deeper into multithreaded code, the lack of proper lifting for atomic operations is starting to become a bit of a problem.

Some examples:

image image

There's no obvious indicator that these are actually lock cmpxchg and lock inc respectively. You'd only realize that if you switch over to disassembly. This can lead to bugs if I start writing code that interoperates with the decompiled code in question but doesn't do operations atomically because I missed that detail.

(Is this already tracked somewhere? I seem to recall it being discussed on other issues, but couldn't find anything.)

alexrp avatar Feb 16 '24 21:02 alexrp

It's not an answer but same question here: https://github.com/Vector35/arch-arm64/discussions/117

yrp604 avatar Feb 17 '24 03:02 yrp604