1
0
mirror of https://github.com/MariaDB/server.git synced 2026-10-23 18:49:29 +03:00

fix nullptr-with-nonzero-offset UB

This commit is contained in:
Sergei Golubchik
2025-11-03 19:56:46 +01:00
parent 0c94001a32
commit d198be392b

View File

@@ -81,7 +81,7 @@ MY_FUNCTION_NAME(scanner_next)(my_uca_scanner *scanner,
const uint16 *cweight;
#if MY_UCA_ASCII_OPTIMIZE && !defined(SCANNER_NEXT_NCHARS)
if (scanner->sbeg + 1 < scanner->send)
if (scanner->send - scanner->sbeg > 1)
{
const MY_UCA_2BYTES_ITEM *ww;
ww= my_uca_level_booster_2bytes_item_addr_const(param->level->booster,