mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
Fix shift UB in mbfilter_utf32.c
This commit is contained in:
parent
f65046b951
commit
ae2bc6297e
@ -138,7 +138,7 @@ int mbfl_filt_conv_utf32_wchar(int c, mbfl_convert_filter *filter)
|
||||
if (endian) {
|
||||
n = c & 0xff;
|
||||
} else {
|
||||
n = (c & 0xff) << 24;
|
||||
n = (unsigned) (c & 0xff) << 24;
|
||||
}
|
||||
filter->cache = n;
|
||||
filter->status++;
|
||||
|
Loading…
Reference in New Issue
Block a user