mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
Shrink decompression contexts
It's wasteful to use 20 bytes and a pointer indirection to represent two bits of information, so turn the struct into an enum. And change the names of the enumeration constants to make the intent more clear. This change introduces some inline functions into another header, which confuses `gcovr` when it is trying to collect code coverage statistics. So, in the CI job, copy more header files into a directory where `gcovr` looks for them.
This commit is contained in:
@@ -196,7 +196,7 @@ security area and must be paranoid about its input.
|
||||
fromwire_typename(dns_rdataclass_t class,
|
||||
dns_rdatatype_t type,
|
||||
isc_buffer_t *source,
|
||||
dns_decompress_t *dctx,
|
||||
dns_decompress_t dctx,
|
||||
bool downcase,
|
||||
isc_buffer_t *target);
|
||||
|
||||
@@ -204,14 +204,14 @@ security area and must be paranoid about its input.
|
||||
fromwire_classname_typename(dns_rdataclass_t class,
|
||||
dns_rdatatype_t type,
|
||||
isc_buffer_t *source,
|
||||
dns_decompress_t *dctx,
|
||||
dns_decompress_t dctx,
|
||||
bool downcase,
|
||||
isc_buffer_t *target);
|
||||
|
||||
`fromwire_classname_typename()` is required to set whether
|
||||
name compression is allowed, according to RFC 3597.
|
||||
|
||||
dns_decompress_setpermitted(dctx, true); /* or false */
|
||||
dctx = dns_decompress_setpermitted(dctx, true); /* or false */
|
||||
|
||||
|Parameter|Description |
|
||||
|---------|-----------------------|
|
||||
|
Reference in New Issue
Block a user