diff options
author | unknown <bar@mysql.com> | 2005-10-11 12:09:38 +0500 |
---|---|---|
committer | unknown <bar@mysql.com> | 2005-10-11 12:09:38 +0500 |
commit | f40725afa9eeb7610b9fc4b8024c78939c065744 (patch) | |
tree | 380165f137117476a4c756501bdd6ca206c81c65 /strings | |
parent | 62d6227871c17d08213365e43767a280ee240be7 (diff) | |
download | mariadb-git-f40725afa9eeb7610b9fc4b8024c78939c065744.tar.gz |
Bug#12547: Inserting long string into varchar causes table crash in cp932
ctype-cp932.c:
Decrement for "pos" variable disappered somehow.
Restoring it back.
ctype_cp932.test: ctype_cp932.result:
Adding test case.
strings/ctype-cp932.c:
Bug#12547: Inserting long string into varchar causes table crash in cp932
Decrement for "pos" variable disappered somehow.
Restoring it back.
mysql-test/t/ctype_cp932.test:
Adding test case.
mysql-test/r/ctype_cp932.result:
Adding test case
Diffstat (limited to 'strings')
-rw-r--r-- | strings/ctype-cp932.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/strings/ctype-cp932.c b/strings/ctype-cp932.c index b5f36c030bd..3e5403446ce 100644 --- a/strings/ctype-cp932.c +++ b/strings/ctype-cp932.c @@ -5417,7 +5417,7 @@ uint my_well_formed_len_cp932(CHARSET_INFO *cs __attribute__((unused)), { const char *b0= b; *error= 0; - while (pos && b < e) + while (pos-- && b < e) { /* Cast to int8 for extra safety. |