commit | 5544d5b82b6900c9ea69dfd4e786b69b0751cf99 | [log] [tgz] |
---|---|---|
author | florian <florian@a5019735-40e9-0310-863c-91ae7b9d1cf9> | Fri Dec 30 03:09:45 2011 +0000 |
committer | florian <florian@a5019735-40e9-0310-863c-91ae7b9d1cf9> | Fri Dec 30 03:09:45 2011 +0000 |
tree | 9443116d2a58872371be306f407c41d73ab79522 | |
parent | e75fdeba195dc687224dfb8b8ac7adba42f9f6ac [diff] |
Fix accounting for MC_(realloc). It was inconsistent as compared to other wrappers in that it took place before the silly-args check. Testcase and patch by Yann Droneaud (yann@droneaud.fr). Fixes #281482 Also included is a related fix to MC_(new_block). Incrementing the alloc counter and updating the allocated memory amount should occur under the same condition (allocation succeeded). git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12324 a5019735-40e9-0310-863c-91ae7b9d1cf9