[packages/cryptlib] - fix format string error

baggins baggins at pld-linux.org
Tue Dec 22 23:46:09 CET 2015


commit bcc40a806297bbc5ec79ddb8d6d54883d7531485
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Tue Dec 22 23:45:52 2015 +0100

    - fix format string error

 cryptlib.spec         |  2 ++
 format-security.patch | 11 +++++++++++
 2 files changed, 13 insertions(+)
---
diff --git a/cryptlib.spec b/cryptlib.spec
index 53fa8d9..7e1bc52 100644
--- a/cryptlib.spec
+++ b/cryptlib.spec
@@ -15,6 +15,7 @@ Patch0:		%{name}-rdtsc.patch
 Patch1:		%{name}-soname.patch
 Patch2:		optflags.patch
 Patch3:		x32.patch
+Patch4:		format-security.patch
 URL:		http://www.cs.auckland.ac.nz/~pgut001/cryptlib/
 BuildRequires:	rpmbuild(macros) >= 1.710
 BuildRequires:	python-devel >= 1:2.5
@@ -89,6 +90,7 @@ unzip -q -L -a %{SOURCE0}
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
+%patch4 -p1
 
 %build
 %{__make} \
diff --git a/format-security.patch b/format-security.patch
new file mode 100644
index 0000000..711ccd1
--- /dev/null
+++ b/format-security.patch
@@ -0,0 +1,11 @@
+--- cryptlib-3.3.3/session/cmp_rdmsg.c~	2009-07-10 23:39:22.000000000 +0200
++++ cryptlib-3.3.3/session/cmp_rdmsg.c	2015-12-22 23:43:53.932096178 +0100
+@@ -276,7 +276,7 @@
+ 				  "locus %d", errorType, errorLocus ) );
+ 		}
+ 	retExt( errorStatus,
+-			( errorStatus, SESSION_ERRINFO, 
++			( errorStatus, SESSION_ERRINFO, "%s",
+ 			  extErrorInfoPtr->errorString ) );
+ 	}
+ #else
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/cryptlib.git/commitdiff/bcc40a806297bbc5ec79ddb8d6d54883d7531485



More information about the pld-cvs-commit mailing list