diff options
| author | Hiroya Fujinami <make.just.on@gmail.com> | 2025-05-16 10:14:26 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-16 10:14:26 +0900 |
| commit | 35000ac2ed3a1829f8d193ffb23da0e44cc6fe5f (patch) | |
| tree | c3430ab96d4cf63f89b1bebd0603266b9c391df8 /spec/ruby/core/array/pack/shared | |
| parent | 6b10d40157b5287cd13169437800343165eae949 (diff) | |
Prevent double free for too big repetition quantifiers (#13332)
Prevent double free for too big repetition quantifiers
The previous implementation calls `free(node)` twice (on parsing and compiling a
regexp) when it has an error, so it leads to a double-free issue. This
commit enforces `free(node)` once by introducing a temporal pointer to hold
parsing nodes.
Notes
Notes:
Merged-By: makenowjust <make.just.on@gmail.com>
Diffstat (limited to 'spec/ruby/core/array/pack/shared')
0 files changed, 0 insertions, 0 deletions
