rpms/yadex/F-12 yadex-1.7.0-obj-overflow.patch, NONE, 1.1 yadex.spec, 1.12, 1.13

Jon Ciesla limb at fedoraproject.org
Thu May 6 17:03:04 UTC 2010


Author: limb

Update of /cvs/pkgs/rpms/yadex/F-12
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv31246/F-12

Modified Files:
	yadex.spec 
Added Files:
	yadex-1.7.0-obj-overflow.patch 
Log Message:
Patch for overflow.


yadex-1.7.0-obj-overflow.patch:
 objects.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- NEW FILE yadex-1.7.0-obj-overflow.patch ---
--- src/objects.cc~	2003-03-28 06:37:32.000000000 -0600
+++ src/objects.cc	2010-05-06 11:42:36.824661556 -0500
@@ -543,7 +543,7 @@
 	 SideDefs[last].yoff = 0;
 	 strcpy (SideDefs[last].tex1, "-");
 	 strcpy (SideDefs[last].tex2, "-");
-	 strcpy (SideDefs[last].tex3, default_middle_texture);
+	 strncpy (SideDefs[last].tex3, default_middle_texture, strlen(SideDefs[last].tex3));
 	 SideDefs[last].sector = NumSectors - 1;
 	 }
       MadeMapChanges = 1;


Index: yadex.spec
===================================================================
RCS file: /cvs/pkgs/rpms/yadex/F-12/yadex.spec,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -p -r1.12 -r1.13
--- yadex.spec	27 Jul 2009 08:51:20 -0000	1.12
+++ yadex.spec	6 May 2010 17:03:04 -0000	1.13
@@ -1,6 +1,6 @@
 Name:           yadex
 Version:        1.7.0
-Release:        13%{?dist}
+Release:        14%{?dist}
 Summary:        Doom level editor
 
 Group:          Amusements/Graphics
@@ -16,6 +16,7 @@ Patch3:         yadex-1.7.0-destdir.patc
 Patch4:         yadex-1.7.0-datadir.patch
 Patch5:         yadex-1.7.0-gcc41.patch
 Patch6:         yadex-1.7.0.bareelif.patch
+Patch7:         yadex-1.7.0-obj-overflow.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  desktop-file-utils
@@ -45,6 +46,7 @@ tedious tasks easy.
 %patch4 -p1
 %patch5 -p1
 %patch6 -p1
+%patch7 -p0
 
 
 %build
@@ -101,6 +103,9 @@ fi
 
 
 %changelog
+* Thu May 06 2010 Jon Ciesla <limb at jcomserv.net> - 1.7.0-14
+- Patch for buffer overflow crash.
+
 * Mon Jul 27 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.7.0-13
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
 



More information about the scm-commits mailing list