radareorg / r2retdec

RetDec plugin for Radare2
https://retdec.com/
MIT License
124 stars 24 forks source link

Update APIs to work with latest r2-5.x #40

Closed trufae closed 2 years ago

trufae commented 2 years ago

Checklist

Description

trufae commented 2 years ago

The problem is how cmake builds the plugin, as all the symbols are global and messed up with the ones in r2. so retdec calls r2's capstone instead of the one it has been compiled with, this results on instruction ids that don't match and cause null derefs and undesirable crashes.

@xkubov do you know how to tame cmake to do that?