rpms/xv/F-18 xv-3.10a-namemax.patch,NONE,1.1 xv.spec,1.10,1.11

L. Gabriel Somlo somlo at rpmfusion.org
Mon Mar 4 23:26:26 CET 2013


Author: somlo

Update of /cvs/nonfree/rpms/xv/F-18
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv16138

Modified Files:
	xv.spec 
Added Files:
	xv-3.10a-namemax.patch 
Log Message:
* Mon Mar  4 2013 Gabriel Somlo <somlo at cmu.edu> 3.10a.jumbopatch.20070520-16
- fix buffer overflow caused by filenames longer than the window title limit


xv-3.10a-namemax.patch:
 xvtext.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- NEW FILE xv-3.10a-namemax.patch ---
diff -NarU5 xv-3.10a/xvtext.c xv-3.10a.namemax/xvtext.c
--- xv-3.10a/xvtext.c	2013-03-04 16:34:40.000000000 -0500
+++ xv-3.10a.namemax/xvtext.c	2013-03-04 16:50:39.217371154 -0500
@@ -51,11 +51,11 @@
 #  define TV_MSCODE   7
 
 #  define TV_J_NBUTTS 8
 #endif
 
-#define TITLELEN 128
+#define TITLELEN NAME_MAX
 
 #ifdef TV_MULTILINGUAL
 struct coding_spec {
     struct coding_system coding_system;
     char *(*converter)PARM((char *, int, int *));


Index: xv.spec
===================================================================
RCS file: /cvs/nonfree/rpms/xv/F-18/xv.spec,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- xv.spec	6 Aug 2012 15:01:35 -0000	1.10
+++ xv.spec	4 Mar 2013 22:26:25 -0000	1.11
@@ -3,7 +3,7 @@
 
 Name: xv
 Version: %{vprog}.jumbopatch.%{vjumbo}
-Release: 15%{?dist}
+Release: 16%{?dist}
 Summary: Interactive image display program for X
 Summary(de.UTF-8): X-basierender Bild-Viewer für praktische sämtliche Grafiken
 Summary(es.UTF-8): Visualizador de imágenes para X para cuasi todos los formatos de imágenes
@@ -29,6 +29,7 @@
 Patch3: xv-FLmask.v2.1.patch
 Patch4: xv-wait.patch
 Patch5: xv-3.10a-libpng15.patch
+Patch6: xv-3.10a-namemax.patch
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires: libtiff-devel libpng-devel jasper-devel desktop-file-utils
 %if "%{?rhel}" != "4"
@@ -142,6 +143,9 @@
 # libpng 1.5 compatibility
 %patch5 -p0
 
+# NAME_MAX buffer overflow fix
+%patch6 -p1
+
 # Include permission to distribute
 %{__install} -m 0644 -p %{SOURCE2} .
 
@@ -277,6 +281,9 @@
 %doc %{_docdir}/%{name}-%{vprog}/manuals/
 
 %changelog
+* Mon Mar  4 2013 Gabriel Somlo <somlo at cmu.edu> 3.10a.jumbopatch.20070520-16
+- fix buffer overflow caused by filenames longer than the window title limit
+
 * Mon Aug  6 2012 Paul Howarth <paul at city-fan.org> 3.10a.jumbopatch.20070520-15
 - rebuild for libtiff.so.5 (libtiff 4.0) in Rawhide
 


More information about the rpmfusion-commits mailing list