1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-07 17:42:39 +03:00
Files
mariadb/mysql-test/t
Davi Arnaut 2aef0eda76 Bug#12736295 Buffer overflow for variable converted_err with
non-latin1 server error message

The problem was a one byte buffer overflow in the conversion
of a error message between character sets. Ahead of explaining
the problem further, some background information. Before an
error message is sent to the user, the message is converted
to the character set specified in the character_set_results
variable. For various reasons, this conversion might cause
the message to increase in length -- for example, if certain
characters can't be represented in the result character set.

If the final message length is greater than the maximum allowed
length of a error message (MYSQL_ERRMSG_SIZE), the message
is truncated. The message is also always null-terminated
regardless of the character set. The problem arises from this
null-termination. If a message length reached the maximum,
the terminating null character would be placed one byte past
the end of the message buffer.

The solution is to reserve the end of the message buffer for
the null character.
2011-07-15 08:05:30 -03:00
..
2011-03-03 12:12:32 +03:00
2010-02-25 23:13:11 +04:00
2011-03-15 16:56:11 +02:00
2011-01-25 12:14:28 +05:30
2011-02-17 12:53:09 +01:00
2011-02-17 12:53:09 +01:00
2011-01-17 15:26:13 +03:00
2011-03-03 18:46:30 +03:00
2011-03-03 18:46:30 +03:00
2011-05-05 08:13:22 +02:00
2010-11-26 16:32:51 +02:00
2011-04-14 13:10:11 +04:00
2010-04-13 19:04:45 +04:00
2011-03-03 15:27:36 +03:00
2010-04-13 19:04:45 +04:00
2011-04-12 14:13:15 +04:00
2011-05-26 14:09:25 +04:00
2010-12-16 21:43:21 +03:00
2011-01-13 09:07:21 +01:00
2011-05-18 10:59:04 +04:00
2011-03-09 16:04:50 +02:00
2011-02-18 11:55:24 +01:00
2010-06-11 10:15:55 +02:00
2011-01-04 18:46:01 +01:00
2011-01-14 19:21:27 +01:00
2011-04-26 11:52:58 +02:00
2011-03-29 10:09:05 +02:00
2010-04-20 10:51:50 +02:00
2010-08-25 13:17:15 +05:00
2010-07-16 21:25:00 +03:00
2011-03-08 09:41:57 +01:00
2011-02-08 11:21:14 +01:00
2011-01-11 15:15:25 +01:00
2010-04-13 19:04:45 +04:00
2011-06-13 11:57:47 +02:00
2010-11-15 23:31:04 +01:00
2011-04-27 18:42:05 +02:00
2010-09-13 15:56:56 +02:00
2011-01-10 16:13:12 +01:00
2011-06-13 11:57:47 +02:00
2010-02-24 00:22:19 -07:00
2010-10-20 16:56:09 +02:00
2010-10-20 16:56:09 +02:00
2010-10-20 16:56:09 +02:00
2010-02-06 13:28:06 +03:00
2010-07-04 20:35:05 +01:00
2011-06-16 13:54:16 +03:00
2010-04-13 19:04:45 +04:00
2010-04-13 19:04:45 +04:00
2010-04-13 19:04:45 +04:00
2010-04-13 19:04:45 +04:00
2010-04-13 19:04:45 +04:00
2011-01-14 09:36:24 +01:00
2011-01-14 09:36:24 +01:00
2011-01-12 10:31:41 +01:00
2011-07-11 11:27:52 +02:00
2011-03-28 13:57:54 +03:00
2011-04-14 10:13:28 +02:00