Received: by 10.223.176.5 with SMTP id f5csp3676493wra; Mon, 29 Jan 2018 17:28:41 -0800 (PST) X-Google-Smtp-Source: AH8x226uzVUkf9zoThkyCT4uXVzhAD0Ou6Cpm9GQ+i+6fvXLXOY9x57kuQZsjQ9VSS4F3rsVmARU X-Received: by 10.98.238.2 with SMTP id e2mr28648410pfi.206.1517275721531; Mon, 29 Jan 2018 17:28:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517275721; cv=none; d=google.com; s=arc-20160816; b=fbjBdp1+5ydupjU/J6qr7385MNboAfXTTRNPY9rbNhpVx++itpfiLYiCzeoOve6QSQ lEIPPfsUvCMaAS5BVepLyHsNilFAv9M0CWWoP+tJeMfUGaf8HQKAfn5NJAXsGleairi7 BwmQQGt2toaYK3l9vwm3XeQ+dQow6sTQ/TUWo87tVMU1dE/csOmA5bDtlTBDMQnLJPTE P9JBcXMtoK++JtLT4MByGzZQG99YsGTlXEdZorpgoVFK/1ZUpf+MsuZbY374tViC0dMH hwfwISSa0tmxpTOG+EVGOMAc+CXsHE1S6fnbBlA80KzRgm5PraL5wf/pPU6TZyc33Gjc BC1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date :arc-authentication-results; bh=jFoQQIBZXuvLoO1roDzkYSF5RfrxSRs5aQnyMB1ylXk=; b=AE+uxUk0iBIgvUCAKm+4Ig1Atu2cFLhmjn07TgVQO1wYLF2+l5fOEwRthEWFRMTpBl 3djEtThEPOlKG0+2ck6I9r0agncpyBYe8guyt5lfvM/ACLt3OF54tfT/+OvdjltA9erG A3U6T2z65mdlEVbp4N39oK2YLjPzbzDRcQ0u5OdKL6jDoyhy2PmTjDacOMoNF6HH9d3O 56fEzzmqg/xAp2mbtyhS/oGJ0AiIFrMPZ5swIZBIIvbmifVe4VkGHunuP5w+7APB6HK6 dIZUqeQWSLKo5Ou/NmqmaKbU+LyzX0H1q/GRhXY9FfUmIszKI/TrdAFlUZy70Hlc7ai0 ikOw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u7-v6si56326plq.120.2018.01.29.17.28.26; Mon, 29 Jan 2018 17:28:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752250AbeA3B2D (ORCPT + 99 others); Mon, 29 Jan 2018 20:28:03 -0500 Received: from gateway31.websitewelcome.com ([192.185.143.33]:42139 "EHLO gateway31.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751539AbeA3B2C (ORCPT ); Mon, 29 Jan 2018 20:28:02 -0500 X-Greylist: delayed 1217 seconds by postgrey-1.27 at vger.kernel.org; Mon, 29 Jan 2018 20:28:02 EST Received: from cm12.websitewelcome.com (cm12.websitewelcome.com [100.42.49.8]) by gateway31.websitewelcome.com (Postfix) with ESMTP id 130861D7A5 for ; Mon, 29 Jan 2018 19:07:45 -0600 (CST) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id gKOneG5okzzFjgKOnev4DX; Mon, 29 Jan 2018 19:07:45 -0600 Received: from [189.145.57.174] (port=36224 helo=training) by gator4166.hostgator.com with esmtpa (Exim 4.89_1) (envelope-from ) id 1egKOm-0028F3-EJ; Mon, 29 Jan 2018 19:07:44 -0600 Date: Mon, 29 Jan 2018 19:07:42 -0600 From: "Gustavo A. R. Silva" To: linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Mauro Carvalho Chehab , Hans Verkuil , Jacob chen , Heiko Stuebner , Antti Palosaari , Ramesh Shanmugasundaram , "Gustavo A. R. Silva" Subject: [PATCH resend 0/8] fix potential integer overflows Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4166.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedor.com X-BWhitelist: no X-Source-IP: 189.145.57.174 X-Source-L: No X-Exim-ID: 1egKOm-0028F3-EJ X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (training) [189.145.57.174]:36224 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 4 X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-Local-Domain: yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, I'm resending this cover letter due to a typo in the ARM and LKML addresses in the previous e-mail. This patchset aims to fix potential integer overflows reported by Coverity. In all cases the potential overflowing expressions are evaluated using 32-bit arithmetic before being used in contexts that expect a 64-bit arithmetic. So a cast to the proper type was added to each of those expressions in order to avoid any potential integer overflow. This also gives the compiler complete information about the proper arithmetic for each expression and improves code quality. Addresses the following Coverity IDs reported as "Unintentional integer overflow" issues: 200604, 1056807, 1056808, 1271223, 1324146, 1392628, 1392630, 1446589, 1454996, 1458347. Thank you Gustavo A. R. Silva (8): rtl2832: fix potential integer overflow dvb-frontends: ves1820: fix potential integer overflow i2c: max2175: fix potential integer overflow in max2175_set_nco_freq i2c: ov9650: fix potential integer overflow in __ov965x_set_frame_interval pci: cx88-input: fix potential integer overflow rockchip/rga: fix potential integer overflow in rga_buf_map platform: sh_veu: fix potential integer overflow in sh_veu_colour_offset platform: vivid-cec: fix potential integer overflow in vivid_cec_pin_adap_events drivers/media/dvb-frontends/rtl2832.c | 4 ++-- drivers/media/dvb-frontends/ves1820.c | 2 +- drivers/media/i2c/max2175.c | 2 +- drivers/media/i2c/ov9650.c | 2 +- drivers/media/pci/cx88/cx88-input.c | 4 ++-- drivers/media/platform/rockchip/rga/rga-buf.c | 2 +- drivers/media/platform/sh_veu.c | 4 ++-- drivers/media/platform/vivid/vivid-cec.c | 2 +- 8 files changed, 11 insertions(+), 11 deletions(-) -- 2.7.4