Closed zhouxuan009 closed 3 years ago
Sorry! We are aware the value_set
plugin does not compile with BAP 2.x - it was built for BAP 1. Our main work is on the wp
plugin in this repo, these days, but we hope to find time to revisit the value set analysis soon. I will update the readme to reflect the fact that value_set
is known not to work.
Thanks ! I will take a try with BAP 1 for VSA.
As to BAP2.x for VSA, I have fixed such build error. That's because the comparasion operators make the operands inferred as Integers. Replacing comparasion operators as Module.compare can solve such issue.
After the plugin is built successfully, it still raise an error at runtime
The pass "value-set" failed with:
source tid does not represent block
I found that the error is triggered because the cfg of subroutine passed to the fixpoint function has @start-pseudo-node and @exit-pseudo-node. And line#391 in vsa/value_set/lib/src/cbat_vsa.ml Program.lookup blk_t ctx source
don't recognize the pseudo node as basic blocks. I am trying to fix this error
Fixed by #303 . Thanks!
Hi, I entered
make
under the folder cbat_tools/vsa/value_set, then the make error message appeared in the command line as belowAnd I can't find where the bug is
Below are some dependencies information on my PC
Thanks a lot !