Add patch to fix another possible format-overflow

This commit is contained in:
Björn Esser 2019-01-24 22:34:52 +01:00
parent 4125fd1e20
commit e25ef718db
No known key found for this signature in database
GPG Key ID: F52E98007594C21D
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,31 @@
From 2e4135284e7aaeac2218878041de31d8e724dc8f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= <besser82@fedoraproject.org>
Date: Thu, 24 Jan 2019 22:22:36 +0100
Subject: [PATCH] test-alg-hmac-sha1: Fix -Wformat-overflow.
---
test-alg-hmac-sha1.c | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/test-alg-hmac-sha1.c b/test-alg-hmac-sha1.c
index ffc6cb4..167f0b4 100644
--- a/test-alg-hmac-sha1.c
+++ b/test-alg-hmac-sha1.c
@@ -162,8 +162,15 @@ main (void)
if (strcmp (dbuf, test->expect) != 0)
{
n = 1;
- printf ("\nkey=%s, data=%s,\nresult=%s: %s\n",
- test->key, test->data, dbuf, test->expect);
+ printf ("\nkey=");
+ puts (test->key);
+ puts (", data=");
+ puts (test->data);
+ printf (",\nresult=");
+ puts (dbuf);
+ puts (": ");
+ puts (test->expect);
+ printf ("\n");
}
}
return n;

View File

@ -135,6 +135,7 @@ URL: https://github.com/besser82/%{name}
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
# Patch 0000 - 2999: Backported patches from upstream.
Patch0000: %{url}/commit/2e4135284e7aaeac2218878041de31d8e724dc8f.patch#/%{name}-4.4.3-test-alg-hmac-sha1_Fix_format-overflow.patch
# Patch 3000 - 5999: Backported patches from pull requests.
@ -401,6 +402,7 @@ done
* Thu Jan 24 2019 Björn Esser <besser82@fedoraproject.org> - 4.4.3-2
- Fix and simplify the conditionals for the compat package
- Add an option to replace unsafe functions in the compat lib with a stub
- Add patch to fix another possible format-overflow
* Thu Jan 24 2019 Björn Esser <besser82@fedoraproject.org> - 4.4.3-1
- New upstream release