From 26d8ed9532e28e701843cf5decc8ec0914412211 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niels=20M=C3=B6ller?= Date: Mon, 30 Sep 2019 19:53:50 +0200 Subject: [PATCH] siv-test: Fix out-of-bounds read. --- ChangeLog | 4 ++++ testsuite/siv-test.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) 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"); } -- 2.47.2