]> git.ipfire.org Git - thirdparty/bind9.git/commit
Unify the int32_t vs int_fast32_t when working with atomic types
authorOndřej Surý <ondrej@isc.org>
Mon, 14 Apr 2025 16:56:54 +0000 (18:56 +0200)
committerOndřej Surý <ondrej@isc.org>
Mon, 14 Apr 2025 16:56:54 +0000 (18:56 +0200)
commit86673ee67aacf677c96f8272e4a0b9fa65e06310
treef6dab07c862a91bcf8ae7d0a6403dfd656ff539d
parent74e28cc4be7c867c630634f25e6244ac38906537
Unify the int32_t vs int_fast32_t when working with atomic types

There's a mismatch between the atomic and non-atomic types that could
potentialy lead to a rwlock deadlock (after two billion 2^32) writes.
Use int_fast32_t when loading the atomic_int_fast32_t types in the
isc_rwlock unit.
lib/isc/rwlock.c