]> git.llucax.com Git - software/mutt-debian.git/commitdiff
upstream/620854-pop3-segfault.patch: prevent segfault when $message_cachedir is set...
authorAntonio Radici <antonio@dyne.org>
Mon, 11 Apr 2011 15:29:11 +0000 (16:29 +0100)
committerAntonio Radici <antonio@dyne.org>
Mon, 11 Apr 2011 15:29:11 +0000 (16:29 +0100)
debian/changelog
debian/patches/series
debian/patches/upstream/620854-pop3-segfault.patch [new file with mode: 0644]

index 3162bc3996c66842620875a13a03c80a1e89c1fc..25618a63f4ec10d57440cb02d07571fca5c1ae9c 100644 (file)
@@ -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)
   * 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
 
 
  -- Antonio Radici <antonio@dyne.org>  Mon, 11 Apr 2011 16:23:35 +0100
 
index 61c912e158ab5be531d221b56ac68e63c0d1cced..220ff07d4bcaad9f69a01c069d9f095e3b7c0b79 100644 (file)
@@ -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/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
 
 
 upstream/path_max
 
diff --git a/debian/patches/upstream/620854-pop3-segfault.patch b/debian/patches/upstream/620854-pop3-segfault.patch
new file mode 100644 (file)
index 0000000..afdffc6
--- /dev/null
@@ -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);
+ }