1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 08:42:12 +02:00
Files
u-boot-megous/common
Simon Glass be0169f07e cli: Correct handling of invalid escape sequences in cread_line()
The second call to cli_ch_process() is in the wrong place, meaning that
the one of the characters of an invalid escape sequence is swallowed
instead of being returned.

Fix the bug and add a test to cover this.

This behaviour matches that of the code before cli_getch() was
introduced. This was verified on the commit before b08e9d4b66 i.e.:

   7d850f85aa ("sandbox: Enable mmc command and legacy images")

Signed-off-by: Simon Glass <sjg@chromium.org>
Reported-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2023-03-28 09:25:51 -04:00
..
2022-10-31 11:02:44 -04:00
2023-02-10 07:41:39 -05:00
2022-11-02 08:42:03 +01:00
2022-01-19 18:11:34 +01:00
2023-02-10 07:41:39 -05:00
2023-02-10 07:41:40 -05:00
2022-08-04 16:18:47 -04:00
2023-02-09 16:32:26 -05:00
2023-02-06 13:04:53 -05:00
2023-03-10 17:31:31 +01:00
2023-01-09 11:30:08 -05:00
2023-02-10 07:41:40 -05:00
2023-02-07 14:33:50 -05:00