Message ID | 20201210154134.794-7-ynezz@true.cz |
---|---|
State | Accepted |
Delegated to: | Petr Štetiar |
Headers | show
Return-Path: <openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.openwrt.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=true.cz Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=JtyA6wDp; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CsJ985zrtz9sWL for <incoming@patchwork.ozlabs.org>; Fri, 11 Dec 2020 02:43:24 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=fEDltazzXSxsvxqgtjmPjpOJvS8spBpKZvruTMRyabE=; b=JtyA6wDpZ1OC6dzGDYydZdMv2 pPGjqZHLej2WYZfafdDDjvj+N4TyTCDZKyxKowh9uxjpliZkx9Ir+VKDP8ysTbSNM4WltLis6rs/v XMIaPPXDdZrTRRxtgDMW1XH9qn2aTT7lcld2sCpvwdyJQHn7GzWGi67TPz2Q6wmeYTBcNjrqmpDBR 1lQndFBPH4QJc04bo9DJQ0ZL/k1VU473mD1f9o5eimZkoOFUC6LwJTa1yj5+ZxyoHsMQoXQpkrRUC LkqOTQ3qo9D1kb5YRdhpKPhr9oy8WBBxzDEdHjjQMOYf5Zo9XfQiObgrYoj6SzqGEAt0U93MVSUFq R8cugM5Bg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1knO4y-0007Sc-60; Thu, 10 Dec 2020 15:42:04 +0000 Received: from smtp-out.xnet.cz ([178.217.244.18]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1knO4e-0007Gu-HA for openwrt-devel@lists.openwrt.org; Thu, 10 Dec 2020 15:41:46 +0000 Received: from meh.true.cz (meh.true.cz [108.61.167.218]) (Authenticated sender: petr@true.cz) by smtp-out.xnet.cz (Postfix) with ESMTPSA id 7A57B18EFB; Thu, 10 Dec 2020 16:41:43 +0100 (CET) Received: by meh.true.cz (OpenSMTPD) with ESMTP id 2b5f403c; Thu, 10 Dec 2020 16:41:26 +0100 (CET) From: =?utf-8?q?Petr_=C5=A0tetiar?= <ynezz@true.cz> To: openwrt-devel@lists.openwrt.org Subject: [PATCH ustream-ssl 06/12] ustream-mbedtls: fix comparison of integers of different signs Date: Thu, 10 Dec 2020 16:41:28 +0100 Message-Id: <20201210154134.794-7-ynezz@true.cz> In-Reply-To: <20201210154134.794-1-ynezz@true.cz> References: <20201210154134.794-1-ynezz@true.cz> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201210_104144_749104_13312098 X-CRM114-Status: GOOD ( 17.61 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 SPF_NONE SPF: sender does not publish an SPF Record X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: OpenWrt Development List <openwrt-devel.lists.openwrt.org> List-Unsubscribe: <https://lists.openwrt.org/mailman/options/openwrt-devel>, <mailto:openwrt-devel-request@lists.openwrt.org?subject=unsubscribe> List-Archive: <http://lists.openwrt.org/pipermail/openwrt-devel/> List-Post: <mailto:openwrt-devel@lists.openwrt.org> List-Help: <mailto:openwrt-devel-request@lists.openwrt.org?subject=help> List-Subscribe: <https://lists.openwrt.org/mailman/listinfo/openwrt-devel>, <mailto:openwrt-devel-request@lists.openwrt.org?subject=subscribe> Cc: =?utf-8?q?Petr_=C5=A0tetiar?= <ynezz@true.cz> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "openwrt-devel" <openwrt-devel-bounces@lists.openwrt.org> Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org |
Series |
fixes, improvements and CI
|
expand
|
diff --git a/ustream-mbedtls.c b/ustream-mbedtls.c index 9f73c5836034..3424743c6452 100644 --- a/ustream-mbedtls.c +++ b/ustream-mbedtls.c @@ -37,7 +37,7 @@ static int s_ustream_read(void *ctx, unsigned char *buf, size_t len) return 0; sbuf = ustream_get_read_buf(s, &slen); - if (slen > len) + if ((size_t) slen > len) slen = len; if (!slen)
Fixes following compiler extra warning: ustream-mbedtls.c:40:11: error: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned long') [-Werror,-Wsign-compare] if (slen > len) ~~~~ ^ ~~~ Signed-off-by: Petr Štetiar <ynezz@true.cz> --- ustream-mbedtls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)