diff --git a/bin/dig/host.c b/bin/dig/host.c index ccc3ad60b6..6710c981f1 100644 --- a/bin/dig/host.c +++ b/bin/dig/host.c @@ -183,6 +183,7 @@ retry: result = dns_rdata_totext(rdata, NULL, b); if (result == ISC_R_NOSPACE) { isc_buffer_free(&b); + INSIST(bufsize <= (UINT_MAX / 2)); bufsize *= 2; goto retry; }