]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix map offsets in the "masterformat" system test
authorMichał Kępień <michal@isc.org>
Thu, 4 Jan 2024 12:39:27 +0000 (13:39 +0100)
committerMichał Kępień <michal@isc.org>
Fri, 5 Jan 2024 11:40:50 +0000 (12:40 +0100)
commit1237d73cd1120b146ee699bbae7b2fe837cf2f98
tree49d10bbe0e867f9b054969b5a62870cf357c8574
parentf66150204c2e94aab2cda97b40d0f02bcd057c92
Fix map offsets in the "masterformat" system test

The "masterformat" system test attempts to check named-checkzone
behavior when it is fed corrupt map-format zone files.  However, despite
the RBTDB and RBT structures having evolved over the years, the offsets
at which a valid map-format zone file is malformed by the "masterformat"
test have not been updated accordingly, causing the relevant checks to
introduce a different type of corruption than they were originally meant
to cause:

  - the "bad node header" check originally mangled the 'type' member of
    the rdatasetheader_t structure for cname.example.nil,

  - the "bad node data" check originally mangled the 'serial' and
    'rdh_ttl' members of the rdatasetheader_t structure for
    aaaa.example.nil.

Update the offsets at which the map-format zone file is malformed at by
the "masterformat" system test so that the relevant checks fulfill their
original purpose again.
bin/tests/system/masterformat/tests.sh