https://bugs.kde.org/show_bug.cgi?id=522012
Mark Wielaard <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from Mark Wielaard <[email protected]> --- Comment on attachment 193550 --> https://bugs.kde.org/attachment.cgi?id=193550 Patch to fix the issue That does look like the obvious fix, but it will cause an failure because the lines won't match anymore: reallocarray() with size 0 at 0x........: reallocarray (vg_replace_malloc.c:...) - by 0x........: main (reallocarray.c:19) + by 0x........: main (reallocarray.c:20) Address 0x........ is 0 bytes inside a block of size 40 alloc'd at 0x........: reallocarray (vg_replace_malloc.c:...) - by 0x........: main (reallocarray.c:14) + by 0x........: main (reallocarray.c:15) So lets also remove one line of whitespace: diff --git a/memcheck/tests/amd64-linux/reallocarray.c b/memcheck/tests/amd64-linux/reallocarray.c index 138f1da06926..d5c7395e0eb3 100644 --- a/memcheck/tests/amd64-linux/reallocarray.c +++ b/memcheck/tests/amd64-linux/reallocarray.c @@ -1,10 +1,10 @@ +#include <stdio.h> #include <stdlib.h> #include <assert.h> #include <errno.h> #include <stdint.h> #include <malloc.h> #include "../../memcheck.h" - int main(void) { int *pi = NULL; -- You are receiving this mail because: You are watching all bug changes.
