Re: [Valgrind-users] about a stack fill option (as for malloc-fill and free-fill)

2023-03-30 Thread Paul Floyd
On 29-03-23 04:41, John Reiser wrote:  Could it be possible to add an option like --heap-up-fill --heap-down-fill (like for stack with malloc), that fills heap memory with a specified values (when entering a function and leave a function)? tl;dr 2 See https://www.open-std.org/jtc1/sc22

Re: [Valgrind-users] about a stack fill option (as for malloc-fill and free-fill)

2023-03-28 Thread John Reiser
 Could it be possible to add an option like --heap-up-fill --heap-down-fill (like for stack with malloc), that fills heap memory with a specified values (when entering a function and leave a function)? tl;dr 2 See https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p2723r0.html Th

Re: [Valgrind-users] about a stack fill option (as for malloc-fill and free-fill)

2023-03-28 Thread Paul Floyd
On 28-03-23 11:40, Julien Allali wrote: Hi, Sometimes, valgrind detects error like "Conditional jump or move depends" or "Use of uninitialized value" related to a variable in heap. When using with gdb (--vgdb-error=1), a newbie (i.e. my students) can have difficulties to understand as

[Valgrind-users] about a stack fill option (as for malloc-fill and free-fill)

2023-03-28 Thread Julien Allali
Hi, Sometimes, valgrind detects error like "Conditional jump or move depends" or "Use of uninitialized value" related to a variable in heap. When using with gdb (--vgdb-error=1), a newbie (i.e. my students) can have difficulties to understand as the value stored is 0 (because there was zeros