Gentoo Archives: gentoo-commits

From: "Javier Villavicencio (the_paya)" <the_paya@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-freebsd/freebsd-lib/files: freebsd-lib-7.0-CVE-2008-1391.patch freebsd-lib-7.1-types.h-fix.patch
Date: Thu, 22 Jan 2009 21:02:33
Message-Id: E1LQ6h4-0007fd-SJ@stork.gentoo.org
1 the_paya 09/01/22 21:02:30
2
3 Added: freebsd-lib-7.0-CVE-2008-1391.patch
4 freebsd-lib-7.1-types.h-fix.patch
5 Log:
6 Import of the 7.1 ebuilds from gentoo-bsd overlay.
7 (Portage version: 2.2_rc23/cvs/FreeBSD i386)
8
9 Revision Changes Path
10 1.1 sys-freebsd/freebsd-lib/files/freebsd-lib-7.0-CVE-2008-1391.patch
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-freebsd/freebsd-lib/files/freebsd-lib-7.0-CVE-2008-1391.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-freebsd/freebsd-lib/files/freebsd-lib-7.0-CVE-2008-1391.patch?rev=1.1&content-type=text/plain
14
15 Index: freebsd-lib-7.0-CVE-2008-1391.patch
16 ===================================================================
17 --- lib/libc/stdlib/strfmon.c 2008/04/22 13:23:34
18 +++ lib/libc/stdlib/strfmon.c 2008/04/24 07:49:00
19 @@ -65,6 +65,8 @@
20 #define GET_NUMBER(VAR) do { \
21 VAR = 0; \
22 while (isdigit((unsigned char)*fmt)) { \
23 + if (VAR > INT_MAX / 10) \
24 + goto e2big_error; \
25 VAR *= 10; \
26 VAR += *fmt - '0'; \
27 if (VAR < 0) \
28
29
30
31 1.1 sys-freebsd/freebsd-lib/files/freebsd-lib-7.1-types.h-fix.patch
32
33 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-freebsd/freebsd-lib/files/freebsd-lib-7.1-types.h-fix.patch?rev=1.1&view=markup
34 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-freebsd/freebsd-lib/files/freebsd-lib-7.1-types.h-fix.patch?rev=1.1&content-type=text/plain
35
36 Index: freebsd-lib-7.1-types.h-fix.patch
37 ===================================================================
38 Fixes a compile error if XOPEN_SOURCE 600 is defined.
39
40 See: http://www.mailinglistarchive.com/freebsd-current@×××××××.org/msg15011.html
41
42 --- sys/sys/types.h.orig
43 +++ sys/sys/types.h
44 @@ -46,7 +46,7 @@
45
46 #include <sys/_pthreadtypes.h>
47
48 -#if __BSD_VISIBLE
49 +#ifndef _POSIX_SOURCE
50 typedef unsigned char u_char;
51 typedef unsigned short u_short;
52 typedef unsigned int u_int;