From: Niels Möller Date: Mon, 30 Sep 2019 17:53:50 +0000 (+0200) Subject: siv-test: Fix out-of-bounds read. X-Git-Tag: nettle_3.6rc1~83 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26d8ed9532e28e701843cf5decc8ec0914412211;p=thirdparty%2Fnettle.git siv-test: Fix out-of-bounds read. --- diff --git a/ChangeLog b/ChangeLog index 352ae508..2401ec73 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2019-09-30 Niels Möller + + * testsuite/siv-test.c (test_cipher_siv): Fix out-of-bounds read. + 2019-09-15 Niels Möller From Dmitry Eremin-Solenikov: diff --git a/testsuite/siv-test.c b/testsuite/siv-test.c index 627e3844..95b6dc5d 100644 --- a/testsuite/siv-test.c +++ b/testsuite/siv-test.c @@ -155,7 +155,7 @@ test_cipher_siv(const char *name, en_data[0] ^= 1; ret = siv_decrypt(ctx, nonce->length, nonce->data, authdata->length, authdata->data, - ciphertext->length, de_data, en_data); + cleartext->length, de_data, en_data); if (ret != 0) fprintf(stderr, "siv_decrypt_message failed to detect corrupted message\n"); /* Ensure we can detect corrupted adata. */ @@ -163,7 +163,7 @@ test_cipher_siv(const char *name, en_data[0] ^= 1; ret = siv_decrypt(ctx, nonce->length, nonce->data, authdata->length-1, authdata->data, - ciphertext->length, de_data, en_data); + cleartext->length, de_data, en_data); if (ret != 0) fprintf(stderr, "siv_decrypt_message failed to detect corrupted message\n"); }