Skip to content

Commit 697b67d

Browse files
authored
wasmparser: clarify validator error message (#2349)
1 parent 9121120 commit 697b67d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/wasmparser/src/validator/operators.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -988,7 +988,7 @@ where
988988
if memarg.align > memarg.max_align {
989989
bail!(
990990
self.offset,
991-
"malformed memop alignment: alignment must not be larger than natural"
991+
"invalid memop alignment: alignment must not be larger than natural"
992992
);
993993
}
994994
if index_ty == ValType::I32 && memarg.offset > u64::from(u32::MAX) {

0 commit comments

Comments
 (0)