Skip to content

Commit

Permalink
Update regex_suffix.c
Browse files Browse the repository at this point in the history
described in #1085
  • Loading branch information
RainRat committed Nov 19, 2023
1 parent 47c079f commit ce1fa7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libclamav/regex_suffix.c
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ static uint8_t *parse_char_class(const uint8_t *pat, size_t patSize, size_t *pos
for (c = range_start + 1; c <= range_end; c++)
bitmap[c >> 3] ^= 1 << (c & 0x7);
hasprev = 0;
} else if (pat[*pos] == '[' && pat[*pos] == ':') {
} else if (pat[*pos] == '[' && pat[*pos + 1] == ':') {
/* char class */
FREE(bitmap);
while (pat[*pos] != ']') INC_POS(pos, patSize);
Expand Down

0 comments on commit ce1fa7f

Please sign in to comment.