From: Andrei Pavel Date: Mon, 2 Oct 2023 11:34:35 +0000 (+0300) Subject: [#3068] switch bigints to the checked variant X-Git-Tag: Kea-2.5.3~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02ca340f4242807c185acb55804379dc5b3e886b;p=thirdparty%2Fkea.git [#3068] switch bigints to the checked variant Kea needs to gain knowledge of big integers overflowing and underflowing in various places in code such as when deserializing integers where it's important to know if the recipient can hold the value, and if the value is accurately represented. --- diff --git a/src/lib/util/bigints.h b/src/lib/util/bigints.h index be76b1d482..065a2bc831 100644 --- a/src/lib/util/bigints.h +++ b/src/lib/util/bigints.h @@ -16,9 +16,9 @@ namespace isc { namespace util { -using int128_t = boost::multiprecision::int128_t; +using int128_t = boost::multiprecision::checked_int128_t; -using uint128_t = boost::multiprecision::uint128_t; +using uint128_t = boost::multiprecision::checked_uint128_t; } // namespace util } // namespace isc