2
test simple malloc/free:
3
Use of uninitialised value of size 4
4
at 0x........: _itoa_word (in /...libc...)
9
by 0x........: main (malloc_free_fill.c:17)
11
Conditional jump or move depends on uninitialised value(s)
12
at 0x........: _itoa_word (in /...libc...)
17
by 0x........: main (malloc_free_fill.c:17)
19
Conditional jump or move depends on uninitialised value(s)
20
at 0x........: vfprintf (in /...libc...)
24
by 0x........: main (malloc_free_fill.c:17)
25
(should be malloc-filled) a[4] = 55555555
27
Invalid read of size 4
28
at 0x........: main (malloc_free_fill.c:20)
29
Address 0x........ is 20 bytes inside a block of size 40 free'd
30
at 0x........: free (vg_replace_malloc.c:...)
31
by 0x........: main (malloc_free_fill.c:19)
32
(should be free-filled) a[5] = 77777777
34
(should be malloc-filled) r[25] = 55555555
36
Invalid read of size 4
37
at 0x........: main (malloc_free_fill.c:33)
38
Address 0x........ is 104 bytes inside a block of size 120 free'd
39
at 0x........: realloc (vg_replace_malloc.c:...)
40
by 0x........: main (malloc_free_fill.c:31)
41
(should be free-filled) oldr[26] = 77777777
42
(should be malloc-filled) r[35] = 55555555
44
(should be malloc-filled) r[25] = 55555555
46
Invalid read of size 4
47
at 0x........: main (malloc_free_fill.c:49)
48
Address 0x........ is not stack'd, malloc'd or (recently) free'd
49
(should be free-filled) oldr[26] = 77777777
51
(should be zero) a[42] = 0
53
ERROR SUMMARY: 67 errors from 6 contexts (suppressed: 0 from 0)
54
malloc/free: in use at exit: 0 bytes in 0 blocks.
55
malloc/free: 6 allocs, 6 frees, 920 bytes allocated.
56
For a detailed leak analysis, rerun with: --leak-check=yes
57
For counts of detected errors, rerun with: -v