Mailing List Archive

latest ripMIME dev release - need help
Hi there all,

I'm running into a memory leak/overwrite in the ripOLE section of ripMIME with some .doc files. I can't seem to be
able to work out what I'm doing wrong.

If I use valgrind, I get the following;

==31675== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
48 ==31675==
49 ==31675== 1 errors in context 1 of 1:
50 ==31675== Invalid read of size 1
51 ==31675== at 0x804A94A: get_1byte_value (bytedecoders.c:20)
52 ==31675== by 0x804BDF6: main (ripole.c:300)
53 ==31675== by 0x4023EBB3: __libc_start_main (in /lib/libc-2.3.1.so)
54 ==31675== by 0x80488F0: (within /extra/development/ripOLE/validate/ripole)
55 ==31675== Address 0x4117D318 is 0 bytes after a block of size 2048 alloc'd
56 ==31675== at 0x400276BA: malloc (vg_replace_malloc.c:153)
57 ==31675== by 0x8049930: OLE_load_chain (ole.c:1033)
58 ==31675== by 0x804A048: OLE_decode_file (ole.c:1327)
59 ==31675== by 0x804BDF6: main (ripole.c:300)
60 ==31675== IN SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)

------------------------------------------------

So, basically I'm alloc/free'ing everything right, but for some reason I get the occasional overwrite in memory :-(

Anyone any good with this sort of stuff? (I spent 6 hours last night eliminating various other issues in Valgrind, but
this one has me stumped).

Paul.

--
Paul L Daniels - PLD Software - Xamime
Unix systems Internet Development A.B.N. 19 500 721 806
ICQ#103642862,AOL:pldsoftware,Yahoo:pldaniels73
PGP Public Key at http://www.pldaniels.com/gpg-keys.pld