network buffer size limits are enforced incorrectly and always overwrite tcp-receive-buffer
Summary
When enforcing limits for out of range values on configuration options tcp-send-buffer, udp-receive-buffer, udp-send-buffer, the enforced value always overwrite tcp-receive-buffer instead of the problematic value.
BIND version affected
v9.17.13 up to current main (33394f11)
Steps to reproduce
Configure one of tcp-send-buffer, udp-receive-buffer, udp-send-buffer with an out of range value (< 4096, > 2^32).
What is the current bug behavior?
- Limit >= 4096, <= 2^32 is not enforced on these three options.
- Allowed minimal/maximal value overwrites
tcp-receive-buffer
value!
What is the expected correct behavior?
Well, limits are enforced properly.
Relevant configuration files
options {
tcp-send-buffer <an out of range value>;
udp-receive-buffer <an out of range value>;
udp-send-buffer <an out of range value>;
};