On Mon, 27 May 2024 15:28:43 +0200, Roland Hieber wrote:
> When accessing argv[optind + i], the whole array index must stay below
> argc, not only i. Also val is only 4 bytes long, so when indexed with i
> (which was initialised to optind, which is at least 3) will overflow
> after reading one data argument from the command line. Add a guard
> against the latter case, and initialise i to 0 to fix the first problem.
>
>
> [...]
Applied, thanks!
[1/1] commands: mipi_dbi: fix null pointer dereference when writing data
https://git.pengutronix.de/cgit/barebox/commit/?id=da602c975fcc (link may
not be stable)
Best regards,
--
Sascha Hauer <[email protected]>