- Fix integer overflow in infra-cache-max-rtt calculation.

Thanks to Qifan Zhang, Palo Alto Networks, for the report.
This commit is contained in:
W.C.A. Wijngaards
2026-06-15 16:22:50 +02:00
parent 2f8aa8a43a
commit 98e95d80e6
2 changed files with 8 additions and 1 deletions
+2
View File
@@ -25,6 +25,8 @@
lookups are in progress, for a primary name. Also after the
change, it no longer picks up the old results. Thanks to
Qifan Zhang, Palo Alto Networks, for the report.
- Fix integer overflow in infra-cache-max-rtt calculation.
Thanks to Qifan Zhang, Palo Alto Networks, for the report.
12 June 2026: Wouter
- Fix that for auth-zone and rpz zones the allow-notify
+6 -1
View File
@@ -46,6 +46,7 @@
#ifdef HAVE_TIME_H
#include <time.h>
#endif
#include <limits.h>
#include "util/log.h"
#include "util/configyyrename.h"
#include "util/config_file.h"
@@ -533,7 +534,11 @@ probe_maxrto(int useful_server_top_timeout) {
int config_apply_max_rtt(int max_rtt)
{
USEFUL_SERVER_TOP_TIMEOUT = max_rtt;
BLACKLIST_PENALTY = max_rtt*4;
BLACKLIST_PENALTY =
#ifdef INT_MAX
(max_rtt > INT_MAX/4) ? INT_MAX :
#endif
max_rtt*4;
PROBE_MAXRTO = probe_maxrto(max_rtt);
return max_rtt;
}