Unary negation (~
) operator appears to be broken in the assembler expression calculator
#2659
Labels
~
) operator appears to be broken in the assembler expression calculator
#2659
Summary of the problem
Hello manticore community,
I am working as part of a research team developing a code analysis tool for Python. One of the issues the tool discovered in manticore's codebase is that the unary negation (
~
) operator appears to be broken. Whenever even a simple expression, such as~0x30
, is entered, the parser exits with an unhandled error. See below for stack trace.If you are interested in learning more about the tool and how it found this issue, let me know down in the comments, or you can contact me at xifaras.s@northeastern.edu. We are primarily curious about whether you find that this issue is legitimate and worth reporting and fixing. If not, we would be interested in understanding why.
Thank you for your consideration!
-Sam
Manticore version
Latest master (commit hash: 8861005)
Python version
Python 3.8
OS / Environment
Linux (kernel version 5.10.218)
Dependencies
N/A
Step to reproduce the behavior
Enter an expression that uses the unary negation operator, such as
~0x30
or~3 & 4
.Expected behavior
The unary negation operator works as expected
Actual behavior
Traceback example:
The text was updated successfully, but these errors were encountered: