1
0
mirror of https://github.com/MariaDB/server.git synced 2025-05-27 01:57:48 +03:00
unknown 033db2d038 Bug #20778: strange characters in warning message 1366 when called in SP
The function receives an exactly-sized buffer (not a C NUL-terminated string)
and passes it into a printf function to be interpreted with "%s".

Instead, create an intermediate String object, and copy the data into it, 
and pass in a pointer to the String's NUL-terminated buffer.


mysql-test/r/warnings.result:
  Test that warnings do not read outside its intended memory space.
mysql-test/t/warnings.test:
  Test that warnings do not read outside its intended memory space.
sql/field.cc:
  Create a new String object and use a pointer to its data instead of the 
  exactly-sized buffer to be interpreted as a C string deep within the 
  errmsg.txt list via printf.
2006-09-27 19:26:25 -04:00
..
2006-05-29 16:27:45 +02:00
2006-05-01 21:30:09 +03:00
2006-06-17 02:57:50 +04:00
2006-06-17 02:57:50 +04:00
2006-03-01 15:50:15 +04:00
2006-06-27 00:47:52 +04:00
2006-09-07 18:09:49 +05:00
2006-05-24 17:21:35 +03:00
2006-06-14 23:54:08 +04:00
2006-06-20 00:52:26 +04:00
2006-04-11 15:26:18 +05:00
2006-08-30 03:22:59 +04:00
2006-07-21 11:59:46 +03:00
2006-05-06 23:48:13 -07:00
2006-08-21 14:20:03 +04:00
2006-08-21 14:20:03 +04:00
2006-03-06 23:43:47 +01:00
2006-05-29 19:07:35 +04:00
2006-05-01 22:10:50 -04:00
2006-02-20 15:03:16 +01:00
2006-02-07 19:57:31 +01:00
2006-06-17 02:57:50 +04:00
2006-03-08 10:40:29 +01:00
2006-04-27 21:59:04 +09:30
2006-08-24 20:56:28 +04:00
2006-08-30 03:22:59 +04:00