forked from puppetlabs/puppet-runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(PA-6386) Patch/Upgrade Ruby for CVE-2024-27282
- Patches the ruby 'Use-After-Free' issue for regexp for 7.x (ruby 2.7.8). - Upstream fix commit: ruby/ruby@90b194b - Bump projects using ruby 3.2.3 to ruby 3.2.4 since 3.2.4 has addressed the CVE. - Adjust windows patches for ruby 3.2.4
- Loading branch information
1 parent
32a50cd
commit a687390
Showing
9 changed files
with
41 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
configs/components/ruby-3.2.3.rb → configs/components/ruby-3.2.4.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/regexec.c b/regexec.c | ||
index 73694ab14a..140691ad42 100644 | ||
--- a/regexec.c | ||
+++ b/regexec.c | ||
@@ -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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters