- Fixing format-security flaws
This commit is contained in:
parent
c49ab916be
commit
a01f91d700
21
sane-backends-1.0.24-format-security2.patch
Normal file
21
sane-backends-1.0.24-format-security2.patch
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
diff -Naur sane-backends-1.0.24.orig/frontend/scanimage.c sane-backends-1.0.24/frontend/scanimage.c
|
||||||
|
--- sane-backends-1.0.24.orig/frontend/scanimage.c 2013-08-25 23:22:58.000000000 +0200
|
||||||
|
+++ sane-backends-1.0.24/frontend/scanimage.c 2014-04-14 21:04:13.512000000 +0200
|
||||||
|
@@ -1894,7 +1894,7 @@
|
||||||
|
printf (start, int_arg);
|
||||||
|
break;
|
||||||
|
case 0:
|
||||||
|
- printf (start);
|
||||||
|
+ printf ("%s", start);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
*percent = cc;
|
||||||
|
@@ -1908,7 +1908,7 @@
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (*start)
|
||||||
|
- printf (start);
|
||||||
|
+ printf ("%s", start);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (i == 0 && ch != 'f')
|
@ -37,7 +37,7 @@
|
|||||||
Summary: Scanner access software
|
Summary: Scanner access software
|
||||||
Name: sane-backends
|
Name: sane-backends
|
||||||
Version: 1.0.24
|
Version: 1.0.24
|
||||||
Release: 8%{?dist}
|
Release: 9%{?dist}
|
||||||
# lib/ is LGPLv2+, backends are GPLv2+ with exceptions
|
# lib/ is LGPLv2+, backends are GPLv2+ with exceptions
|
||||||
# Tools are GPLv2+, docs are public domain
|
# Tools are GPLv2+, docs are public domain
|
||||||
# see LICENSE for details
|
# see LICENSE for details
|
||||||
@ -77,6 +77,7 @@ Patch6: sane-backends-1.0.24-static-code-check.patch
|
|||||||
Patch7: sane-backends-1.0.24-scsi-permissions.patch
|
Patch7: sane-backends-1.0.24-scsi-permissions.patch
|
||||||
# Upstream commit 8082a42ec4f3b3cf2cffc30a45dda5fc41d55576
|
# Upstream commit 8082a42ec4f3b3cf2cffc30a45dda5fc41d55576
|
||||||
Patch8: sane-backends-1.0.24-format-security.patch
|
Patch8: sane-backends-1.0.24-format-security.patch
|
||||||
|
Patch9: sane-backends-1.0.24-format-security2.patch
|
||||||
|
|
||||||
URL: http://www.sane-project.org
|
URL: http://www.sane-project.org
|
||||||
|
|
||||||
@ -193,6 +194,7 @@ This package contains backend drivers to access digital cameras through SANE.
|
|||||||
%patch5 -p1 -b .pixma_bjnp-crash
|
%patch5 -p1 -b .pixma_bjnp-crash
|
||||||
%patch6 -p1 -b .static-code-check
|
%patch6 -p1 -b .static-code-check
|
||||||
%patch7 -p1 -b .scsi-permissions
|
%patch7 -p1 -b .scsi-permissions
|
||||||
|
%patch9 -p1 -b .format-security
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="%optflags -fno-strict-aliasing"
|
CFLAGS="%optflags -fno-strict-aliasing"
|
||||||
@ -314,6 +316,9 @@ udevadm hwdb --update >/dev/null 2>&1 || :
|
|||||||
%{_libdir}/sane/*gphoto2.so*
|
%{_libdir}/sane/*gphoto2.so*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Apr 14 2014 Jaromir Capik <jcapik@redhat.com> - 1.0.24-9
|
||||||
|
- Fixing format-security flaws
|
||||||
|
|
||||||
* Wed Dec 04 2013 Nils Philippsen <nils@redhat.com> - 1.0.24-8
|
* Wed Dec 04 2013 Nils Philippsen <nils@redhat.com> - 1.0.24-8
|
||||||
- use string literals as format strings (#1037316)
|
- use string literals as format strings (#1037316)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user