Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

value set analysis runtime error with bap2 #306

Open
zhouxuan009 opened this issue Mar 18, 2021 · 0 comments
Open

value set analysis runtime error with bap2 #306

zhouxuan009 opened this issue Mar 18, 2021 · 0 comments

Comments

@zhouxuan009
Copy link

zhouxuan009 commented Mar 18, 2021

Value set analysis with bap2 still raise an error at runtime and the error message is as below

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

let cfg = Sub.to_graph s in

Just as the bap document says, as toval to_graph : t -> Graphs.Tid.t, since 2.1 the returned graph contains two pseudo-nodes(http://binaryanalysisplatform.github.io/bap/api/odoc/bap/Bap/Std/Sub/index.html)

Then the code below fails to recognize the pseudo node as basic blocks.

match (Program.lookup blk_t ctx source) with

I am trying to fix this error. But I can't find any api which can remove the pseudo nodes in cfg

zhouxuan009 added a commit to zhouxuan009/cbat_tools that referenced this issue Mar 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant