diff --git a/lib/asn1/check-common.c b/lib/asn1/check-common.c index fddfacaaa..5ee2108e1 100644 --- a/lib/asn1/check-common.c +++ b/lib/asn1/check-common.c @@ -335,7 +335,7 @@ generic_decode_fail (const struct test_case *tests, data = map_alloc(OVERRUN, NULL, data_size, &data_map); - if (tests[i].byte_len != -1) { + if (tests[i].byte_len < 0xffffff && tests[i].byte_len >= 0) { sz = tests[i].byte_len; bytes = tests[i].bytes; } else {