From 41524590bef66d5db39fa50bd25a3f7070b96e0b Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Sun, 19 Apr 2015 14:03:59 -0500 Subject: [PATCH] fixup coverity 1164099 --- lib/asn1/fuzzer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }