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 ------------------------------------------------------------------------------ BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling best practices with Bonita BPM through live exercises http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF _______________________________________________ Valgrind-users mailing list Valgrind-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/valgrind-users