diff options
| author | Alan Wu <XrXr@users.noreply.github.com> | 2024-02-13 12:51:36 -0500 |
|---|---|---|
| committer | Alan Wu <XrXr@users.noreply.github.com> | 2024-02-13 14:49:54 -0500 |
| commit | 6261d4b4d8112a461ac5a383032490007f47029c (patch) | |
| tree | f0aab4e74392d7971d170a72ccbad372846f6c4d /include/ruby/internal/encoding/encoding.h | |
| parent | 5add999deecaa51821a78d71db58a251862d55f4 (diff) | |
Fix use-after-move in Symbol#inspect
The allocation could re-embed `orig_str` and invalidate the data
pointer from RSTRING_GETMEM() if the string is embedded.
Found on CI, where the test introduced in 7002e776944 ("Fix
Symbol#inspect for GC compaction") recently failed.
See: <https://github.com/ruby/ruby/actions/runs/7880657560/job/21503019659>
Diffstat (limited to 'include/ruby/internal/encoding/encoding.h')
0 files changed, 0 insertions, 0 deletions
