pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/balsa Add a fix for a buffer overflow reading ir ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f0d3e9d48280
branches:  trunk
changeset: 544138:f0d3e9d48280
user:      tonnerre <tonnerre%pkgsrc.org@localhost>
date:      Sun Jul 13 13:15:29 2008 +0000

description:
Add a fix for a buffer overflow reading ir commands in balsa.

diffstat:

 mail/balsa/Makefile         |   4 ++--
 mail/balsa/distinfo         |   4 ++--
 mail/balsa/patches/patch-ag |  13 +++++++++++--
 3 files changed, 15 insertions(+), 6 deletions(-)

diffs (56 lines):

diff -r b6a078cf8d21 -r f0d3e9d48280 mail/balsa/Makefile
--- a/mail/balsa/Makefile       Sun Jul 13 12:38:40 2008 +0000
+++ b/mail/balsa/Makefile       Sun Jul 13 13:15:29 2008 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.61 2008/06/12 02:14:33 joerg Exp $
+# $NetBSD: Makefile,v 1.62 2008/07/13 13:15:29 tonnerre Exp $
 
 DISTNAME=      balsa-2.3.10
-PKGREVISION=   13
+PKGREVISION=   14
 CATEGORIES=    mail gnome
 MASTER_SITES=  http://balsa.gnome.org/
 EXTRACT_SUFX=  .tar.bz2
diff -r b6a078cf8d21 -r f0d3e9d48280 mail/balsa/distinfo
--- a/mail/balsa/distinfo       Sun Jul 13 12:38:40 2008 +0000
+++ b/mail/balsa/distinfo       Sun Jul 13 13:15:29 2008 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.12 2007/09/20 20:50:50 wiz Exp $
+$NetBSD: distinfo,v 1.13 2008/07/13 13:15:29 tonnerre Exp $
 
 SHA1 (balsa-2.3.10.tar.bz2) = 74315661721a7b222403988b2af8fbc690c1ddc4
 RMD160 (balsa-2.3.10.tar.bz2) = 2fba2b3ae62e0fa3c3d8092f559f8ab7a488c22c
@@ -8,7 +8,7 @@
 SHA1 (patch-ac) = 808f4546204fbc4a23007291637e4b4ca4175db1
 SHA1 (patch-ae) = fcd0ab1c062018b42469b033a98b4575ee2851f3
 SHA1 (patch-af) = 53e77f5f5df0e05f503713f7be163589c2381f07
-SHA1 (patch-ag) = 47036c9108405f25e862ea6402220a70bd0a0cc9
+SHA1 (patch-ag) = af887dee466e2b0904522e0896cc13bf58fb9d2c
 SHA1 (patch-ah) = 9a17ea3c3f302acf4380c7868ab8c769d9acfc39
 SHA1 (patch-ai) = 44e704eefd63873900609d7c7186469b4b5214d1
 SHA1 (patch-aj) = 4d068d3aa551c11edcc2c7fdc189ebab98a69953
diff -r b6a078cf8d21 -r f0d3e9d48280 mail/balsa/patches/patch-ag
--- a/mail/balsa/patches/patch-ag       Sun Jul 13 12:38:40 2008 +0000
+++ b/mail/balsa/patches/patch-ag       Sun Jul 13 13:15:29 2008 +0000
@@ -1,6 +1,6 @@
-$NetBSD: patch-ag,v 1.1 2007/09/20 20:50:53 wiz Exp $
+$NetBSD: patch-ag,v 1.2 2008/07/13 13:15:29 tonnerre Exp $
 
---- libbalsa/imap/imap-handle.c.orig   2005-06-11 10:23:54.000000000 +0200
+--- libbalsa/imap/imap-handle.c.orig   2005-12-03 14:18:37.000000000 +0100
 +++ libbalsa/imap/imap-handle.c
 @@ -20,9 +20,13 @@
  
@@ -16,3 +16,12 @@
  #include <netdb.h>
  #include <glib.h>
  #include <glib-object.h>
+@@ -2992,7 +2996,7 @@ ir_fetch_seq(ImapMboxHandle *h, unsigned
+   if(seqno<1 || seqno > h->exists) return IMR_PROTOCOL;
+   if(sio_getc(h->sio) != '(') return IMR_PROTOCOL;
+   do {
+-    for(i=0; (c = sio_getc(h->sio)) != -1; i++) {
++    for(i=0; ((c = sio_getc(h->sio)) != -1) && (i < LONG_STRING - 1); i++) {
+       c = toupper(c);
+       if( !( (c >='A' && c<='Z') || (c >='0' && c<='9') || c == '.') ) break;
+       atom[i] = c;



Home | Main Index | Thread Index | Old Index