From: Ray Bellis Date: Tue, 4 Jul 2017 11:12:11 +0000 (+0100) Subject: fixed new warning with previous iOS patch X-Git-Tag: v9.10.6rc1~16 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=4e69e1d0724772c66286479b43624abfc323f48d;p=thirdparty%2Fbind9.git fixed new warning with previous iOS patch (cherry picked from commit 70676a01eb16a8221fd5adec6aefaf36590edada) --- diff --git a/bin/dig/dighost.c b/bin/dig/dighost.c index 4aa5eb009dc..19939ed74c0 100644 --- a/bin/dig/dighost.c +++ b/bin/dig/dighost.c @@ -459,7 +459,7 @@ hex_dump(isc_buffer_t *b) { */ static isc_result_t append(const char *text, size_t len, char **p, char *end) { - if (len > end - *p) + if (*p + len > end) return (ISC_R_NOSPACE); memmove(*p, text, len); *p += len;