-
Notifications
You must be signed in to change notification settings - Fork 14
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
Error when analyze shared library #345
Comments
Can you give the specific version of Thanks |
The bap version in the docker is I also tried to change the Dockerfile Then I met the same error as when I pinned bap to 2.2.0
|
Hi, pinning to older versions of BAP won't help, since WP is supposed to work on a recent version. Not sure what is causing your error though. Is there any chance you can help us reproduce it? Ideally we'd need the inputs you used, or barring that the full stacktrace. |
Now that I mention this, it would be nice to know what the toplevel error is (i.e. the first line of the error). |
Now that I mention this, it would be nice to know what the toplevel error is (i.e. the first line of the error). Thanks for your help. The binary and here is the toplevel error
Thanks again for your help |
Aha. The error here is a BAP one, I think: it is failing to load the project, because the disassembly is taking too much stack space. My understanding is that crypto code is inherently computationally hard to uplift. One "easy" solution would be to raise the stack space, e.g.
and try again. Warning: this will likely use large amounts of your live memory. Another, more experimental route would be to use the "raw" loader for BAP with some options which limit the amount of disassembled code, to include only the function of interest (see here). This is probably a bit finicky though. A final bit of pessimism: currently, I'm not sure CBAT will handle large crypto subroutines in any reasonable time. We probably need some special optimizations to break the problem into smaller pieces. |
Hi, I met a problem when I try to use wp to analyze some shared libraries. The command looks like:
bap wp --func=XXXXX --show=refuted-goals --postcond=" (assert (= RAX #x0000000000000002)) " ./libcrypto.so.3
The output looks like:
I use the docker image directly and wp can work pretty well for some small binaries. Since the problem is a little bit similar to BAP #1086
so I try to have bap 2.2.0 installed. After pinning the bap version to 2.2.0, I met the following error:
Do you have any suggestions or comments? Thanks in advance.
The text was updated successfully, but these errors were encountered: