]> git.ipfire.org Git - thirdparty/bind9.git/commit
Use unsigned arithmetic when shifting by 24
authorMark Andrews <marka@isc.org>
Mon, 28 Feb 2022 02:43:20 +0000 (13:43 +1100)
committerMark Andrews <marka@isc.org>
Wed, 2 Mar 2022 00:06:53 +0000 (11:06 +1100)
commita247d282bf138eb2fd6474053ea4a648371eb9b0
tree53e84a49ec45e431a62879bd35a75ca0228fef74
parent98183ef28bf6a92ebaaa85396772b4afb42e895d
Use unsigned arithmetic when shifting by 24

By default C promotes short unsigned values to signed int which
leads to undefined behaviour when the value is shifted by too much.
Force unsigned arithmetic to be perform by explicitly casting to a
unsigned type.

(cherry picked from commit b8b99603f117825f409cb2d49bc90ef188749227)
lib/dns/journal.c
lib/dns/rbtdb.c
lib/dns/soa.c