1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
  
     | 
    
      Invalid write of size 4
   at 0x........: main (custom_alloc.c:117)
 Address 0x........ is 0 bytes after a block of size 40 alloc'd
   at 0x........: custom_alloc (custom_alloc.c:47)
   by 0x........: main (custom_alloc.c:114)
Invalid write of size 4
   at 0x........: main (custom_alloc.c:121)
 Address 0x........ is 0 bytes after a block of size 20 alloc'd
   at 0x........: custom_alloc (custom_alloc.c:47)
   by 0x........: main (custom_alloc.c:114)
Conditional jump or move depends on uninitialised value(s)
   at 0x........: main (custom_alloc.c:128)
Invalid write of size 4
   at 0x........: main (custom_alloc.c:131)
 Address 0x........ is 0 bytes after a block of size 28 alloc'd
   at 0x........: custom_alloc (custom_alloc.c:47)
   by 0x........: main (custom_alloc.c:114)
Invalid free() / delete / delete[] / realloc()
   at 0x........: main (custom_alloc.c:134)
 Address 0x........ is 4 bytes inside a block of size 28 alloc'd
   at 0x........: custom_alloc (custom_alloc.c:47)
   by 0x........: main (custom_alloc.c:114)
Invalid free() / delete / delete[] / realloc()
   at 0x........: custom_free (custom_alloc.c:54)
   by 0x........: main (custom_alloc.c:138)
 Address 0x........ is not stack'd, malloc'd or (recently) free'd
Mismatched free() / delete / delete []
   at 0x........: custom_free (custom_alloc.c:54)
   by 0x........: main (custom_alloc.c:141)
 Address 0x........ is 0 bytes inside a block of size 40 alloc'd
   at 0x........: malloc (vg_replace_malloc.c:...)
   by 0x........: main (custom_alloc.c:140)
Invalid read of size 1
   at 0x........: main (custom_alloc.c:144)
 Address 0x........ is 0 bytes inside a block of size 28 free'd
   at 0x........: custom_free (custom_alloc.c:54)
   by 0x........: main (custom_alloc.c:136)
Invalid write of size 1
   at 0x........: checkredzone (custom_alloc.c:68)
   by 0x........: main (custom_alloc.c:151)
 Address 0x........ is 1 bytes before a block of size 20 alloc'd
   at 0x........: checkredzone (custom_alloc.c:66)
   by 0x........: main (custom_alloc.c:151)
Invalid write of size 1
   at 0x........: checkredzone (custom_alloc.c:69)
   by 0x........: main (custom_alloc.c:151)
 Address 0x........ is 8 bytes before a block of size 20 alloc'd
   at 0x........: checkredzone (custom_alloc.c:66)
   by 0x........: main (custom_alloc.c:151)
Invalid write of size 1
   at 0x........: checkredzone (custom_alloc.c:73)
   by 0x........: main (custom_alloc.c:151)
 Address 0x........ is 0 bytes after a block of size 20 alloc'd
   at 0x........: checkredzone (custom_alloc.c:66)
   by 0x........: main (custom_alloc.c:151)
Invalid write of size 1
   at 0x........: checkredzone (custom_alloc.c:74)
   by 0x........: main (custom_alloc.c:151)
 Address 0x........ is 7 bytes after a block of size 20 alloc'd
   at 0x........: checkredzone (custom_alloc.c:66)
   by 0x........: main (custom_alloc.c:151)
Invalid write of size 1
   at 0x........: checkredzone (custom_alloc.c:83)
   by 0x........: main (custom_alloc.c:151)
 Address 0x........ is 1 bytes before a recently re-allocated block of size 10 alloc'd
   at 0x........: checkredzone (custom_alloc.c:81)
   by 0x........: main (custom_alloc.c:151)
Invalid write of size 1
   at 0x........: checkredzone (custom_alloc.c:84)
   by 0x........: main (custom_alloc.c:151)
 Address 0x........ is 8 bytes before a recently re-allocated block of size 10 alloc'd
   at 0x........: checkredzone (custom_alloc.c:81)
   by 0x........: main (custom_alloc.c:151)
Invalid write of size 1
   at 0x........: checkredzone (custom_alloc.c:88)
   by 0x........: main (custom_alloc.c:151)
 Address 0x........ is 0 bytes after a recently re-allocated block of size 10 alloc'd
   at 0x........: checkredzone (custom_alloc.c:81)
   by 0x........: main (custom_alloc.c:151)
Invalid write of size 1
   at 0x........: checkredzone (custom_alloc.c:89)
   by 0x........: main (custom_alloc.c:151)
 Address 0x........ is 7 bytes after a recently re-allocated block of size 10 alloc'd
   at 0x........: checkredzone (custom_alloc.c:81)
   by 0x........: main (custom_alloc.c:151)
Invalid write of size 1
   at 0x........: checkredzone (custom_alloc.c:90)
   by 0x........: main (custom_alloc.c:151)
 Address 0x........ is 8 bytes after a recently re-allocated block of size 10 alloc'd
   at 0x........: checkredzone (custom_alloc.c:81)
   by 0x........: main (custom_alloc.c:151)
 
     |