[PATCH 1/2] board: dhelectronics: Check pointer before access in dh_get_value_from_eeprom_buffer()
Tom Rini
trini at konsulko.com
Wed Sep 17 17:08:17 CEST 2025
On Sun, 07 Sep 2025 03:00:46 +0200, Marek Vasut wrote:
> The eip pointer in dh_get_value_from_eeprom_buffer() might be NULL.
> The current NULL pointer check happens too late, after the eip was
> accessed in variable assignment. Reorder the two, so the NULL pointer
> check happens first, and any access second, otherwise the access may
> trigger a hang or other undefined behavior.
>
>
> [...]
Applied to u-boot/master, thanks!
[1/2] board: dhelectronics: Check pointer before access in dh_get_value_from_eeprom_buffer()
commit: 5634cf1afcf17fda0136693f02a843aa6b938b2b
[2/2] board: dhelectronics: Use isascii() before isprint() in dh_read_eeprom_id_page()
commit: 7cd9d2db2627ce65d3c03e4422607b7a86093e8a
--
Tom
More information about the U-Boot
mailing list