mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2025-03-02 03:21:55 +01:00
fix #162: heap-buffer-overflow in fetch_interval_quantifier due to double PFETCH
This commit is contained in:
parent
4366359e4e
commit
f5d8d1d332
@ -4200,7 +4200,7 @@ fetch_interval_quantifier(UChar** src, UChar* end, PToken* tok, ScanEnv* env)
|
||||
if (PEND) goto invalid;
|
||||
PFETCH(c);
|
||||
if (IS_SYNTAX_OP(env->syntax, ONIG_SYN_OP_ESC_BRACE_INTERVAL)) {
|
||||
if (c != MC_ESC(env->syntax)) goto invalid;
|
||||
if (c != MC_ESC(env->syntax) || PEND) goto invalid;
|
||||
PFETCH(c);
|
||||
}
|
||||
if (c != '}') goto invalid;
|
||||
|
Loading…
Reference in New Issue
Block a user