3753db93f3
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
14 lines
400 B
Diff
14 lines
400 B
Diff
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)
|
|
{
|