Fix some warnings and two errors found while fuzzing (#1844)

Fix CI
See: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=54614
This commit is contained in:
Ivan Nardi
2023-01-03 13:21:54 +01:00
committed by GitHub
parent cb15d2b328
commit 9c83f0f3c5
3 changed files with 21 additions and 3 deletions
+1 -1
View File
@@ -474,7 +474,7 @@ int ac_automata_search (AC_AUTOMATA_t * thiz,
} else {
curr = next;
position++;
if(curr->final) {
if(curr->final && curr->matched_patterns) {
/* select best match */
match->match_map = ac_automata_exact_match(curr->matched_patterns,position,txt);
if(match->match_map) {