Advertisement
Guest User

Untitled

a guest
Oct 5th, 2016
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.29 KB | None | 0 0
  1. ivan@linuxdev:~/ota/binary_diff_tools/bsdiff-master/minibsdiff-master$ gcc -g *.c -o minibsdiff
  2. bsdiff.c: In function ‘reorderBlocks’:
  3. bsdiff.c:835:9: error: ‘ewFileBlock’ undeclared (first use in this function)
  4. if( ewFileBlock[i].dataBlock != NULL )
  5. ^
  6.  
  7. gcc -g *.c -o minibsdiff
  8. valgrind --track-origins=yes --leak-check=full ./minibsdiff gen ivanTestBin/setup1.exe ivanTestBin/setup2.exe ivanTestBin/setuppatch
  9.  
  10. ==5722== Memcheck, a memory error detector
  11. ==5722== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
  12. ==5722== Using Valgrind-3.12.0.SVN and LibVEX; rerun with -h for copyright info
  13. ==5722== Command: ./minibsdiff gen ivanTestBin/setup1.exe ivanTestBin/setup2.exe ivanTestBin/setuppatch
  14. ==5722==
  15. Generating binary patch between ivanTestBin/setup1.exe and ivanTestBin/setup2.exe
  16. Old file = 967168 bytes
  17. New file = 965632 bytes
  18. Computing binary delta...
  19. ==5722== Invalid read of size 8
  20. ==5722== at 0x4C2F14E: memcpy@GLIBC_2.2.5 (vg_replace_strmem.c:1017)
  21. ==5722== by 0x402DC9: reorderBlocks (bsdiff.c:920)
  22. ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
  23. ==5722== by 0x4056B6: diff (minibsdiff.c:146)
  24. ==5722== by 0x40591A: main (minibsdiff.c:226)
  25. ==5722== Address 0x55b9680 is 3 bytes after a block of size 29 alloc'd
  26. ==5722== at 0x4C2ABAF: malloc (vg_replace_malloc.c:299)
  27. ==5722== by 0x402895: reorderBlocks (bsdiff.c:814)
  28. ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
  29. ==5722== by 0x4056B6: diff (minibsdiff.c:146)
  30. ==5722== by 0x40591A: main (minibsdiff.c:226)
  31. ==5722==
  32. ==5722== Invalid read of size 8
  33. ==5722== at 0x4C2F140: memcpy@GLIBC_2.2.5 (vg_replace_strmem.c:1017)
  34. ==5722== by 0x402DC9: reorderBlocks (bsdiff.c:920)
  35. ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
  36. ==5722== by 0x4056B6: diff (minibsdiff.c:146)
  37. ==5722== by 0x40591A: main (minibsdiff.c:226)
  38. ==5722== Address 0x55b9688 is 11 bytes after a block of size 29 alloc'd
  39. ==5722== at 0x4C2ABAF: malloc (vg_replace_malloc.c:299)
  40. ==5722== by 0x402895: reorderBlocks (bsdiff.c:814)
  41. ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
  42. ==5722== by 0x4056B6: diff (minibsdiff.c:146)
  43. ==5722== by 0x40591A: main (minibsdiff.c:226)
  44. ==5722==
  45. ==5722== Invalid read of size 1
  46. ==5722== at 0x4C2F1C8: memcpy@GLIBC_2.2.5 (vg_replace_strmem.c:1017)
  47. ==5722== by 0x402DC9: reorderBlocks (bsdiff.c:920)
  48. ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
  49. ==5722== by 0x4056B6: diff (minibsdiff.c:146)
  50. ==5722== by 0x40591A: main (minibsdiff.c:226)
  51. ==5722== Address 0x67625f1 is 0 bytes after a block of size 545 alloc'd
  52. ==5722== at 0x4C2ABAF: malloc (vg_replace_malloc.c:299)
  53. ==5722== by 0x402895: reorderBlocks (bsdiff.c:814)
  54. ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
  55. ==5722== by 0x4056B6: diff (minibsdiff.c:146)
  56. ==5722== by 0x40591A: main (minibsdiff.c:226)
  57. ==5722==
  58. ==5722== Invalid read of size 1
  59. ==5722== at 0x4C2F1D6: memcpy@GLIBC_2.2.5 (vg_replace_strmem.c:1017)
  60. ==5722== by 0x402DC9: reorderBlocks (bsdiff.c:920)
  61. ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
  62. ==5722== by 0x4056B6: diff (minibsdiff.c:146)
  63. ==5722== by 0x40591A: main (minibsdiff.c:226)
  64. ==5722== Address 0x67625f2 is 1 bytes after a block of size 545 alloc'd
  65. ==5722== at 0x4C2ABAF: malloc (vg_replace_malloc.c:299)
  66. ==5722== by 0x402895: reorderBlocks (bsdiff.c:814)
  67. ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
  68. ==5722== by 0x4056B6: diff (minibsdiff.c:146)
  69. ==5722== by 0x40591A: main (minibsdiff.c:226)
  70. ==5722==
  71. ==5722== Invalid read of size 2
  72. ==5722== at 0x4C2F1A7: memcpy@GLIBC_2.2.5 (vg_replace_strmem.c:1017)
  73. ==5722== by 0x402E5D: reorderBlocks (bsdiff.c:925)
  74. ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
  75. ==5722== by 0x4056B6: diff (minibsdiff.c:146)
  76. ==5722== by 0x40591A: main (minibsdiff.c:226)
  77. ==5722== Address 0x55aa706 is 0 bytes after a block of size 6 alloc'd
  78. ==5722== at 0x4C2ABAF: malloc (vg_replace_malloc.c:299)
  79. ==5722== by 0x4028FD: reorderBlocks (bsdiff.c:819)
  80. ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
  81. ==5722== by 0x4056B6: diff (minibsdiff.c:146)
  82. ==5722== by 0x40591A: main (minibsdiff.c:226)
  83. ==5722==
  84. ==5722== Invalid read of size 2
  85. ==5722== at 0x4C2F198: memcpy@GLIBC_2.2.5 (vg_replace_strmem.c:1017)
  86. ==5722== by 0x402E5D: reorderBlocks (bsdiff.c:925)
  87. ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
  88. ==5722== by 0x4056B6: diff (minibsdiff.c:146)
  89. ==5722== by 0x40591A: main (minibsdiff.c:226)
  90. ==5722== Address 0x55aa70a is 4 bytes after a block of size 6 alloc'd
  91. ==5722== at 0x4C2ABAF: malloc (vg_replace_malloc.c:299)
  92. ==5722== by 0x4028FD: reorderBlocks (bsdiff.c:819)
  93. ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
  94. ==5722== by 0x4056B6: diff (minibsdiff.c:146)
  95. ==5722== by 0x40591A: main (minibsdiff.c:226)
  96. ==5722==
  97. ==5722== Invalid read of size 2
  98. ==5722== at 0x4C2F1A7: memcpy@GLIBC_2.2.5 (vg_replace_strmem.c:1017)
  99. ==5722== by 0x402DC9: reorderBlocks (bsdiff.c:920)
  100. ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
  101. ==5722== by 0x4056B6: diff (minibsdiff.c:146)
  102. ==5722== by 0x40591A: main (minibsdiff.c:226)
  103. ==5722== Address 0x55abf84 is 0 bytes after a block of size 20 alloc'd
  104. ==5722== at 0x4C2ABAF: malloc (vg_replace_malloc.c:299)
  105. ==5722== by 0x402895: reorderBlocks (bsdiff.c:814)
  106. ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
  107. ==5722== by 0x4056B6: diff (minibsdiff.c:146)
  108. ==5722== by 0x40591A: main (minibsdiff.c:226)
  109. ==5722==
  110. ==5722== Invalid read of size 2
  111. ==5722== at 0x4C2F198: memcpy@GLIBC_2.2.5 (vg_replace_strmem.c:1017)
  112. ==5722== by 0x402DC9: reorderBlocks (bsdiff.c:920)
  113. ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
  114. ==5722== by 0x4056B6: diff (minibsdiff.c:146)
  115. ==5722== by 0x40591A: main (minibsdiff.c:226)
  116. ==5722== Address 0x55abf8a is 6 bytes after a block of size 20 alloc'd
  117. ==5722== at 0x4C2ABAF: malloc (vg_replace_malloc.c:299)
  118. ==5722== by 0x402895: reorderBlocks (bsdiff.c:814)
  119. ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
  120. ==5722== by 0x4056B6: diff (minibsdiff.c:146)
  121. ==5722== by 0x40591A: main (minibsdiff.c:226)
  122. ==5722==
  123. ==5722== Invalid read of size 8
  124. ==5722== at 0x4C2F14E: memcpy@GLIBC_2.2.5 (vg_replace_strmem.c:1017)
  125. ==5722== by 0x402E5D: reorderBlocks (bsdiff.c:925)
  126. ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
  127. ==5722== by 0x4056B6: diff (minibsdiff.c:146)
  128. ==5722== by 0x40591A: main (minibsdiff.c:226)
  129. ==5722== Address 0x6762d40 is 4 bytes after a block of size 12 alloc'd
  130. ==5722== at 0x4C2ABAF: malloc (vg_replace_malloc.c:299)
  131. ==5722== by 0x4028FD: reorderBlocks (bsdiff.c:819)
  132. ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
  133. ==5722== by 0x4056B6: diff (minibsdiff.c:146)
  134. ==5722== by 0x40591A: main (minibsdiff.c:226)
  135. ==5722==
  136. ==5722== Invalid read of size 8
  137. ==5722== at 0x4C2F140: memcpy@GLIBC_2.2.5 (vg_replace_strmem.c:1017)
  138. ==5722== by 0x402E5D: reorderBlocks (bsdiff.c:925)
  139. ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
  140. ==5722== by 0x4056B6: diff (minibsdiff.c:146)
  141. ==5722== by 0x40591A: main (minibsdiff.c:226)
  142. ==5722== Address 0x6763b78 is 1 bytes after a block of size 7 alloc'd
  143. ==5722== at 0x4C2ABAF: malloc (vg_replace_malloc.c:299)
  144. ==5722== by 0x4028FD: reorderBlocks (bsdiff.c:819)
  145. ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
  146. ==5722== by 0x4056B6: diff (minibsdiff.c:146)
  147. ==5722== by 0x40591A: main (minibsdiff.c:226)
  148. ==5722==
  149. ==5722== Invalid read of size 1
  150. ==5722== at 0x4C2F1D6: memcpy@GLIBC_2.2.5 (vg_replace_strmem.c:1017)
  151. ==5722== by 0x402E5D: reorderBlocks (bsdiff.c:925)
  152. ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
  153. ==5722== by 0x4056B6: diff (minibsdiff.c:146)
  154. ==5722== by 0x40591A: main (minibsdiff.c:226)
  155. ==5722== Address 0x55ab57b is 0 bytes after a block of size 11 alloc'd
  156. ==5722== at 0x4C2ABAF: malloc (vg_replace_malloc.c:299)
  157. ==5722== by 0x4028FD: reorderBlocks (bsdiff.c:819)
  158. ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
  159. ==5722== by 0x4056B6: diff (minibsdiff.c:146)
  160. ==5722== by 0x40591A: main (minibsdiff.c:226)
  161. ==5722==
  162. ==5722== Invalid read of size 1
  163. ==5722== at 0x4C2F1C8: memcpy@GLIBC_2.2.5 (vg_replace_strmem.c:1017)
  164. ==5722== by 0x402E5D: reorderBlocks (bsdiff.c:925)
  165. ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
  166. ==5722== by 0x4056B6: diff (minibsdiff.c:146)
  167. ==5722== by 0x40591A: main (minibsdiff.c:226)
  168. ==5722== Address 0x55ab57d is 2 bytes after a block of size 11 alloc'd
  169. ==5722== at 0x4C2ABAF: malloc (vg_replace_malloc.c:299)
  170. ==5722== by 0x4028FD: reorderBlocks (bsdiff.c:819)
  171. ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
  172. ==5722== by 0x4056B6: diff (minibsdiff.c:146)
  173. ==5722== by 0x40591A: main (minibsdiff.c:226)
  174. ==5722==
  175. ==5722== Invalid read of size 8
  176. ==5722== at 0x402F37: reorderBlocks (bsdiff.c:1029)
  177. ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
  178. ==5722== by 0x4056B6: diff (minibsdiff.c:146)
  179. ==5722== by 0x40591A: main (minibsdiff.c:226)
  180. ==5722== Address 0x55a8cb8 is 7 bytes after a block of size 34,273 alloc'd
  181. ==5722== at 0x4C2ABAF: malloc (vg_replace_malloc.c:299)
  182. ==5722== by 0x402716: reorderBlocks (bsdiff.c:779)
  183. ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
  184. ==5722== by 0x4056B6: diff (minibsdiff.c:146)
  185. ==5722== by 0x40591A: main (minibsdiff.c:226)
  186. ==5722==
  187. SALGO DEL REORDENADO
  188. ==5722==
  189. ==5722== HEAP SUMMARY:
  190. ==5722== in use at exit: 13,391,095 bytes in 267 blocks
  191. ==5722== total heap usage: 690 allocs, 423 frees, 23,374,870 bytes allocated
  192. ==5722==
  193. ==5722== 733,149 bytes in 262 blocks are definitely lost in loss record 1 of 6
  194. ==5722== at 0x4C2ABAF: malloc (vg_replace_malloc.c:299)
  195. ==5722== by 0x402895: reorderBlocks (bsdiff.c:814)
  196. ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
  197. ==5722== by 0x4056B6: diff (minibsdiff.c:146)
  198. ==5722== by 0x40591A: main (minibsdiff.c:226)
  199. ==5722==
  200. ==5722== LEAK SUMMARY:
  201. ==5722== definitely lost: 733,149 bytes in 262 blocks
  202. ==5722== indirectly lost: 0 bytes in 0 blocks
  203. ==5722== possibly lost: 0 bytes in 0 blocks
  204. ==5722== still reachable: 12,657,946 bytes in 5 blocks
  205. ==5722== suppressed: 0 bytes in 0 blocks
  206. ==5722== Reachable blocks (those to which a pointer was found) are not shown.
  207. ==5722== To see them, rerun with: --leak-check=full --show-leak-kinds=all
  208. ==5722==
  209. ==5722== For counts of detected and suppressed errors, rerun with: -v
  210. ==5722== ERROR SUMMARY: 588550 errors from 14 contexts (suppressed: 0 from 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement