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.:
7d850f85aad ("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
..
2018-05-07 09:34:12 -04:00
2022-12-23 10:14:51 -05:00
2023-02-06 13:04:53 -05:00
2023-01-20 12:27:06 -05:00
2023-02-17 10:51:28 -05:00
2022-10-31 11:02:44 -04:00
2023-02-11 12:22:34 -05:00
2021-07-14 16:48:00 -04:00
2023-02-11 12:22:34 -05:00
2022-08-20 18:07:32 -06:00
2023-01-27 12:51:27 -05:00
2023-03-28 09:25:51 -04:00
2023-01-11 15:02:24 -05:00
2023-03-28 09:25:51 -04:00
2020-12-04 16:10:01 -05:00
2023-02-10 07:41:39 -05:00
2023-01-20 12:27:24 -05:00
2023-01-12 11:25:17 -05:00
2020-05-18 21:19:18 -04:00
2022-11-02 08:42:03 +01:00
2018-05-07 09:34:12 -04:00
2022-09-18 10:26:33 +02:00
2022-09-29 16:07:58 -04:00
2013-04-01 16:33:52 -04:00
2022-01-19 18:11:34 +01:00
2023-02-10 07:41:39 -05:00
2021-02-02 15:33:42 -05:00
2023-02-10 07:41:40 -05:00
2022-12-05 16:06:07 -05:00
2022-08-04 16:18:47 -04:00
2023-02-09 16:32:26 -05:00
2022-08-20 18:12:51 -04:00
2021-04-27 08:05:30 -04:00
2021-02-02 15:33:42 -05:00
2021-08-02 13:32:14 -04:00
2023-03-10 17:31:31 +01:00
2020-05-18 21:19:23 -04:00
2022-01-18 08:31:02 -05:00
2021-07-21 10:27:35 -06:00
2021-02-02 15:33:42 -05:00
2023-02-06 13:04:53 -05:00
2022-04-23 22:05:41 +02:00
2023-03-10 17:31:31 +01:00
2022-04-11 10:00:30 -04:00
2023-01-09 11:30:08 -05:00
2023-02-10 13:05:39 +01:00
2022-03-25 12:01:15 +00:00
2023-02-06 13:04:53 -05:00
2018-05-07 09:34:12 -04:00
2021-03-13 13:14:52 -05:00
2022-10-30 20:01:40 +01:00
2023-02-10 07:41:40 -05:00
2021-04-20 07:31:12 -04:00
2022-10-30 20:07:17 +01:00
2009-06-12 20:45:48 +02:00
2023-01-20 12:27:06 -05:00
2023-02-07 14:33:50 -05:00
2022-09-18 10:26:33 +02:00
2023-01-12 16:19:53 +01:00
2022-11-04 12:22:45 +01:00
2022-11-03 23:36:48 +01:00
2022-09-18 10:26:33 +02:00