libnettle/off-by-one-test-suite.patch
Stephan Kulow 3753db93f3 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
2015-04-25 14:47:09 +00:00

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)
{