draperlaboratory / cbat_tools

Program analysis tools developed at Draper on the CBAT project.
MIT License
102 stars 14 forks source link

Incorrect handling of SP on ARM+thumb #311

Closed codyroux closed 3 years ago

codyroux commented 3 years ago

On ARM architectures, in thumb mode, Bap.Std.Target.CPU.sp returns inaccurate results.

It seems that the appropriate approach is either to use Bap.Std.register_target ourselves, or more idiomatically invoke Theory.Target.reg with the appropriate arguments.

codyroux commented 3 years ago

Fixed, by PR #313