From bcc40a806297bbc5ec79ddb8d6d54883d7531485 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Tue, 22 Dec 2015 23:45:52 +0100 Subject: [PATCH] - fix format string error --- cryptlib.spec | 2 ++ format-security.patch | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100644 format-security.patch 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 -- 2.44.0