~ubuntu-branches/ubuntu/vivid/mutt/vivid-updates

« back to all changes in this revision

Viewing changes to debian/patches/debian-specific/Md.etc_mailname_gethostbyname.diff

Tags: 1.5.18-6
* Grab from upstream:
  + Guard idata->mailbox read in imap_mailbox_state.
    The bug happens when a user has more than a imap mailbox, when
    he/she browses through them mutt will segfault.
    (Closes: #462266, #513230, #514309. Mutt: #3057)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
--- init.c.orig
2
 
+++ init.c
 
1
--- a/init.c
 
2
+++ b/init.c
3
3
@@ -46,6 +46,7 @@
4
4
 #include <unistd.h>
5
5
 #include <string.h>
8
8
 #include <errno.h>
9
9
 #include <sys/wait.h>
10
10
 
11
 
@@ -2770,6 +2771,31 @@
 
11
@@ -2911,6 +2912,31 @@ static int mutt_execute_commands (LIST *
12
12
   return 0;
13
13
 }
14
14
 
40
40
 void mutt_init (int skip_sys_rc, LIST *commands)
41
41
 {
42
42
   struct passwd *pw;
43
 
@@ -2841,10 +2867,25 @@
 
43
@@ -2982,10 +3008,25 @@ void mutt_init (int skip_sys_rc, LIST *c
44
44
     Hostname = mutt_substrdup (utsname.nodename, p);
45
45
     p++;
46
46
     strfcpy (buffer, p, sizeof (buffer)); /* save the domain for below */