Skip to content

Commit 635f3f2

Browse files
authored
der: test Null decode invalid length (#1831)
1 parent 545415d commit 635f3f2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

der/src/asn1/null.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,5 +103,6 @@ mod tests {
103103
#[test]
104104
fn reject_non_canonical() {
105105
assert!(Null::from_der(&[0x05, 0x81, 0x00]).is_err());
106+
assert!(Null::from_der(&[0x05, 0x01, 0xAA]).is_err());
106107
}
107108
}

0 commit comments

Comments
 (0)