-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #21363 - null deref in the wasm disassembler ##crash
- Loading branch information
Showing
2 changed files
with
47 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| NAME=wasm crash test | ||
| FILE=bins/wasm/nullderef.wasm | ||
| CMDS=<<EOF | ||
| pd 10 | ||
| EOF | ||
| EXPECT=<<EOF | ||
| ;-- entry0: | ||
| ;-- fcn.0: | ||
| 0x000000be 4185feff77 i32.const 251657989 | ||
| 0x000000c3 fd0f i8x16.splat | ||
| 0x000000c5 fda001 corrupted | ||
| 0x000000c8 fd64 corrupted | ||
| 0x000000ca 0b end | ||
| 0x000000cb 00 trap | ||
| 0x000000cc 00 trap | ||
| 0x000000cd 00 trap | ||
| 0x000000ce 00 trap | ||
| 0x000000cf 00 trap | ||
| EOF | ||
| EXPECT_ERR=<<EOF | ||
| ERROR: unknown section id: 13 | ||
| ERROR: unknown section id: 109 | ||
| EOF | ||
| RUN | ||
|
|