From 6f10ec12b4c81e4d040b933b1e3ee01da5ac9a0c Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 13 Apr 2025 19:34:39 -0700 Subject: fuzz cases: only 64 system registers, display should never panic --- tests/from_brain.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/from_brain.rs') diff --git a/tests/from_brain.rs b/tests/from_brain.rs index a72f561..9c33dbf 100644 --- a/tests/from_brain.rs +++ b/tests/from_brain.rs @@ -2460,3 +2460,11 @@ fn inst_1111() { test_display(&0b1111_1101000_00100_11_1_00011_001_00110u32.to_le_bytes(), "{ if (p1.new) r7:6 = contains(r4, r3) }"); } + +#[test] +fn no_panic() { + test_invalid( + &[253, 67, 36, 65, 68, 143, 143, 143, 143, 143, 143, 143, 3, 0, 2, 0, 143], + DecodeError::InvalidOpcode + ); +} -- cgit v1.1