fix the patch so that it applies cleanly

This commit is contained in:
Petr Machata 2008-07-14 11:10:29 +00:00
parent 6eb232149f
commit 1d3d143045
2 changed files with 12 additions and 13 deletions

View File

@ -3,7 +3,7 @@
Summary: Berkeley Yacc, a parser generator Summary: Berkeley Yacc, a parser generator
Name: byacc Name: byacc
Version: 1.9.%{byaccdate} Version: 1.9.%{byaccdate}
Release: 3%{?dist} Release: 4%{?dist}
License: Public Domain License: Public Domain
Group: Development/Tools Group: Development/Tools
URL: http://invisible-island.net/byacc/byacc.html URL: http://invisible-island.net/byacc/byacc.html
@ -20,7 +20,7 @@ this package.
%prep %prep
%setup -q -n byacc-%{byaccdate} %setup -q -n byacc-%{byaccdate}
%patch1 -p3 %patch1 -p1
%build %build
%configure --disable-dependency-tracking %configure --disable-dependency-tracking
@ -49,7 +49,7 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man1/byacc.1* %{_mandir}/man1/byacc.1*
%changelog %changelog
* Mon Jul 14 2008 Petr Machata <pmachata@redhat.com> - 1.9.20070509-3 * Mon Jul 14 2008 Petr Machata <pmachata@redhat.com> - 1.9.20070509-4
- Add a patch that fixes ancient buffer overflow - Add a patch that fixes ancient buffer overflow
- Resolves: #454583 - Resolves: #454583

View File

@ -1,17 +1,15 @@
=================================================================== diff -urp byacc-20070509/skeleton.c byacc-20070509-pm/skeleton.c
RCS file: /usr/OpenBSD/cvs/src/usr.bin/yacc/skeleton.c,v --- byacc-20070509/skeleton.c 2005-05-05 01:39:36.000000000 +0200
retrieving revision 1.28 +++ byacc-20070509-pm/skeleton.c 2008-07-14 13:03:36.000000000 +0200
retrieving revision 1.29 @@ -21,6 +21,7 @@ char *banner[] =
diff -u -r1.28 -r1.29
--- src/usr.bin/yacc/skeleton.c 2007/09/03 21:14:58 1.28
+++ src/usr.bin/yacc/skeleton.c 2008/07/08 15:06:50 1.29
@@ -63,4 +63,5 @@
"#endif", "#endif",
"",
"#include <stdlib.h>", "#include <stdlib.h>",
+ "#include <string.h>", + "#include <string.h>",
"",
"#define YYBYACC 1", "#define YYBYACC 1",
"#define YYMAJOR 1", CONCAT1("#define YYMAJOR ", YYMAJOR),
@@ -346,7 +347,10 @@ @@ -275,7 +276,10 @@ char *body[] =
" YYPREFIX, yystate, yyn, yyrule[yyn]);", " YYPREFIX, yystate, yyn, yyrule[yyn]);",
"#endif", "#endif",
" yym = yylen[yyn];", " yym = yylen[yyn];",
@ -23,3 +21,4 @@ diff -u -r1.28 -r1.29
" switch (yyn)", " switch (yyn)",
" {", " {",
0 0
Only in byacc-20070509-pm/: skeleton.c~