bison/bison.patch

changeset 763
d07f45deec02
parent 22
0d4f475bfc81
equal deleted inserted replaced
0:54a1fab66b31 1:eb128ea4a7cb
1 Index: lib/timevar.c 1 Index: lib/timevar.c
2 --- lib/timevar.c.orig 2008-07-14 10:56:12 +0200 2 --- lib/timevar.c.orig 2010-07-26 01:33:12.000000000 +0200
3 +++ lib/timevar.c 2008-11-03 19:16:04 +0100 3 +++ lib/timevar.c 2010-08-06 15:13:37.000000000 +0200
4 @@ -42,6 +42,7 @@ 4 @@ -45,6 +45,7 @@
5 # include <sys/times.h> 5 # include <sys/times.h>
6 #endif 6 #endif
7 #ifdef HAVE_SYS_RESOURCE_H 7 #ifdef HAVE_SYS_RESOURCE_H
8 +#include <sys/time.h> 8 +#include <sys/time.h>
9 #include <sys/resource.h> 9 #include <sys/resource.h>
13 13
14 Security Fix: 14 Security Fix:
15 http://undeadly.org/cgi?action=article&sid=20080708155228&mode=flat&count=13 15 http://undeadly.org/cgi?action=article&sid=20080708155228&mode=flat&count=13
16 16
17 Index: data/yacc.c 17 Index: data/yacc.c
18 --- data/yacc.c.orig 2008-11-02 19:09:10 +0100 18 --- data/yacc.c.orig 2010-08-06 02:37:58.000000000 +0200
19 +++ data/yacc.c 2008-11-03 19:16:04 +0100 19 +++ data/yacc.c 2010-08-06 15:13:37.000000000 +0200
20 @@ -1444,7 +1444,10 @@ 20 @@ -1453,7 +1453,10 @@
21 users should not rely upon it. Assigning to YYVAL 21 users should not rely upon it. Assigning to YYVAL
22 unconditionally makes the parser a bit smaller, and it avoids a 22 unconditionally makes the parser a bit smaller, and it avoids a
23 GCC warning that YYVAL may be used uninitialized. */ 23 GCC warning that YYVAL may be used uninitialized. */
24 +if (yylen) 24 +if (yylen)
25 yyval = yyvsp[1-yylen]; 25 yyval = yyvsp[1-yylen];
27 + memset(&yyval, 0, sizeof(yyval)); 27 + memset(&yyval, 0, sizeof(yyval));
28 28
29 ]b4_locations_if( 29 ]b4_locations_if(
30 [[ /* Default location. */ 30 [[ /* Default location. */
31 31
32 ----------------------------------------------------------------------------
33
34 Fix for FreeBSD 8 but without breaking Mac OS X 10.6
35
36 Index: lib/spawn.in.h
37 --- lib/spawn.in.h.orig 2010-04-11 20:31:37.000000000 +0200
38 +++ lib/spawn.in.h 2010-08-06 15:57:36.000000000 +0200
39 @@ -121,6 +121,7 @@
40 # define POSIX_SPAWN_SETSCHEDULER 0
41 # endif
42 #else
43 +#if !@HAVE_POSIX_SPAWN@ || defined(__APPLE__)
44 # if @REPLACE_POSIX_SPAWN@
45 /* Use the values from the system, for better compatibility. */
46 /* But this implementation does not support AIX extensions. */
47 @@ -134,6 +135,7 @@
48 # define POSIX_SPAWN_SETSCHEDULER 0x20
49 # endif
50 #endif
51 +#endif
52 /* A GNU extension. Use the next free bit position. */
53 #define POSIX_SPAWN_USEVFORK \
54 ((POSIX_SPAWN_RESETIDS | (POSIX_SPAWN_RESETIDS - 1) \

mercurial