[PATCH] commands: mipi_dbi: fix null pointer dereference when writing data
Sascha Hauer
s.hauer at pengutronix.de
Tue May 28 23:08:34 PDT 2024
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 <s.hauer at pengutronix.de>
More information about the barebox
mailing list