|
From: Azat K. <a3a...@gm...> - 2015-04-08 06:00:54
|
On Wed, Apr 08, 2015 at 08:43:27AM +0300, juris wrote: > Hello, I was wondering if it is possible to partially mark > a memory location as undefined when running under valgrind. > > I am using a custom allocator, that allocates a some bits > in a bitmap for each memory allocation. I would like to catch > access to these bits before they are initialized. Is there some > way to do it? > > Thank you for the help. You could look at VALGRIND_SET_VBITS here: http://valgrind.org/docs/manual/mc-manual.html Example here: http://repo.or.cz/w/valgrind.git/blob/HEAD:/memcheck/tests/metadata.c |