test one more corner case

This commit is contained in:
leitner
2022-01-06 00:00:17 +00:00
parent 52dfd75366
commit 40ff4401c4

View File

@@ -46,5 +46,6 @@ int main() {
assert(scan_asn1rawint(buf, buf+10, 9, &l) == 0); // value too large, not representable
memcpy(buf,"\xff\x01\x02\x03\x04\x05\x06\x07\x08\x09",10);
assert(scan_asn1rawint(buf, buf+10, 10, &l) == 0); // value too large, not representable
assert(scan_asn1rawint(buf, buf+1, 3, &l) == 0); // buffer too small for length
}
#endif