-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Possible undefined behavior in mpz.cpp
line 2252
#6085
Comments
I just pulled the latest changes, the same formula now produces a segfault (null-pointer dereference):
EDIT: Seems this has been fixed in cc045de |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In
mpz.cpp:2252
, themlog2
function executes-a.mval
, ifa.mval
isINT_MIN
, this results in undefined behavior:z3/src/util/mpz.cpp
Lines 2248 to 2252 in dca1dcc
The following formula triggers that case:
Z3 was compiled in debug mode with asan and ubsan:
I found this in 8c95dff and reproduced it on master (dca1dcc).
The text was updated successfully, but these errors were encountered: