Uninitialised variable in common/spl/spl_imx_container.c
The commit 73c40fcb7367f5a spl: Refactor spl_load_info->read to use units of bytes by Sean Anderson <[email protected]> on 2023-11-08 16:48:40 introduced the variable 'overhead' in the function read_auth_image and it is referenced only once where its value is attempted to be used in that function but it is never assigned a value.
This produces a Smatch errorcommon/spl/spl_imx_container.c:57 read_auth_image() error: uninitialized symbol 'overhead'.
The resolution to this error is not immediately obvious to me so if anyone would like to take a look please?
Thanks,
Andrew
Hi Andrew,
Quoted 2 lines · Andrew Goodbody
The resolution to this error is not immediately obvious to me so if anyone would like to take a look please?
NXP downstream u-boot commit:
https://github.com/nxp-imx/uboot-imx/commit/5293b935e26a4fc5343f416f80086984c4c9b408
--
Regards,
Javier Viguera