|
From: Jeremy F. <je...@go...> - 2005-01-19 22:50:38
|
Hi all, Is anyone using VALGRIND_MALLOCLIKE_BLOCK/FREELIKE_BLOCK? If so, how? It seems to me that these requests are basically useless, because there's no way for Valgrind to tell when your malloc implementation is manipulating its metadata, and when the client is trashing it. If you mark your memory regions returned by your malloc-like function, Valgrind will complain when you touch memory near it with your free-like function. I think we need to add another pair of requests, VALGRIND_ENTER_MALLOCLIKE_FUNCTION/LEAVE_MALLOCLIKE_FUNCTION, which tells Valgrind not to complain about touching memory outside of blocks which have been declared MALLOCLIKE. J |