Accepting request 298783 from devel:libraries:c_c++
added patch: off-by-one-test-suite.patch - Address Sanitizer, found a off-by-one error in the test suite (bnc#928328) OBS-URL: https://build.opensuse.org/request/show/298783 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libnettle?expand=0&rev=20
This commit is contained in:
parent
a465d7022c
commit
3753db93f3
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 23 09:31:06 UTC 2015 - vpereira@suse.com
|
||||
|
||||
added patch: off-by-one-test-suite.patch
|
||||
|
||||
- Address Sanitizer, found a off-by-one error in the test suite (bnc#928328)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Apr 11 19:43:21 UTC 2015 - astieger@suse.com
|
||||
|
||||
|
@ -29,6 +29,7 @@ Source0: https://ftp.gnu.org/gnu/nettle/nettle-%{version}.tar.gz
|
||||
Source1: https://ftp.gnu.org/gnu/nettle/nettle-%{version}.tar.gz.sig
|
||||
Source2: %{name}.keyring
|
||||
Source3: baselibs.conf
|
||||
Patch0: off-by-one-test-suite.patch
|
||||
BuildRequires: gmp-devel
|
||||
BuildRequires: makeinfo
|
||||
BuildRequires: pkgconfig
|
||||
@ -91,6 +92,7 @@ operations using the nettle library.
|
||||
|
||||
%prep
|
||||
%setup -q -n nettle-%{version}
|
||||
%patch0
|
||||
|
||||
%build
|
||||
%configure \
|
||||
|
13
off-by-one-test-suite.patch
Normal file
13
off-by-one-test-suite.patch
Normal file
@ -0,0 +1,13 @@
|
||||
Index: testsuite/des-compat-test.c
|
||||
===================================================================
|
||||
--- testsuite/des-compat-test.c.orig
|
||||
+++ testsuite/des-compat-test.c
|
||||
@@ -346,7 +346,7 @@ test_main(void)
|
||||
|
||||
#ifndef LIBDES_LIT
|
||||
if (verbose) printf("Doing ede ecb\n");
|
||||
- for (i=0; i<(NUM_TESTS-1); i++)
|
||||
+ for (i=0; i<(NUM_TESTS-2); i++)
|
||||
{
|
||||
if ((j=des_key_sched(&key_data[i], ks)) != 0)
|
||||
{
|
Loading…
Reference in New Issue
Block a user