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 merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1k7Ybb-0002pC-SK for barebox@lists.infradead.org; Mon, 17 Aug 2020 06:26:53 +0000 Date: Mon, 17 Aug 2020 08:26:48 +0200 From: Sascha Hauer Message-ID: <20200817062648.GQ13023@pengutronix.de> References: <20200813113938.24127-1-o.rempel@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200813113938.24127-1-o.rempel@pengutronix.de> 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 v1] string: add sanity check to the strcmp() and strncmp() To: Oleksij Rempel Cc: barebox@lists.infradead.org On Thu, Aug 13, 2020 at 01:39:38PM +0200, Oleksij Rempel wrote: > A relatively big portion of barebox init sequence is running without > configured exception vector. As result we may not detect some NULL > pointer dereferences (as on iMX6) or just silently freeze (as on stm32). > > So, add sanity check to detect this kind of issues as early as possible. > > Signed-off-by: Oleksij Rempel > --- > lib/string.c | 4 ++++ > 1 file changed, 4 insertions(+) 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