[RESEND PATCH v3 1/2] cli: Correct several bugs in cli_getch()

Tom Rini trini at konsulko.com
Tue Mar 28 17:13:26 CEST 2023


On Tue, 28 Mar 2023 08:34:13 +1300, Simon Glass wrote:

> This function does not behave as expected when unknown escape sequences
> are sent to it:
> 
> - it fails to store (and thus echo) the last character of the invalid
>   sequence
> - it fails to set esc_len to 0 when it finishes emitting the invalid
>   sequence, meaning that the following character will appear to be part
>   of a new escape sequence
> - it processes the first character of the rejected sequence as a valid
>   character, just starting the sequence all over again
> 
> [...]

Applied to u-boot/master, thanks!

-- 
Tom



More information about the U-Boot mailing list