diff options
Diffstat (limited to 'mail-client/mutt/files/mutt-1.5.20-imap-port-invalid-d6f88fbf8387.patch')
-rw-r--r-- | mail-client/mutt/files/mutt-1.5.20-imap-port-invalid-d6f88fbf8387.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/mail-client/mutt/files/mutt-1.5.20-imap-port-invalid-d6f88fbf8387.patch b/mail-client/mutt/files/mutt-1.5.20-imap-port-invalid-d6f88fbf8387.patch new file mode 100644 index 000000000000..19ae6885f177 --- /dev/null +++ b/mail-client/mutt/files/mutt-1.5.20-imap-port-invalid-d6f88fbf8387.patch @@ -0,0 +1,20 @@ +http://dev.mutt.org/trac/changeset/5899%3Ad6f88fbf8387 + +Don't parse URL port as signed short, but to int and cast to unsigned +short. Closes #3264. + +Index: url.c +=================================================================== +--- url.c (revision 5845:0698e8195545) ++++ url.c (revision 5899:d6f88fbf8387) +@@ -144,7 +144,9 @@ + if ((p = strchr (t, ':'))) + { ++ int t; + *p++ = '\0'; +- if (mutt_atos (p, (short*) &ciss->port) < 0) ++ if (mutt_atoi (p, &t) < 0 || t < 0 || t > 0xffff) + return NULL; ++ ciss->port = (unsigned short)t; + } + else |