diff options
author | Jack Lloyd <[email protected]> | 2018-12-24 12:11:43 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-12-24 12:11:43 -0500 |
commit | 5ec66f9788a1b511f6ba0f90ead2c9035c3e85fc (patch) | |
tree | 87d08380f7445077fe725d498b5e36f72b39aa8c /src/lib/math | |
parent | 58a434fb5b94451832b2ccb501567baae20af2e5 (diff) |
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.
Diffstat (limited to 'src/lib/math')
-rw-r--r-- | src/lib/math/bigint/bigint.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |