]> git.ipfire.org Git - thirdparty/bind9.git/commit
Only copy the name data after we know its actual length
authorMark Andrews <marka@isc.org>
Mon, 15 Jan 2024 00:47:13 +0000 (11:47 +1100)
committerOndřej Surý <ondrej@isc.org>
Wed, 17 Apr 2024 15:14:34 +0000 (17:14 +0200)
commit4ef755ffb0555705e59452a9fb6c9ccecd039d12
treeb575cebd5a117eb82e249b3868744cebbabdd5f0
parent90b0038ea02f49bd1cf542fc807fbbe9ec86fe1b
Only copy the name data after we know its actual length

This prevents TSAN errors with the ncache code where the trust byte
access needs to be protected by a lock.  The old code copied the
entire region before determining where the name ended.  We now
determine where the name ends then copy just that data and in doing
so avoid reading the trust byte.
lib/dns/name.c