Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ivan@linuxdev:~/ota/binary_diff_tools/bsdiff-master/minibsdiff-master$ gcc -g *.c -o minibsdiff
- bsdiff.c: In function ‘reorderBlocks’:
- bsdiff.c:835:9: error: ‘ewFileBlock’ undeclared (first use in this function)
- if( ewFileBlock[i].dataBlock != NULL )
- ^
- gcc -g *.c -o minibsdiff
- valgrind --track-origins=yes --leak-check=full ./minibsdiff gen ivanTestBin/setup1.exe ivanTestBin/setup2.exe ivanTestBin/setuppatch
- ==5722== Memcheck, a memory error detector
- ==5722== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
- ==5722== Using Valgrind-3.12.0.SVN and LibVEX; rerun with -h for copyright info
- ==5722== Command: ./minibsdiff gen ivanTestBin/setup1.exe ivanTestBin/setup2.exe ivanTestBin/setuppatch
- ==5722==
- Generating binary patch between ivanTestBin/setup1.exe and ivanTestBin/setup2.exe
- Old file = 967168 bytes
- New file = 965632 bytes
- Computing binary delta...
- ==5722== Invalid read of size 8
- ==5722== at 0x4C2F14E: memcpy@GLIBC_2.2.5 (vg_replace_strmem.c:1017)
- ==5722== by 0x402DC9: reorderBlocks (bsdiff.c:920)
- ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
- ==5722== by 0x4056B6: diff (minibsdiff.c:146)
- ==5722== by 0x40591A: main (minibsdiff.c:226)
- ==5722== Address 0x55b9680 is 3 bytes after a block of size 29 alloc'd
- ==5722== at 0x4C2ABAF: malloc (vg_replace_malloc.c:299)
- ==5722== by 0x402895: reorderBlocks (bsdiff.c:814)
- ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
- ==5722== by 0x4056B6: diff (minibsdiff.c:146)
- ==5722== by 0x40591A: main (minibsdiff.c:226)
- ==5722==
- ==5722== Invalid read of size 8
- ==5722== at 0x4C2F140: memcpy@GLIBC_2.2.5 (vg_replace_strmem.c:1017)
- ==5722== by 0x402DC9: reorderBlocks (bsdiff.c:920)
- ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
- ==5722== by 0x4056B6: diff (minibsdiff.c:146)
- ==5722== by 0x40591A: main (minibsdiff.c:226)
- ==5722== Address 0x55b9688 is 11 bytes after a block of size 29 alloc'd
- ==5722== at 0x4C2ABAF: malloc (vg_replace_malloc.c:299)
- ==5722== by 0x402895: reorderBlocks (bsdiff.c:814)
- ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
- ==5722== by 0x4056B6: diff (minibsdiff.c:146)
- ==5722== by 0x40591A: main (minibsdiff.c:226)
- ==5722==
- ==5722== Invalid read of size 1
- ==5722== at 0x4C2F1C8: memcpy@GLIBC_2.2.5 (vg_replace_strmem.c:1017)
- ==5722== by 0x402DC9: reorderBlocks (bsdiff.c:920)
- ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
- ==5722== by 0x4056B6: diff (minibsdiff.c:146)
- ==5722== by 0x40591A: main (minibsdiff.c:226)
- ==5722== Address 0x67625f1 is 0 bytes after a block of size 545 alloc'd
- ==5722== at 0x4C2ABAF: malloc (vg_replace_malloc.c:299)
- ==5722== by 0x402895: reorderBlocks (bsdiff.c:814)
- ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
- ==5722== by 0x4056B6: diff (minibsdiff.c:146)
- ==5722== by 0x40591A: main (minibsdiff.c:226)
- ==5722==
- ==5722== Invalid read of size 1
- ==5722== at 0x4C2F1D6: memcpy@GLIBC_2.2.5 (vg_replace_strmem.c:1017)
- ==5722== by 0x402DC9: reorderBlocks (bsdiff.c:920)
- ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
- ==5722== by 0x4056B6: diff (minibsdiff.c:146)
- ==5722== by 0x40591A: main (minibsdiff.c:226)
- ==5722== Address 0x67625f2 is 1 bytes after a block of size 545 alloc'd
- ==5722== at 0x4C2ABAF: malloc (vg_replace_malloc.c:299)
- ==5722== by 0x402895: reorderBlocks (bsdiff.c:814)
- ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
- ==5722== by 0x4056B6: diff (minibsdiff.c:146)
- ==5722== by 0x40591A: main (minibsdiff.c:226)
- ==5722==
- ==5722== Invalid read of size 2
- ==5722== at 0x4C2F1A7: memcpy@GLIBC_2.2.5 (vg_replace_strmem.c:1017)
- ==5722== by 0x402E5D: reorderBlocks (bsdiff.c:925)
- ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
- ==5722== by 0x4056B6: diff (minibsdiff.c:146)
- ==5722== by 0x40591A: main (minibsdiff.c:226)
- ==5722== Address 0x55aa706 is 0 bytes after a block of size 6 alloc'd
- ==5722== at 0x4C2ABAF: malloc (vg_replace_malloc.c:299)
- ==5722== by 0x4028FD: reorderBlocks (bsdiff.c:819)
- ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
- ==5722== by 0x4056B6: diff (minibsdiff.c:146)
- ==5722== by 0x40591A: main (minibsdiff.c:226)
- ==5722==
- ==5722== Invalid read of size 2
- ==5722== at 0x4C2F198: memcpy@GLIBC_2.2.5 (vg_replace_strmem.c:1017)
- ==5722== by 0x402E5D: reorderBlocks (bsdiff.c:925)
- ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
- ==5722== by 0x4056B6: diff (minibsdiff.c:146)
- ==5722== by 0x40591A: main (minibsdiff.c:226)
- ==5722== Address 0x55aa70a is 4 bytes after a block of size 6 alloc'd
- ==5722== at 0x4C2ABAF: malloc (vg_replace_malloc.c:299)
- ==5722== by 0x4028FD: reorderBlocks (bsdiff.c:819)
- ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
- ==5722== by 0x4056B6: diff (minibsdiff.c:146)
- ==5722== by 0x40591A: main (minibsdiff.c:226)
- ==5722==
- ==5722== Invalid read of size 2
- ==5722== at 0x4C2F1A7: memcpy@GLIBC_2.2.5 (vg_replace_strmem.c:1017)
- ==5722== by 0x402DC9: reorderBlocks (bsdiff.c:920)
- ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
- ==5722== by 0x4056B6: diff (minibsdiff.c:146)
- ==5722== by 0x40591A: main (minibsdiff.c:226)
- ==5722== Address 0x55abf84 is 0 bytes after a block of size 20 alloc'd
- ==5722== at 0x4C2ABAF: malloc (vg_replace_malloc.c:299)
- ==5722== by 0x402895: reorderBlocks (bsdiff.c:814)
- ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
- ==5722== by 0x4056B6: diff (minibsdiff.c:146)
- ==5722== by 0x40591A: main (minibsdiff.c:226)
- ==5722==
- ==5722== Invalid read of size 2
- ==5722== at 0x4C2F198: memcpy@GLIBC_2.2.5 (vg_replace_strmem.c:1017)
- ==5722== by 0x402DC9: reorderBlocks (bsdiff.c:920)
- ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
- ==5722== by 0x4056B6: diff (minibsdiff.c:146)
- ==5722== by 0x40591A: main (minibsdiff.c:226)
- ==5722== Address 0x55abf8a is 6 bytes after a block of size 20 alloc'd
- ==5722== at 0x4C2ABAF: malloc (vg_replace_malloc.c:299)
- ==5722== by 0x402895: reorderBlocks (bsdiff.c:814)
- ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
- ==5722== by 0x4056B6: diff (minibsdiff.c:146)
- ==5722== by 0x40591A: main (minibsdiff.c:226)
- ==5722==
- ==5722== Invalid read of size 8
- ==5722== at 0x4C2F14E: memcpy@GLIBC_2.2.5 (vg_replace_strmem.c:1017)
- ==5722== by 0x402E5D: reorderBlocks (bsdiff.c:925)
- ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
- ==5722== by 0x4056B6: diff (minibsdiff.c:146)
- ==5722== by 0x40591A: main (minibsdiff.c:226)
- ==5722== Address 0x6762d40 is 4 bytes after a block of size 12 alloc'd
- ==5722== at 0x4C2ABAF: malloc (vg_replace_malloc.c:299)
- ==5722== by 0x4028FD: reorderBlocks (bsdiff.c:819)
- ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
- ==5722== by 0x4056B6: diff (minibsdiff.c:146)
- ==5722== by 0x40591A: main (minibsdiff.c:226)
- ==5722==
- ==5722== Invalid read of size 8
- ==5722== at 0x4C2F140: memcpy@GLIBC_2.2.5 (vg_replace_strmem.c:1017)
- ==5722== by 0x402E5D: reorderBlocks (bsdiff.c:925)
- ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
- ==5722== by 0x4056B6: diff (minibsdiff.c:146)
- ==5722== by 0x40591A: main (minibsdiff.c:226)
- ==5722== Address 0x6763b78 is 1 bytes after a block of size 7 alloc'd
- ==5722== at 0x4C2ABAF: malloc (vg_replace_malloc.c:299)
- ==5722== by 0x4028FD: reorderBlocks (bsdiff.c:819)
- ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
- ==5722== by 0x4056B6: diff (minibsdiff.c:146)
- ==5722== by 0x40591A: main (minibsdiff.c:226)
- ==5722==
- ==5722== Invalid read of size 1
- ==5722== at 0x4C2F1D6: memcpy@GLIBC_2.2.5 (vg_replace_strmem.c:1017)
- ==5722== by 0x402E5D: reorderBlocks (bsdiff.c:925)
- ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
- ==5722== by 0x4056B6: diff (minibsdiff.c:146)
- ==5722== by 0x40591A: main (minibsdiff.c:226)
- ==5722== Address 0x55ab57b is 0 bytes after a block of size 11 alloc'd
- ==5722== at 0x4C2ABAF: malloc (vg_replace_malloc.c:299)
- ==5722== by 0x4028FD: reorderBlocks (bsdiff.c:819)
- ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
- ==5722== by 0x4056B6: diff (minibsdiff.c:146)
- ==5722== by 0x40591A: main (minibsdiff.c:226)
- ==5722==
- ==5722== Invalid read of size 1
- ==5722== at 0x4C2F1C8: memcpy@GLIBC_2.2.5 (vg_replace_strmem.c:1017)
- ==5722== by 0x402E5D: reorderBlocks (bsdiff.c:925)
- ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
- ==5722== by 0x4056B6: diff (minibsdiff.c:146)
- ==5722== by 0x40591A: main (minibsdiff.c:226)
- ==5722== Address 0x55ab57d is 2 bytes after a block of size 11 alloc'd
- ==5722== at 0x4C2ABAF: malloc (vg_replace_malloc.c:299)
- ==5722== by 0x4028FD: reorderBlocks (bsdiff.c:819)
- ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
- ==5722== by 0x4056B6: diff (minibsdiff.c:146)
- ==5722== by 0x40591A: main (minibsdiff.c:226)
- ==5722==
- ==5722== Invalid read of size 8
- ==5722== at 0x402F37: reorderBlocks (bsdiff.c:1029)
- ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
- ==5722== by 0x4056B6: diff (minibsdiff.c:146)
- ==5722== by 0x40591A: main (minibsdiff.c:226)
- ==5722== Address 0x55a8cb8 is 7 bytes after a block of size 34,273 alloc'd
- ==5722== at 0x4C2ABAF: malloc (vg_replace_malloc.c:299)
- ==5722== by 0x402716: reorderBlocks (bsdiff.c:779)
- ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
- ==5722== by 0x4056B6: diff (minibsdiff.c:146)
- ==5722== by 0x40591A: main (minibsdiff.c:226)
- ==5722==
- SALGO DEL REORDENADO
- ==5722==
- ==5722== HEAP SUMMARY:
- ==5722== in use at exit: 13,391,095 bytes in 267 blocks
- ==5722== total heap usage: 690 allocs, 423 frees, 23,374,870 bytes allocated
- ==5722==
- ==5722== 733,149 bytes in 262 blocks are definitely lost in loss record 1 of 6
- ==5722== at 0x4C2ABAF: malloc (vg_replace_malloc.c:299)
- ==5722== by 0x402895: reorderBlocks (bsdiff.c:814)
- ==5722== by 0x4014BC: bsdiff (bsdiff.c:379)
- ==5722== by 0x4056B6: diff (minibsdiff.c:146)
- ==5722== by 0x40591A: main (minibsdiff.c:226)
- ==5722==
- ==5722== LEAK SUMMARY:
- ==5722== definitely lost: 733,149 bytes in 262 blocks
- ==5722== indirectly lost: 0 bytes in 0 blocks
- ==5722== possibly lost: 0 bytes in 0 blocks
- ==5722== still reachable: 12,657,946 bytes in 5 blocks
- ==5722== suppressed: 0 bytes in 0 blocks
- ==5722== Reachable blocks (those to which a pointer was found) are not shown.
- ==5722== To see them, rerun with: --leak-check=full --show-leak-kinds=all
- ==5722==
- ==5722== For counts of detected and suppressed errors, rerun with: -v
- ==5722== ERROR SUMMARY: 588550 errors from 14 contexts (suppressed: 0 from 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement