rpms/xsane/devel xsane-0.99-buffer.patch, NONE, 1.1 xsane.spec, 1.26, 1.27
fedora-cvs-commits at redhat.com
fedora-cvs-commits at redhat.com
Mon Jan 16 14:26:19 UTC 2006
Author: nphilipp
Update of /cvs/dist/rpms/xsane/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv20432
Modified Files:
xsane.spec
Added Files:
xsane-0.99-buffer.patch
Log Message:
fix buffer overflow
xsane-0.99-buffer.patch:
xsane-scan.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
--- NEW FILE xsane-0.99-buffer.patch ---
--- xsane-0.99/src/xsane-scan.c.buffer 2005-12-28 20:55:03.000000000 +0100
+++ xsane-0.99/src/xsane-scan.c 2006-01-16 15:23:38.000000000 +0100
@@ -1772,11 +1772,11 @@
char buf2[255];
if (preferences.adf_pages_max > 1)
{
- snprintf(buf2, sizeof(buf), "%s (%d/%d)", PROGRESS_SCANNING, xsane.adf_page_counter+1, preferences.adf_pages_max);
+ snprintf(buf2, sizeof(buf2), "%s (%d/%d)", PROGRESS_SCANNING, xsane.adf_page_counter+1, preferences.adf_pages_max);
}
else
{
- snprintf(buf2, sizeof(buf), "%s (%d)", PROGRESS_SCANNING, xsane.adf_page_counter+1);
+ snprintf(buf2, sizeof(buf2), "%s (%d)", PROGRESS_SCANNING, xsane.adf_page_counter+1);
}
xsane_progress_new(buf, buf2, (GtkSignalFunc) xsane_cancel, NULL);
}
Index: xsane.spec
===================================================================
RCS file: /cvs/dist/rpms/xsane/devel/xsane.spec,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- xsane.spec 13 Jan 2006 17:20:03 -0000 1.26
+++ xsane.spec 16 Jan 2006 14:26:12 -0000 1.27
@@ -7,6 +7,7 @@
Patch0: xsane-0.90-htmlview.patch
Patch1: xsane-medium-definitions.patch
Patch2: xsane-0.92_gimp2.0.patch
+Patch3: xsane-0.99-buffer.patch
License: GPL
URL: http://www.xsane.org/
Group: Applications/Multimedia
@@ -39,6 +40,7 @@
%patch0 -p1 -b .htmlview
%patch1 -p1 -b .medium-definitions
%patch2 -p1 -b .gimp2.0
+%patch3 -p1 -b .buffer
%build
%{expand:%%define optflags %{optflags} -DGIMP_ENABLE_COMPAT_CRUFT=1}
@@ -95,7 +97,10 @@
exit 0
%changelog
-* Fri Jan 13 2006 Nils Philippsen <nphilipp at redhat.com> 0.99-1
+* Mon Jan 16 2006 Nils Philippsen <nphilipp at redhat.com> 0.99-1
+- fix buffer overflow
+
+* Fri Jan 13 2006 Nils Philippsen <nphilipp at redhat.com>
- version 0.99
* Fri Dec 09 2005 Jesse Keating <jkeating at redhat.com>
More information about the fedora-cvs-commits
mailing list