Browse Source

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.
pull/73/head
Tor Didriksen 12 years ago
parent
commit
d4ccf905be
  1. 2
      strings/ctype-win1250ch.c

2
strings/ctype-win1250ch.c

@ -500,7 +500,7 @@ static size_t my_strnxfrm_win1250ch(CHARSET_INFO * cs __attribute__((unused)),
do {
NEXT_CMP_VALUE(src, p, pass, value, (int)srclen);
if (totlen <= len)
if (totlen < len)
dest[totlen] = value;
totlen++;
} while (value) ;

Loading…
Cancel
Save