History log of /php-src/ext/mbstring/tests/gh15824.phpt (Results 1 – 1 of 1)
Revision Date Author Comments
# dc5f3b95 11-Sep-2024 tekimen

Fix GH-15824 mb_detect_encoding() invalid "UTF8" (#15829)

I fixed from strcasecmp to strncasecmp.
However, strncasecmp is specify size to #3 parameter.
Hence, Add check length to mim

Fix GH-15824 mb_detect_encoding() invalid "UTF8" (#15829)

I fixed from strcasecmp to strncasecmp.
However, strncasecmp is specify size to #3 parameter.
Hence, Add check length to mime and aliases.

Co-authored-by: Niels Dossche <7771979+nielsdos@users.noreply.github.com>

show more ...