diff --git a/lib/asn1/fuzzer.c b/lib/asn1/fuzzer.c index 28d3674bb..527f7e998 100644 --- a/lib/asn1/fuzzer.c +++ b/lib/asn1/fuzzer.c @@ -669,7 +669,7 @@ _asn1_length_fuzzer(const struct asn1_template *t, const void *data) unsigned int type = A1_PARSE_TYPE(t->tt); const void *el = DPOC(data, t->offset); - if (type > sizeof(asn1_template_prim)/sizeof(asn1_template_prim[0])) { + if (type >= sizeof(asn1_template_prim)/sizeof(asn1_template_prim[0])) { ABORT_ON_ERROR(); break; }