
6 Aug
2024
6 Aug
'24
11:59 a.m.
Hi,
On Wed, 24 Jul 2024 11:51:06 +0200, Mattijs Korpershoek wrote:
When blk_get_dev() fails, block NULL and gets de-referenced in the error path by a printf(), resulting in a crash.
This can be reproduced on sandbox with:
$ ./u-boot --command "bcb load mmc 0 0"
[...]
Thanks, Applied to https://source.denx.de/u-boot/custodians/u-boot-dfu (u-boot-dfu)
[1/1] cmd: bcb: Fix segfault on invalid block device https://source.denx.de/u-boot/custodians/u-boot-dfu/-/commit/d7b5ddf0def85a7...
-- Mattijs