diff options
| author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-07-16 15:41:10 +0900 |
|---|---|---|
| committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-07-16 15:41:10 +0900 |
| commit | 5c77402d885799e2465e291bf879dcfbd06ba77c (patch) | |
| tree | 9ea230b5b0e5f7a445597a3cd53f3f5ab3fccc67 /variable.c | |
| parent | da39936ce165ea9462b9e192eb6b608485c94842 (diff) | |
Fix null pointer access in Ripper#initialize
In `rb_ruby_ripper_parser_allocate`, `r->p` is NULL between creating
`self` and `parser_params` assignment. As GC can happen there, the
typed-data functions for it need to consider the case.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/8085
Diffstat (limited to 'variable.c')
0 files changed, 0 insertions, 0 deletions
