1
0
mirror of https://github.com/MariaDB/server.git synced 2025-11-21 06:21:35 +03:00
Files
mariadb/client
unknown 861096a58f Bug#19006: 4.0 valgrind problems (in test func_str)
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().
2006-07-01 14:31:52 -04:00
..
2000-07-31 21:29:14 +02:00
2005-08-24 22:03:34 +03:00
2001-12-06 14:10:51 +02:00
2001-12-06 14:10:51 +02:00
2001-12-06 14:10:51 +02:00
2001-12-06 14:10:51 +02:00
2001-12-06 14:10:51 +02:00
2005-12-04 15:02:06 +02:00
2005-12-04 15:02:06 +02:00
2005-12-04 15:02:06 +02:00
2005-12-04 15:02:06 +02:00
2005-12-04 15:02:06 +02:00
2001-12-06 14:10:51 +02:00
2001-12-06 14:10:51 +02:00
2001-12-06 14:10:51 +02:00
2001-12-06 14:10:51 +02:00
2001-12-06 14:10:51 +02:00
2004-02-26 19:09:49 +01:00