summaryrefslogtreecommitdiff
path: root/ruby_parser.c
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2024-02-02 11:17:46 -0500
committergit <svn-admin@ruby-lang.org>2024-02-02 16:35:43 +0000
commit8f9d999d5967182b8fafdf6ff47eb4db1358e29b (patch)
tree0b3a6b2264484055a8c9cc8a6b68ae15e1475890 /ruby_parser.c
parent31378dc0969f4466b2122d730b7298dd7004acdf (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 'ruby_parser.c')
0 files changed, 0 insertions, 0 deletions