-
Notifications
You must be signed in to change notification settings - Fork 710
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix handling of data count without data section (#2432)
- Loading branch information
Showing
2 changed files
with
25 additions
and
6 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,14 @@ | ||
;;; TOOL: run-interp-spec | ||
(assert_malformed | ||
(module binary | ||
"\00asm" "\01\00\00\00" | ||
"\05\03\01\00\01" ;; Memory section with one entry | ||
"\0c\01\01" ;; Data count section with value 1 | ||
) | ||
"data count and data section have inconsistent lengths" | ||
) | ||
(;; STDOUT ;;; | ||
out/test/regress/data-count-without-data-section.txt:3: assert_malformed passed: | ||
0000010: error: Data section missing but DataCount non-zero | ||
1/1 tests passed. | ||
;;; STDOUT ;;) |