rpms/flex/devel flex-2.5.35-hardening.patch, NONE, 1.1 flex.spec, 1.56, 1.57
Petr Machata
pmachata at fedoraproject.org
Mon Apr 20 11:26:42 UTC 2009
- Previous message (by thread): rpms/python-tempita/F-9 .cvsignore, 1.3, 1.4 python-tempita.spec, 1.4, 1.5 sources, 1.3, 1.4 python-tempita-0.3-fix-tests.patch, 1.1, NONE
- Next message (by thread): rpms/ntp/devel ntp-4.2.4p6-ntpqsprintf.patch, NONE, 1.1 ntp-4.2.4p5-sleep.patch, 1.1, 1.2 ntp.dhclient, 1.1, 1.2 ntp.spec, 1.87, 1.88 ntpd.init, 1.27, 1.28
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: pmachata
Update of /cvs/pkgs/rpms/flex/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv14401
Modified Files:
flex.spec
Added Files:
flex-2.5.35-hardening.patch
Log Message:
* Mon Apr 20 2009 Debarshi Ray <rishi at fedoraproject.org> - 2.5.35-4
- Resolves: #496548.
* Mon Apr 20 2009 Petr Machata <pmachata at redhat.com> - 2.5.35-4
- Get rid of warning caused by ignoring return value of fwrite() in
ECHO macro. Debian patch.
- Resolves: #484961
flex-2.5.35-hardening.patch:
--- NEW FILE flex-2.5.35-hardening.patch ---
diff -u flex-2.5.35/scan.c flex-2.5.35/scan.c
--- flex-2.5.35/scan.c
+++ flex-2.5.35/scan.c
@@ -2096,7 +2096,7 @@
/* This used to be an fputs(), but since the string might contain NUL's,
* we now use fwrite().
*/
-#define ECHO fwrite( yytext, yyleng, 1, yyout )
+#define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
#endif
/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
diff -u flex-2.5.35/flex.skl flex-2.5.35/flex.skl
--- flex-2.5.35/flex.skl
+++ flex-2.5.35/flex.skl
@@ -1075,7 +1075,7 @@
/* This used to be an fputs(), but since the string might contain NUL's,
* we now use fwrite().
*/
-#define ECHO fwrite( yytext, yyleng, 1, yyout )
+#define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
%endif
%if-c++-only C++ definition
#define ECHO LexerOutput( yytext, yyleng )
diff -u flex-2.5.35/skel.c flex-2.5.35/skel.c
--- flex-2.5.35/skel.c
+++ flex-2.5.35/skel.c
@@ -1142,7 +1142,7 @@
"/* This used to be an fputs(), but since the string might contain NUL's,",
" * we now use fwrite().",
" */",
- "#define ECHO fwrite( yytext, yyleng, 1, yyout )",
+ "#define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)",
"%endif",
"%if-c++-only C++ definition",
"#define ECHO LexerOutput( yytext, yyleng )",
Index: flex.spec
===================================================================
RCS file: /cvs/pkgs/rpms/flex/devel/flex.spec,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -r1.56 -r1.57
--- flex.spec 24 Feb 2009 17:28:55 -0000 1.56
+++ flex.spec 20 Apr 2009 11:26:12 -0000 1.57
@@ -1,12 +1,14 @@
Summary: A tool for creating scanners (text pattern recognizers)
Name: flex
Version: 2.5.35
-Release: 3%{?dist}
+Release: 4%{?dist}
License: BSD
Group: Development/Tools
URL: http://flex.sourceforge.net/
Source: flex-%{version}.tar.bz2
Patch0: flex-2.5.35-sign.patch
+Patch1: flex-2.5.35-hardening.patch
+Patch2: flex-2.5.35-gcc44.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: m4
BuildRequires: gettext bison m4
@@ -30,6 +32,8 @@
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
+%patch2 -p1
%build
%configure --disable-dependency-tracking CFLAGS="-fPIC $RPM_OPT_FLAGS"
@@ -76,6 +80,14 @@
%{_infodir}/flex.info*
%changelog
+* Mon Apr 20 2009 Debarshi Ray <rishi at fedoraproject.org> - 2.5.35-4
+- Resolves: #496548.
+
+* Mon Apr 20 2009 Petr Machata <pmachata at redhat.com> - 2.5.35-4
+- Get rid of warning caused by ignoring return value of fwrite() in
+ ECHO macro. Debian patch.
+- Resolves: #484961
+
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.5.35-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
- Previous message (by thread): rpms/python-tempita/F-9 .cvsignore, 1.3, 1.4 python-tempita.spec, 1.4, 1.5 sources, 1.3, 1.4 python-tempita-0.3-fix-tests.patch, 1.1, NONE
- Next message (by thread): rpms/ntp/devel ntp-4.2.4p6-ntpqsprintf.patch, NONE, 1.1 ntp-4.2.4p5-sleep.patch, 1.1, 1.2 ntp.dhclient, 1.1, 1.2 ntp.spec, 1.87, 1.88 ntpd.init, 1.27, 1.28
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list