summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2023-12-23 13:22:59 -0800
committeriximeow <me@iximeow.net>2023-12-23 13:22:59 -0800
commit92260064e2073a6b3e18c0d2c042002740711c7b (patch)
tree312986551cd62922c00cfa9bf0a1c4bed6ec6e78 /src
parente7fd49a70cc7517e4ff08913f4f18b5322adf13d (diff)
another fuzz catch: checked ld!=11 but did not prove sz!=11
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index aa9d5c7..67272b0 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1601,7 +1601,8 @@ fn decode_inst<
0b00 => SizeCode::B,
0b01 => SizeCode::W,
0b10 => SizeCode::L,
- _ => { unreachable!("checked for ld!=11 earlier"); }
+ 0b11 => { return Err(StandardDecodeError::InvalidOperand) },
+ _ => { unreachable!("sz is only two bits"); }
};
let op = handler.decode_mem_op(rs, ld, sz, words)?;