Sydarkivera / RecursiveTar

A command line tool for extracting files in nested tar archives
GNU General Public License v3.0
0 stars 0 forks source link

Valgrind reports multiple invalid memory read and writes #15

Open lxutopia opened 3 days ago

lxutopia commented 3 days ago
==2237== Invalid write of size 2
==2237==    at 0x401D54: listTarFile (viewtar.c:202)
==2237==    by 0x40298F: main (viewtar.c:424)
==2237==  Address 0x4a5a6f1 is 17 bytes inside a block of size 18 alloc'd
==2237==    at 0x4843866: malloc (vg_replace_malloc.c:446)
==2237==    by 0x401C9F: listTarFile (viewtar.c:198)
==2237==    by 0x40298F: main (viewtar.c:424)
==2237==
==2237== Invalid read of size 1
==2237==    at 0x484CEF4: strlen (vg_replace_strmem.c:505)
==2237==    by 0x48CC5D7: __printf_buffer (vfprintf-process-arg.c:435)
==2237==    by 0x48CD312: __vfprintf_internal (vfprintf-internal.c:1544)
==2237==    by 0x48C1172: printf (printf.c:33)
==2237==    by 0x401AA6: printPath (viewtar.c:154)
==2237==    by 0x401C1A: listTarFile (viewtar.c:191)
==2237==    by 0x401D79: listTarFile (viewtar.c:203)
==2237==    by 0x40298F: main (viewtar.c:424)
karinbredenberg commented 4 hours ago

This is not prioritized right now, the program works and the memory issues is not currently causing problems so this will wait to be fixed.