From 5ec66f9788a1b511f6ba0f90ead2c9035c3e85fc Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Mon, 24 Dec 2018 12:11:43 -0500 Subject: Unpoison result of high_bits_free Previously we unpoisoned the input to high_bit but this is no longer required. But still the output should be unpoisoned. --- src/lib/math/bigint/bigint.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/lib') diff --git a/src/lib/math/bigint/bigint.cpp b/src/lib/math/bigint/bigint.cpp index 75c87e5b6..065c469b4 100644 --- a/src/lib/math/bigint/bigint.cpp +++ b/src/lib/math/bigint/bigint.cpp @@ -280,6 +280,7 @@ size_t BigInt::top_bits_free() const const word top_word = word_at(words - 1); const size_t bits_used = high_bit(top_word); + CT::unpoison(bits_used); return BOTAN_MP_WORD_BITS - bits_used; } -- cgit v1.2.3