diff options
| author | Alan Wu <XrXr@users.noreply.github.com> | 2024-02-02 11:17:46 -0500 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2024-02-02 16:35:43 +0000 |
| commit | 8f9d999d5967182b8fafdf6ff47eb4db1358e29b (patch) | |
| tree | 0b3a6b2264484055a8c9cc8a6b68ae15e1475890 /include/ruby/internal/intern | |
| parent | 31378dc0969f4466b2122d730b7298dd7004acdf (diff) | |
[ruby/prism] Fix overlapping memcpy
It's UB to use memcpy with overlapping source and destination. This
might be causing crashes on 32 bit platforms and on OpenBSD. Use memmove
instead. Add a bounds check while we're at it since it's unclear whether
one-past-end pointer with n=0 is UB.
https://github.com/ruby/prism/commit/719f54ff5e
Diffstat (limited to 'include/ruby/internal/intern')
0 files changed, 0 insertions, 0 deletions
