[PATCH V2 18/30] imx: hab: Fix coverity issue in HAB event decoding

sbabic at denx.de sbabic at denx.de
Tue Jul 11 21:43:30 CEST 2023


> From: Ye Li <ye.li at nxp.com>
> Fix below coverity issues caused by get_idx function where "-1" is
> compared with uint8_t "element"
> 343336 Unsigned compared with neg
> 343337 Operands don't affect result
> Additional, this function returns "-1" will cause overflow to
> event string array.
> Reviewed-by: Peng Fan <peng.fan at nxp.com>
> Signed-off-by: Ye Li <ye.li at nxp.com>
> Signed-off-by: Peng Fan <peng.fan at nxp.com>
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,        Managing Director: Erika Unter  
HRB 165235 Munich,   Office: Kirchenstr.5, 82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================


More information about the U-Boot mailing list