diff options
author | iximeow <me@iximeow.net> | 2023-12-23 13:22:59 -0800 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2023-12-23 13:22:59 -0800 |
commit | 92260064e2073a6b3e18c0d2c042002740711c7b (patch) | |
tree | 312986551cd62922c00cfa9bf0a1c4bed6ec6e78 /src | |
parent | e7fd49a70cc7517e4ff08913f4f18b5322adf13d (diff) |
another fuzz catch: checked ld!=11 but did not prove sz!=11
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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)?; |