diff options
| author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2026-01-16 14:26:48 +0900 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2026-01-16 14:26:48 +0900 |
| commit | d8c21d0780e0fc061a396e66d25b7b87de3108a4 (patch) | |
| tree | 3d1039aecc46da54464e9aeaf842c4197506d79e /test | |
| parent | 10876c271b4ced81d852f532231ff87bd14defc9 (diff) | |
merge revision(s) d209e6f1c0a93ad3ce1cc64dd165a6b67672614d: [Backport #21715]ruby_3_3
search_nonascii(): Replace UB pointer cast with memcpy
Casting a pointer to create an unaligned one is undefined behavior in C
standards. Use memcpy to express the unaligned load instead to play by
the rules.
Practically, this yields the same binary output in many situations
while fixing the crash in [Bug #21715].
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions
