crashappsec / libcon4m

Base Compiler and Runtime Support for con4m
Apache License 2.0
0 stars 0 forks source link

SIGSEGV: right shift of a negative number #71

Closed ee7 closed 1 week ago

ee7 commented 2 weeks ago

With:

Example

x = -1

x >>= 0
print(x)

Expected behavior

Outputs -1.

Current behavior

Crashes.

viega commented 1 week ago

I didn't change anything here, but it seems to be working using my current PR.

There were lots of indirect issues that could pop up that were really due to what I found and fixed with my new memory checking stuff (in #78). Unfortunately, ASAN didn't detect it, even when I integrated with their API.

But this was probably a consequence.