Skip to content

Fix another integer overflow in wasmprinter's nesting#123

Merged
fitzgen merged 1 commit into
bytecodealliance:mainfrom
alexcrichton:fix-overflow
Oct 21, 2020
Merged

Fix another integer overflow in wasmprinter's nesting#123
fitzgen merged 1 commit into
bytecodealliance:mainfrom
alexcrichton:fix-overflow

Conversation

@alexcrichton

Copy link
Copy Markdown
Member

Don't decrease the current nesting level past where we started in the
case that there's multiple end instructions.

Don't decrease the current nesting level past where we started in the
case that there's multiple `end` instructions.
@fitzgen fitzgen merged commit e8fc421 into bytecodealliance:main Oct 21, 2020
@alexcrichton alexcrichton deleted the fix-overflow branch July 6, 2022 14:26
dhil added a commit to dhil/wasm-tools that referenced this pull request Aug 2, 2024
This patch changes the syntax of resume tables to match that of the
reference interpreter, i.e.

```wast
resume $ct (tag $t $h)* => resume $ct (on $t $h)*
resume_throw $ct $e (tag $t $h)* => resume $ct $e (on $t $h)*
```

I have also updated the testsuite (by simply copying in the `cont.wast`
from the reference interpreter). In doing so, I stumbled upon a bug in
the wellformedness check for continuation types for which I have also
included a fix.
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 this pull request may close these issues.

2 participants