]> git.ipfire.org Git - thirdparty/bind9.git/commit
Restore DbC checks in isc_refcount API
authorOndřej Surý <ondrej@sury.org>
Mon, 15 Jul 2019 08:20:16 +0000 (10:20 +0200)
committerOndřej Surý <ondrej@sury.org>
Tue, 14 Jan 2020 12:12:13 +0000 (13:12 +0100)
commit49976947abaaf693c3caf11f22c693777f6a3e4c
tree91001e3cc9e678cabcc9366c270f849e14ef1140
parenta910b0a83923544dd41dd850e9353a4bc7f76412
Restore DbC checks in isc_refcount API

The isc_refcount API that provides reference counting lost DbC checks for
overflows and underflows in the isc_refcount_{increment,decrement} functions.

The commit restores the overflow check in the isc_refcount_increment and
underflows check in the isc_refcount_decrement by checking for the previous
value to not be on the boundary.
lib/isc/include/isc/refcount.h