From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1j147u-0007CJ-4k for barebox@lists.infradead.org; Mon, 10 Feb 2020 08:09:07 +0000 Date: Mon, 10 Feb 2020 09:09:04 +0100 From: Sascha Hauer Message-ID: <20200210080904.a45t4h6nppj3saai@pengutronix.de> References: <20200203082759.7014-1-ahmad@a3f.at> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200203082759.7014-1-ahmad@a3f.at> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH 1/2] sandbox: fix signed integer overflow To: Ahmad Fatoum Cc: barebox@lists.infradead.org On Mon, Feb 03, 2020 at 09:27:58AM +0100, Ahmad Fatoum wrote: > On a 32-bit host system, UBSan reports: > > =============================================================== > UBSAN: Undefined behaviour in ./arch/sandbox/os/common.c:115:32 > signed integer overflow: > 83598 * 1000000000 cannot be represented in type 'long int' > =============================================================== > > Fix this. > > Signed-off-by: Ahmad Fatoum > --- > arch/sandbox/os/common.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied, thanks Sascha -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox