]> 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 17:40:09 +0000 (17:40 +0000)
commitae54bd80764300982045f5611adcfce13262b2f4
tree89d1ad6833456ed87a6400e867ad370463afa829
parentf34be9f549841b119b217f7c782ca7ffd4ee34a3
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.

(cherry picked from commit 86673ee67aacf677c96f8272e4a0b9fa65e06310)
lib/isc/rwlock.c