From: W.C.A. Wijngaards Date: Tue, 19 Nov 2019 14:26:57 +0000 (+0100) Subject: Cast to unsigned before comparison for assertion. X-Git-Tag: release-1.9.6rc1~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d46bb387947892a05161f61cdd8cfc542213427;p=thirdparty%2Funbound.git Cast to unsigned before comparison for assertion. --- diff --git a/smallapp/unbound-anchor.c b/smallapp/unbound-anchor.c index c8258f130..b8bd1b850 100644 --- a/smallapp/unbound-anchor.c +++ b/smallapp/unbound-anchor.c @@ -943,7 +943,7 @@ read_data_chunk(SSL* ssl, size_t len) size_t got = 0; int r; char* data; - if(len >= (size_t)0xfffffff0) + if((unsigned)len >= (unsigned)0xfffffff0) return NULL; /* to protect against integer overflow in malloc*/ data = malloc(len+1); if(!data) {