Skip to content

Commit bfe9164

Browse files
committed
merge revision(s) 989a235:
Fix Use-After-Free issue for Regexp Co-authored-by: Isaac Peka <7493006+isaac-peka@users.noreply.github.com> --- regexec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
1 parent 8f66566 commit bfe9164

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

regexec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2530,8 +2530,8 @@ match_at(regex_t* reg, const UChar* str, const UChar* end,
25302530
CASE(OP_MEMORY_END_PUSH_REC) MOP_IN(OP_MEMORY_END_PUSH_REC);
25312531
GET_MEMNUM_INC(mem, p);
25322532
STACK_GET_MEM_START(mem, stkp); /* should be before push mem-end. */
2533-
STACK_PUSH_MEM_END(mem, s);
25342533
mem_start_stk[mem] = GET_STACK_INDEX(stkp);
2534+
STACK_PUSH_MEM_END(mem, s);
25352535
MOP_OUT;
25362536
JUMP;
25372537

version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# define RUBY_VERSION_MINOR RUBY_API_VERSION_MINOR
1212
#define RUBY_VERSION_TEENY 4
1313
#define RUBY_RELEASE_DATE RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR
14-
#define RUBY_PATCHLEVEL 250
14+
#define RUBY_PATCHLEVEL 251
1515

1616
#define RUBY_RELEASE_YEAR 2024
1717
#define RUBY_RELEASE_MONTH 4

0 commit comments

Comments
 (0)