diff options
| author | Alan Wu <XrXr@users.noreply.github.com> | 2025-11-26 21:59:37 -0500 |
|---|---|---|
| committer | Alan Wu <XrXr@users.noreply.github.com> | 2025-12-16 13:06:03 -0500 |
| commit | d209e6f1c0a93ad3ce1cc64dd165a6b67672614d (patch) | |
| tree | 6217c896e2de8f91e657e09e0b066dda6f431a35 /test/ruby/test_transcode.rb | |
| parent | a8ba2b295b73a116d24fe5602d892d4a2042cd08 (diff) | |
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/ruby/test_transcode.rb')
0 files changed, 0 insertions, 0 deletions
