]> git.ipfire.org Git - thirdparty/bind9.git/commit
Move the count of items in the slabheader from raw data to struct
authorOndřej Surý <ondrej@isc.org>
Wed, 17 Dec 2025 08:53:38 +0000 (09:53 +0100)
committerOndřej Surý <ondrej@isc.org>
Wed, 18 Feb 2026 13:29:16 +0000 (14:29 +0100)
commit499cfc2f24e2a0778f13d884c272879eca670b1d
tree8b4c258605e488a4c633e74ea04aa5b6443d5f9e
parentaaf3454079529a53211006d4f434a5103f969f36
Move the count of items in the slabheader from raw data to struct

The count of items was stored in the raw data as first two bytes.
Instead of reading this from the raw header, move the number of the
items into the structure itself.

This needs the flexible member raw[] to be aligned on the size of the
pointer to prevent unaligned access to the start of the header from
rdataset_getheader() function that casts the raw[] to dns_slabheader_t.
lib/dns/include/dns/rdataslab.h
lib/dns/rdataslab.c