diff options
author | Hiroshi SHIBATA <[email protected]> | 2024-04-12 15:01:47 +1000 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2024-04-23 19:16:08 +0900 |
commit | 989a2355808a63fc45367785c82ffd46d18c900a (patch) | |
tree | 76947880a0f869828cd6589f2b9b20f19975ec22 /regexec.c | |
parent | 33e5b47c16f1fd3382186e6ffe73cfc6e00946f7 (diff) |
Fix Use-After-Free issue for Regexp
Co-authored-by: Isaac Peka <[email protected]>
Diffstat (limited to 'regexec.c')
-rw-r--r-- | regexec.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3449,8 +3449,8 @@ match_at(regex_t* reg, const UChar* str, const UChar* end, CASE(OP_MEMORY_END_PUSH_REC) MOP_IN(OP_MEMORY_END_PUSH_REC); GET_MEMNUM_INC(mem, p); STACK_GET_MEM_START(mem, stkp); /* should be before push mem-end. */ - STACK_PUSH_MEM_END(mem, s); mem_start_stk[mem] = GET_STACK_INDEX(stkp); + STACK_PUSH_MEM_END(mem, s); MOP_OUT; JUMP; |