Skip to content
Browse files

upstream/620854-pop3-segfault.patch: prevent segfault when $message_c…

…achedir is set and a pop3 mailbox is open (Closes: 620854)
  • Loading branch information...
1 parent d3fc6a7 commit 2a774d6831a0666cbef7925c8bab5d1754f8c1d4 Antonio Radici committed
Showing with 17 additions and 0 deletions.
  1. +2 −0 debian/changelog
  2. +1 −0 debian/patches/series
  3. +14 −0 debian/patches/upstream/620854-pop3-segfault.patch
View
2 debian/changelog
@@ -3,6 +3,8 @@ mutt (1.5.21-4) unstable; urgency=low
* debian/paches:
+ mutt-patched/sidebar: added a closedir() so the fds will not be starved
(Closes: 620854)
+ + upstream/620854-pop3-segfault.patch: prevent segfault when
+ $message_cachedir is set and a pop3 mailbox is open (Closes: 620854)
-- Antonio Radici <antonio@dyne.org> Mon, 11 Apr 2011 16:23:35 +0100
View
1 debian/patches/series
@@ -45,6 +45,7 @@ upstream/578087-header-strchr.patch
upstream/603288-split-fetches.patch
upstream/537061-dont-recode-saved-attachments.patch
upstream/608706-fix-spelling-errors.patch
+upstream/620854-pop3-segfault.patch
upstream/path_max
View
14 debian/patches/upstream/620854-pop3-segfault.patch
@@ -0,0 +1,14 @@
+Fix a segfault that happens when $message_cachedir is set and a POP3 mailbox is
+being opened, patch fetched from upstream bug http://bugs.mutt.org/3457
+
+--- a/muttlib.c
++++ b/muttlib.c
+@@ -1962,6 +1962,7 @@
+ {
+ char *p = safe_strdup (src);
+ int rc = mutt_convert_string (&p, Charset, "utf-8", 0);
+- strfcpy (dest, rc == 0 ? p : src, dlen);
++ /* `src' may be NULL, such as when called from the pop3 driver. */
++ strfcpy (dest, (rc == 0) ? NONULL(p) : NONULL(src), dlen);
+ FREE (&p);
+ }

0 comments on commit 2a774d6

Please sign in to comment.
Something went wrong with that request. Please try again.