Share

The mimedecode library

Tracker: Bugs

5 segault in 0.0.2 -- fix included - ID: 1755553
Last Update: Tracker Item Submitted ( imi1984 )

on empty input your code throws a segmentation fault, here is the patch to
fix it:

diff -Naur 01original/mime/mime/decode.h 03repaired/mime/mime/decode.h
--- 01original/mime/mime/decode.h 2007-07-11 01:50:11.000000000 +0200
+++ 03repaired/mime/mime/decode.h 2007-07-17 17:56:25.000000000 +0200
@@ -67,8 +67,11 @@
to the decoder to finalise processing and clean up all
resources.
*/
void close() {
- p->close();
- delete p;
+ if(p)
+ {
+ p->close();
+ delete p;
+ }
delete obj;
}
/**


Imre Péntek ( imi1984 ) - 2007-07-17 16:06

5

Open

None

Nobody/Anonymous

None

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.