Browse code

libclamav: non-LLVM interpreter, fix edge check, cid #10432 & #10446

David Raynor authored on 2013/08/10 06:07:10
Showing 1 changed files
... ...
@@ -1967,7 +1967,7 @@ void cli_bytecode_destroy(struct cli_bc *bc)
1967 1967
 	val = 0x80000000 | gmap[o];\
1968 1968
 	break;\
1969 1969
     }\
1970
-    if (o > totValues) {\
1970
+    if (o >= totValues) {\
1971 1971
 	cli_errmsg("bytecode: operand out of range: %u > %u, for instruction %u in function %u\n", o, totValues, j, i);\
1972 1972
 	free(map);\
1973 1973
 	free(gmap);\