1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 16:52:14 +02:00
Files
u-boot-megous/include
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
..
2023-03-27 11:16:04 -04:00
2023-02-09 16:32:26 -05:00
2023-02-10 07:41:40 -05:00
2023-02-07 14:33:50 -05:00
2023-02-09 16:32:25 -05:00
2023-02-19 21:15:15 +01:00
2023-02-10 13:05:39 +01:00
2023-02-06 13:04:52 -05:00
2023-02-09 16:32:25 -05:00
2023-01-16 18:26:50 -05:00
2023-01-11 15:02:24 -05:00
2023-01-20 12:27:06 -05:00
2023-01-27 14:47:57 -05:00
2023-02-06 13:04:53 -05:00
2023-01-31 22:02:27 +09:00
2023-02-02 14:44:53 -05:00
2023-01-23 18:11:40 -05:00
2023-01-16 18:01:10 +08:00
2023-02-10 07:41:40 -05:00
2023-02-11 12:22:34 -05:00
2023-02-19 21:15:15 +01:00
2023-01-16 18:26:50 -05:00