diff options
author | Tor Didriksen <tor.didriksen@oracle.com> | 2013-09-17 12:43:34 +0200 |
---|---|---|
committer | Tor Didriksen <tor.didriksen@oracle.com> | 2013-09-17 12:43:34 +0200 |
commit | d4ccf905bef7eca6329e2f439ac9fa0610b3aa92 (patch) | |
tree | 5d9783fa47f59c47ed743736336b497a93975da6 /strings | |
parent | b7232337e9c2a4b449b8028415f027e82a65084d (diff) | |
download | mariadb-git-d4ccf905bef7eca6329e2f439ac9fa0610b3aa92.tar.gz |
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.
Diffstat (limited to 'strings')
-rw-r--r-- | strings/ctype-win1250ch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/strings/ctype-win1250ch.c b/strings/ctype-win1250ch.c index cbb1ad5e685..a8181afa776 100644 --- a/strings/ctype-win1250ch.c +++ b/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) ; |