mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
861096a58f
On exactly-sized Strings, the String::c_ptr() function peeked beyond the end of the buffer, possibly into unititialized space to see whether the buffer was NUL-terminated. In a place that did peek improperly, we now use a c_ptr_safe() function, which doesn't peek where it shouldn't. client/sql_string.h: Back-port String::c_ptr_safe(). sql/item_func.h: Describe side-effect behavior. sql/item_strfunc.cc: Use the "_safe" version of c_ptr to avoid looking for a terminating NUL character outside the initialized memory area. Valgrind hates it when one does that, and it theoretically could lead to a SEGV. sql/sql_string.h: Back-port String::c_ptr_safe(). |
||
---|---|---|
.. | ||
.cvsignore | ||
client_priv.h | ||
completion_hash.cc | ||
completion_hash.h | ||
connect_test.c | ||
get_password.c | ||
insert_test.c | ||
list_test.c | ||
Makefile.am | ||
my_readline.h | ||
mysql.cc | ||
mysqladmin.c | ||
mysqlbinlog.cc | ||
mysqlcheck.c | ||
mysqldump.c | ||
mysqlimport.c | ||
mysqlmanager-pwgen.c | ||
mysqlmanagerc.c | ||
mysqlshow.c | ||
mysqltest.c | ||
readline.cc | ||
select_test.c | ||
showdb_test.c | ||
sql_string.cc | ||
sql_string.h | ||
ssl_test.c | ||
thimble.cc | ||
thread_test.c |