Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- matei@matei-Satellite-C660:~/Desktop/Tema 3/tests$ valgrind ./mycompbmp -d test7-ref.mcb
- ==7347== Memcheck, a memory error detector
- ==7347== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
- ==7347== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
- ==7347== Command: ./mycompbmp -d test7-ref.mcb
- ==7347==
- Decompressing...
- ==7347== Invalid read of size 4
- ==7347== at 0x8049BE8: bitmapDecompress(char*, char*) (MCBFile.cpp:102)
- ==7347== by 0x804ADC4: main (mycompbmp.cpp:47)
- ==7347== Address 0x4323d38 is not stack'd, malloc'd or (recently) free'd
- ==7347==
- ==7347== Invalid read of size 1
- ==7347== at 0x8049BEB: bitmapDecompress(char*, char*) (MCBFile.cpp:102)
- ==7347== by 0x804ADC4: main (mycompbmp.cpp:47)
- ==7347== Address 0x0 is not stack'd, malloc'd or (recently) free'd
- ==7347==
- ==7347==
- ==7347== Process terminating with default action of signal 11 (SIGSEGV)
- ==7347== Access not within mapped region at address 0x0
- ==7347== at 0x8049BEB: bitmapDecompress(char*, char*) (MCBFile.cpp:102)
- ==7347== by 0x804ADC4: main (mycompbmp.cpp:47)
- ==7347== If you believe this happened as a result of a stack
- ==7347== overflow in your program's main thread (unlikely but
- ==7347== possible), you can try to increase the size of the
- ==7347== main thread stack using the --main-stacksize= flag.
- ==7347== The main thread stack size used in this run was 8388608.
- ==7347==
- ==7347== HEAP SUMMARY:
- ==7347== in use at exit: 790 bytes in 12 blocks
- ==7347== total heap usage: 12 allocs, 0 frees, 790 bytes allocated
- ==7347==
- ==7347== LEAK SUMMARY:
- ==7347== definitely lost: 32 bytes in 1 blocks
- ==7347== indirectly lost: 40 bytes in 8 blocks
- ==7347== possibly lost: 0 bytes in 0 blocks
- ==7347== still reachable: 718 bytes in 3 blocks
- ==7347== suppressed: 0 bytes in 0 blocks
- ==7347== Rerun with --leak-check=full to see details of leaked memory
- ==7347==
- ==7347== For counts of detected and suppressed errors, rerun with: -v
- ==7347== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)
- Segmentation fault (core dumped)
- matei@matei-Satellite-C660:~/Desktop/Tema 3/tests$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement