diff --git a/src/zkas/decoder.rs b/src/zkas/decoder.rs index 6bb5def76..e80a33b26 100644 --- a/src/zkas/decoder.rs +++ b/src/zkas/decoder.rs @@ -264,6 +264,14 @@ impl ZkBinary { mod tests { use crate::zkas::ZkBinary; + #[test] + fn panic_regression_001() { + // Out-of-memory panic from string deserialization. + // Read `doc/src/zkas/bincode.md` to understand the input. + let data = vec![11u8, 1, 177, 53, 1, 0, 0, 0, 0, 255, 0, 204, 200, 72, 72, 72, 72, 1]; + let _dec = ZkBinary::decode(&data); + } + #[test] fn panic_regression_002() { // Index out of bounds panic in parse_circuit(). @@ -279,12 +287,4 @@ mod tests { ]; let _dec = ZkBinary::decode(&data); } - - #[test] - fn panic_regression_001() { - // Out-of-memory panic from string deserialization. - // Read `doc/src/zkas/bincode.md` to understand the input. - let data = vec![11u8, 1, 177, 53, 1, 0, 0, 0, 0, 255, 0, 204, 200, 72, 72, 72, 72, 1]; - let _dec = ZkBinary::decode(&data); - } }