Skip to content

Commit c38fc1b

Browse files
hsbtisaac-peka
authored andcommitted
Fix Use-After-Free issue for Regexp
Co-authored-by: Isaac Peka <7493006+isaac-peka@users.noreply.github.com>
1 parent 7227b85 commit c38fc1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

regexec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3435,8 +3435,8 @@ match_at(regex_t* reg, const UChar* str, const UChar* end,
34353435
CASE(OP_MEMORY_END_PUSH_REC) MOP_IN(OP_MEMORY_END_PUSH_REC);
34363436
GET_MEMNUM_INC(mem, p);
34373437
STACK_GET_MEM_START(mem, stkp); /* should be before push mem-end. */
3438-
STACK_PUSH_MEM_END(mem, s);
34393438
mem_start_stk[mem] = GET_STACK_INDEX(stkp);
3439+
STACK_PUSH_MEM_END(mem, s);
34403440
MOP_OUT;
34413441
JUMP;
34423442

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy