This repository has been archived by the owner on May 18, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 57
stuck in fgets() SimProcedure? #112
Comments
So, angr has trouble in simulating newlines? |
Are you saying that the whole python process is stuck? If so, can you Ctrl-C it and paste the backtrace? It's either in Z3, or our fgets is bugged. In the latter case, we can try running without the fgets simprocedure. |
So, it's Z3's problem? |
For functions like fgets we avoid path explosion by combining many possible states. The side effect here is the constraints get large quickly. If may be that in cases like this you would want to hook it with a custom version that doesn't fully model it, but has less constraints |
OK, I got it. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I used pathgroup.explorer() to explore paths in Aeon which was reported as vulnerable before in several vulnerability databases(Advisory ID: CVE-2005-1019). I noticed it stuck in a fgets() in the third cycle of a loop, just no response. I have no idea why this woud happen. And I'm unsure what I should do.
Running environment: Ubuntu 15.10
python version: 2.7
angr version: 6.7.3.26
The source code as follow:
Corresponding disassembly code as follow:
And I checked fgets.py in the simuvex, the process stopped at following statement.
The text was updated successfully, but these errors were encountered: