]> git.pld-linux.org Git - packages/Firebird.git/commitdiff
- added btyacc-segv patch to fix off-by-one in included btyacc
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 29 Aug 2010 07:32:02 +0000 (07:32 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    Firebird-btyacc-segv.patch -> 1.1
    Firebird.spec -> 1.75

Firebird-btyacc-segv.patch [new file with mode: 0644]
Firebird.spec

diff --git a/Firebird-btyacc-segv.patch b/Firebird-btyacc-segv.patch
new file mode 100644 (file)
index 0000000..430373b
--- /dev/null
@@ -0,0 +1,11 @@
+--- Firebird-2.1.3.18185-0/extern/btyacc/main.c.orig   2006-04-29 02:29:46.000000000 +0200
++++ Firebird-2.1.3.18185-0/extern/btyacc/main.c        2010-08-29 08:33:44.738817429 +0200
+@@ -300,7 +300,7 @@
+               tmpdir = DEFAULT_TMPDIR;
+       len = strlen(tmpdir);
+-      i = len + 13;
++      i = len + 14; /* add len of temp_form + one for NUL */
+       if (len && tmpdir[len-1] != DIR_CHAR)
+               ++i;
index 1bd44ca99d8328dd5f01f2946db743a86a3f5014..681859bd68d43d7664acdd9feba834bf8e91303a 100644 (file)
@@ -48,6 +48,7 @@ Patch3:               %{name}-morearchs.patch
 Patch4:                %{name}-FHS.patch
 Patch5:                %{name}-64bit.patch
 Patch6:                %{name}-gcc-icu.patch
+Patch7:                %{name}-btyacc-segv.patch
 URL:           http://www.firebirdsql.org/
 BuildRequires: autoconf >= 2.56
 BuildRequires: automake
@@ -165,6 +166,7 @@ Obszerna dokumentacja do baz InterBase i Firebird.
 %patch4 -p1
 %patch5 -p1
 %patch6 -p0
+%patch7 -p1
 
 %{__sed} -i 's,@prefix@,%{_prefix},' builds/install/misc/fb_config.in
 
This page took 0.12641 seconds and 4 git commands to generate.