Nicholas Nethercote 854d2ec10e Fix for bug #78048.
Problem was that the malloc-replacing tools (memcheck, addrcheck, massif,
helgrind) would assert if a too-big malloc was attempted.  Now they return 0 to
the client.  I also cleaned up the code handling heap-block-metadata in Massif
and Addrcheck/Memcheck a little.

This exposed a nasty bug in VG_(client_alloc)() which wasn't checking if
find_map_space() was succeeding before attempting an mmap().  Before I added
the check, very big mallocs (eg 2GB) for Addrcheck were overwriting the client
space at address 0 and causing crashes.

Added a regtest to all the affected skins for this.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2462
2004-07-10 14:56:28 +00:00
..
2004-06-22 14:01:40 +00:00
2004-04-13 08:36:35 +00:00
2004-04-13 08:36:35 +00:00
2003-07-13 22:35:55 +00:00
2004-04-13 08:36:35 +00:00
2004-04-13 08:36:35 +00:00
2004-07-10 14:56:28 +00:00
2004-06-19 18:12:36 +00:00
2004-06-19 18:12:36 +00:00
2004-06-19 18:12:36 +00:00
2003-10-09 15:40:38 +00:00
2003-10-09 15:40:38 +00:00
2004-04-13 19:11:27 +00:00
2003-06-01 20:04:10 +00:00
2004-04-13 19:11:27 +00:00
2004-04-13 08:36:35 +00:00
2002-10-07 14:46:07 +00:00
2004-07-10 14:56:28 +00:00
2004-07-10 14:56:28 +00:00
2004-04-13 08:36:35 +00:00