Invalid write of size 1 at 0x........: main (exitprog.c:18) Address 0x........ is 0 bytes after a block of size 1,000,000 alloc'd at 0x........: malloc (vg_replace_malloc.c:...) by 0x........: main (exitprog.c:15)