Skip to content

Commit

Permalink
lib: onigmo: fix OSS-FUZZ 46049
Browse files Browse the repository at this point in the history
Temporary fix until k-takata/Onigmo#164 is merged
Signed-off-by: sashashura <[email protected]>
  • Loading branch information
sashashura committed Sep 7, 2022
1 parent dd8a18a commit 61e6b8e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions regparse.c
Original file line number Diff line number Diff line change
Expand Up @@ -3323,6 +3323,7 @@ fetch_token(OnigToken* tok, UChar** src, UChar* end, ScanEnv* env)
tok->backp = p;

PFETCH(c);
if (p > end) return ONIGERR_PREMATURE_END_OF_CHAR_CLASS;
if (IS_MC_ESC_CODE(c, syn)) {
if (PEND) return ONIGERR_END_PATTERN_AT_ESCAPE;

Expand Down

0 comments on commit 61e6b8e

Please sign in to comment.