==7886== For more details, rerun with: -v ==7886== ==7886== Invalid write of size 1 ==7886== at 0x401E52B: strcpy (mac_replace_strmem.c:269) ==7886== by 0x804876C: main (huff-e.c:75) ==7886== Address 0x415B034 is 0 bytes after a block of size 12 alloc'd ==7886== at 0x401C422: malloc (vg_replace_malloc.c:149) ==7886== by 0x804866C: main (huff-e.c:54) ==7886== ==7886== Invalid read of size 1 ==7886== at 0x804878A: main (huff-e.c:76) ==7886== Address 0x415B034 is 0 bytes after a block of size 12 alloc'd ==7886== at 0x401C422: malloc (vg_replace_malloc.c:149) ==7886== by 0x804866C: main (huff-e.c:54) ==7886== ==7886== Invalid write of size 4 ==7886== at 0x8048796: main (huff-e.c:76) ==7886== Address 0x415B034 is 0 bytes after a block of size 12 alloc'd ==7886== at 0x401C422: malloc (vg_replace_malloc.c:149) ==7886== by 0x804866C: main (huff-e.c:54) ==7886== ==7886== Invalid write of size 2 ==7886== at 0x804879C: main (huff-e.c:76) ==7886== Address 0x415B038 is 4 bytes after a block of size 12 alloc'd ==7886== at 0x401C422: malloc (vg_replace_malloc.c:149) ==7886== by 0x804866C: main (huff-e.c:54) ==7886== ==7886== Syscall param open(filename) points to unaddressable byte(s) ==7886== at 0x4000772: (within /lib/ld-2.3.6.so) ==7886== by 0x407F128: (within /lib/tls/i686/cmov/libc-2.3.6.so) ==7886== by 0x407F17C: fopen (in /lib/tls/i686/cmov/libc-2.3.6.so) ==7886== by 0x804895E: writeHeader (huff-e.c:170) ==7886== by 0x8048818: main (huff-e.c:102) ==7886== Address 0x415B034 is 0 bytes after a block of size 12 alloc'd ==7886== at 0x401C422: malloc (vg_replace_malloc.c:149) ==7886== by 0x804866C: main (huff-e.c:54) ==7886== ==7886== ERROR SUMMARY: 5 errors from 5 contexts (suppressed: 11 from 1) ==7886== malloc/free: in use at exit: 0 bytes in 0 blocks. ==7886== malloc/free: 2 allocs, 2 frees, 364 bytes allocated. ==7886== For counts of detected errors, rerun with: -v ==7886== No malloc'd blocks -- no leaks are possible.