[PATCH] param: return error when assigning empty string

Sascha Hauer s.hauer at pengutronix.de
Mon May 11 00:15:30 PDT 2026


On Thu, 07 May 2026 13:49:18 +0200, Ahmad Fatoum wrote:
> The fallback path that allows specifying enum values by index returns an
> error if *endp != '\0' to account for invalid values like my.enum.param=1z.
> 
> This fails to account for the corner case of the empty string which
> would also have *endp == '\0; with idx being the default 0.
> 
> Check for that explicitly and return an error.
> 
> [...]

Applied, thanks!

[1/1] param: return error when assigning empty string
      https://git.pengutronix.de/cgit/barebox/commit/?id=fb0edacd3624 (link may not be stable)

Best regards,
-- 
Sascha Hauer <s.hauer at pengutronix.de>




More information about the barebox mailing list