Skip to content
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

Verifier handles large negative unsigned values incorreclty #765

Closed
Alan-Jowett opened this issue Oct 29, 2024 · 1 comment
Closed

Verifier handles large negative unsigned values incorreclty #765

Alan-Jowett opened this issue Oct 29, 2024 · 1 comment

Comments

@Alan-Jowett
Copy link
Contributor

Program Counter: 3
Registers: r0=8000000000004000
Label: 3:-1
Concrete state does not match invariant
--- Concrete state ---
[
    packet_size=3,
    r0.svalue=-9223372036854759424, r0.uvalue=9223372036854792192]
Stack: Numbers -> {}
--- Abstract state ---
[
    meta_offset=0,
    packet_size=[0, 65534],
    r0.svalue=9223372036854792192, r0.type=number, r0.uvalue=9223372036854792192,
    r1.ctx_offset=0, r1.svalue=[1, 2147418112], r1.type=ctx,
    r10.stack_offset=512, r10.svalue=[512, 2147418112], r10.type=stack]
Stack: Numbers -> {}

Correct int64_t representation of 8000000000004000 is -9223372036854759424, not 9223372036854792192.

@Alan-Jowett
Copy link
Contributor Author

Fixed by #769

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant