From: Mark Andrews Date: Tue, 17 Mar 2020 02:56:30 +0000 (+1100) Subject: address off by one error in idn_output_filter X-Git-Tag: v9.17.1~41^2 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=af67acc0d076fa4f767644a71c9cd9ad9bc56b89;p=thirdparty%2Fbind9.git address off by one error in idn_output_filter --- diff --git a/bin/dig/dighost.c b/bin/dig/dighost.c index 33841914714..85e725c030a 100644 --- a/bin/dig/dighost.c +++ b/bin/dig/dighost.c @@ -4420,7 +4420,7 @@ idn_output_filter(isc_buffer_t *buffer, unsigned int used_org) { * Copy name from 'buffer' to 'src' and terminate it with NULL. */ srclen = isc_buffer_usedlength(buffer) - used_org; - if (srclen > sizeof(src)) { + if (srclen >= sizeof(src)) { warn("Input name too long to perform IDN conversion"); return (ISC_R_SUCCESS); }