aboutsummaryrefslogtreecommitdiff
path: root/mail/elm+ME/files
diff options
context:
space:
mode:
authorMikhail Teterin <mi@FreeBSD.org>2007-10-29 00:18:59 +0000
committerMikhail Teterin <mi@FreeBSD.org>2007-10-29 00:18:59 +0000
commit5958ff45a51675abf33ef9c7e33ca55e3bea66e2 (patch)
treeb8bc6e997d7755b6582cebb804332683b25a86c2 /mail/elm+ME/files
parent6e02f1db939e206766b572d490a63c5358ebdec1 (diff)
The fix for a double-free problem was provided by the package maintainer
(Kari Hurtta) within 24 hours after reporting. Add the patch to the port - it should not be neccessary at the next update. Bump PORTREVISION. Also change pre-install to pre-su-install to allow a non-root user to install the freshly-built port. Approved by: maintainer
Notes
Notes: svn path=/head/; revision=202250
Diffstat (limited to 'mail/elm+ME/files')
-rw-r--r--mail/elm+ME/files/patch-search-fix24
1 files changed, 24 insertions, 0 deletions
diff --git a/mail/elm+ME/files/patch-search-fix b/mail/elm+ME/files/patch-search-fix
new file mode 100644
index 000000000000..8f378c3156ff
--- /dev/null
+++ b/mail/elm+ME/files/patch-search-fix
@@ -0,0 +1,24 @@
+The meaningful part of the patch obtained from Kari E. Hurtta
+(elm+ME maintainer), which fixes a double-free in parsing of
+certain MIME e-mails. The patch should be included in the next
+release of elm.
+
+--- melib/mime_decode.c 25 Aug 2007 11:51:51 -0000 2.0
++++ melib/mime_decode.c 28 Oct 2007 07:39:29 -0000 2.2
+@@ -2525,11 +2525,13 @@
+ unlink(fname); /* Unlink was delayed */
+ *name = NULL;
+ }
+- free(fname);
+- }
+
+- if (!name)
+ free(fname);
++
++ } else {
++ if (!name)
++ free(fname);
++ }
+ return tmpfp;
+ }
+