Skip to content

Commit 16fa82f

Browse files
author
Tor Didriksen
committed
Bug#16765410 FTS: STACK AROUND THE VARIABLE 'MYSTR' WAS CORRUPTED IN INNOBASE_STRNXFRM
my_strnxfrm_win1250ch could write into dest[destlen] i.e. write a byte to the past-the-end of dest.
1 parent cd04135 commit 16fa82f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

strings/ctype-win1250ch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ static size_t my_strnxfrm_win1250ch(CHARSET_INFO * cs __attribute__((unused)),
500500

501501
do {
502502
NEXT_CMP_VALUE(src, p, pass, value, (int)srclen);
503-
if (totlen <= len)
503+
if (totlen < len)
504504
dest[totlen] = value;
505505
totlen++;
506506
} while (value) ;

0 commit comments

Comments
 (0)