lifting-bits / remill

Library for lifting machine code to LLVM bitcode
Apache License 2.0
1.27k stars 145 forks source link

Fixes next pc ARM/Arch in Sleigh Cbranch implementation #657

Closed 2over12 closed 1 year ago

2over12 commented 1 year ago

The cbranch implementation loaded the original pc from the PC reg which on ARM points to the next next instruction, causing incorrect fallthrough. Changes CBRANCH to load from next-pc which points past the current instruction