Commit d4ccf905 authored by Tor Didriksen's avatar Tor Didriksen

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.
parent b7232337
...@@ -500,7 +500,7 @@ static size_t my_strnxfrm_win1250ch(CHARSET_INFO * cs __attribute__((unused)), ...@@ -500,7 +500,7 @@ static size_t my_strnxfrm_win1250ch(CHARSET_INFO * cs __attribute__((unused)),
do { do {
NEXT_CMP_VALUE(src, p, pass, value, (int)srclen); NEXT_CMP_VALUE(src, p, pass, value, (int)srclen);
if (totlen <= len) if (totlen < len)
dest[totlen] = value; dest[totlen] = value;
totlen++; totlen++;
} while (value) ; } while (value) ;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment