[PATCH v1] string: add sanity check to the strcmp() and strncmp()

Sascha Hauer s.hauer at pengutronix.de
Mon Aug 17 02:26:48 EDT 2020


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 <o.rempel at pengutronix.de>
> ---
>  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 |



More information about the barebox mailing list