From: | "Torsten Veller (tove)" <tove@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in mail-client/alpine/files: 2.00-lpam.patch CVE-2008-5514.patch |
Date: | Fri, 24 Apr 2009 07:55:02 |
Message-Id: | E1LxGFP-0001xa-6p@stork.gentoo.org |
1 | tove 09/04/24 07:54:59 |
2 | |
3 | Added: 2.00-lpam.patch CVE-2008-5514.patch |
4 | Log: |
5 | Initial commit. Thanks to Sascha Lucas et al. in bug #176904 |
6 | (Portage version: 2.2_rc31/cvs/Linux i686) |
7 | |
8 | Revision Changes Path |
9 | 1.1 mail-client/alpine/files/2.00-lpam.patch |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/alpine/files/2.00-lpam.patch?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/alpine/files/2.00-lpam.patch?rev=1.1&content-type=text/plain |
13 | |
14 | Index: 2.00-lpam.patch |
15 | =================================================================== |
16 | --- alpine-2.00.orig/alpine/Makefile.in |
17 | +++ alpine-2.00/alpine/Makefile.in |
18 | @@ -169,7 +169,7 @@ |
19 | LIBICONV = @LIBICONV@ |
20 | LIBINTL = @LIBINTL@ |
21 | LIBOBJS = @LIBOBJS@ |
22 | -LIBS = @LIBS@ |
23 | +LIBS = @LIBS@ -lpam |
24 | LIBTOOL = @LIBTOOL@ |
25 | LN = @LN@ |
26 | LN_S = @LN_S@ |
27 | LTLIBICONV = @LTLIBICONV@ |
28 | LTLIBINTL = @LTLIBINTL@ |
29 | |
30 | |
31 | |
32 | 1.1 mail-client/alpine/files/CVE-2008-5514.patch |
33 | |
34 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/alpine/files/CVE-2008-5514.patch?rev=1.1&view=markup |
35 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/alpine/files/CVE-2008-5514.patch?rev=1.1&content-type=text/plain |
36 | |
37 | Index: CVE-2008-5514.patch |
38 | =================================================================== |
39 | --- alpine-2.00/imap/src/c-client/rfc822.c |
40 | +++ alpine-2.00/imap/src/c-client/rfc822.c |
41 | @@ -1351,6 +1351,7 @@ |
42 | |
43 | static long rfc822_output_char (RFC822BUFFER *buf,int c) |
44 | { |
45 | + if ((buf->cur == buf->end) && !rfc822_output_flush (buf)) return NIL; |
46 | *buf->cur++ = c; /* add character, soutr buffer if full */ |
47 | return (buf->cur == buf->end) ? rfc822_output_flush (buf) : LONGT; |
48 | } |
49 | @@ -1374,7 +1375,8 @@ |
50 | len -= i; |
51 | } |
52 | /* soutr buffer now if full */ |
53 | - if (len && !rfc822_output_flush (buf)) return NIL; |
54 | + if ((len || (buf->cur == buf->end)) && !rfc822_output_flush (buf)) |
55 | + return NIL; |
56 | } |
57 | return LONGT; |
58 | } |