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

CLIF interpreter: handle divide-by-zero traps #3058

Closed
cfallin opened this issue Jul 3, 2021 · 0 comments · Fixed by #3103
Closed

CLIF interpreter: handle divide-by-zero traps #3058

cfallin opened this issue Jul 3, 2021 · 0 comments · Fixed by #3103

Comments

@cfallin
Copy link
Member

cfallin commented Jul 3, 2021

We received an oss-fuzz bug report yesterday with a very simple test case:

function u0:0(i8) system_v {
    block0(v0: i8):
        v1 = udiv v0, v0
        return
    }

with v0 = 0 as input.

We don't yet handle traps in the differential fuzzing (one step in the checklist in #3050) so this might be an easy starting-point for that issue: we should refactor the interpreter to carry through a Result of some sort such that traps propagate upward, and then reject inputs that trap.

cc @afonso360 @abrown

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

Successfully merging a pull request may close this issue.

1 participant