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

re-enable test/sym/store.wat test #177

Closed
zapashcanon opened this issue Feb 19, 2024 · 0 comments · Fixed by #178
Closed

re-enable test/sym/store.wat test #177

zapashcanon opened this issue Feb 19, 2024 · 0 comments · Fixed by #178
Assignees
Labels
enhancement New feature or request

Comments

@zapashcanon
Copy link
Member

zapashcanon commented Feb 19, 2024

see #172

First, the test should be rewritten as:

(module
  (import "symbolic" "i32_symbol" (func $i32_symbol (result i32)))

  (memory $m 1)

  (func $start
    ;; Objective: check 'out of bounds memory access' with symbolic idx store

    call $i32_symbol ;; offset
    i32.const 42 ;; value
    i32.store ;; m[x] <- 42
  )

  (start $start)
)

Then, setting the initial size of the memory to 0 gives an instantaneous result. I'm wondering if we should add the (minimal) size of the memory to the PC at some point ?

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

Successfully merging a pull request may close this issue.

2 participants