Conrad Pankoff
d7734bf232
Kernel: Fix KParams parsing with trailing space in kernel cmdline
...
When there's a trailing space in the cmdline from the boot loader, this
results in an empty string being emitted from `String::split` after
splitting apart the argument list. This empty string resulted in a
zero-length Vector from the subsequent call to split the key=value pairs,
which was unexpected. This ultimately caused a crash when we tried to
access `[0]` of that zero-length vector.
We now detect and handle an empty string coming from `String::split`
correctly.
2019-06-04 07:08:07 -07:00
..
2019-06-02 09:53:42 +02:00
2019-06-02 14:57:44 +02:00
2019-06-02 12:52:21 +02:00
2019-06-01 18:56:56 +02:00
2019-06-01 18:56:56 +02:00
2019-06-01 17:51:48 +02:00
2019-03-27 13:02:29 +01:00
2019-06-03 20:48:34 +02:00
2019-05-28 17:31:20 +02:00
2019-05-28 17:31:20 +02:00
2018-11-17 00:14:07 +01:00
2019-04-06 14:29:29 +02:00
2019-04-29 13:58:40 +02:00
2019-05-28 17:31:20 +02:00
2019-03-20 02:12:40 +01:00
2019-05-02 03:28:20 +02:00
2019-06-02 10:14:28 +02:00
2019-06-02 10:14:28 +02:00
2019-06-04 03:54:27 -07:00
2019-05-26 02:35:25 +02:00
2019-05-28 17:31:20 +02:00
2019-05-15 21:40:41 +02:00
2019-05-28 17:31:20 +02:00
2019-06-04 03:54:27 -07:00
2019-05-17 21:59:48 +02:00
2019-05-28 17:31:20 +02:00
2018-12-03 00:39:25 +01:00
2019-05-28 17:31:20 +02:00
2019-05-28 17:31:20 +02:00
2019-05-16 13:41:16 +02:00
2019-04-15 23:58:48 +02:00
2019-06-04 07:08:07 -07:00
2019-06-04 03:54:27 -07:00
2019-04-29 13:58:40 +02:00
2019-05-28 17:31:20 +02:00
2019-05-28 17:31:20 +02:00
2019-05-30 18:58:59 +02:00
2019-05-16 13:41:16 +02:00
2019-05-28 17:31:20 +02:00
2019-04-01 21:43:07 +02:00
2019-05-28 17:31:20 +02:00
2019-05-30 02:57:15 +02:00
2019-06-04 03:54:27 -07:00
2019-04-30 14:47:22 +02:00
2019-05-13 19:48:14 +02:00
2019-06-02 09:53:42 +02:00
2019-03-11 11:11:29 +01:00
2019-05-28 17:31:20 +02:00
2019-05-28 17:31:20 +02:00
2019-04-06 14:29:29 +02:00
2019-05-28 17:31:20 +02:00
2019-06-02 12:55:51 +02:00
2019-06-01 20:31:36 +02:00
2019-06-01 18:56:56 +02:00
2019-06-01 18:56:56 +02:00
2019-05-17 16:06:26 +02:00
2019-05-28 17:31:20 +02:00
2019-06-02 12:37:29 +02:00
2019-05-20 03:47:02 +02:00
2019-05-28 17:31:20 +02:00
2019-06-02 10:14:28 +02:00
2019-06-02 10:14:28 +02:00
2019-04-22 17:13:18 +02:00
2019-05-28 17:31:20 +02:00
2019-06-02 14:46:59 +02:00
2019-06-01 20:31:36 +02:00
2019-06-01 20:31:36 +02:00
2019-05-22 13:23:41 +02:00
2019-05-28 17:31:20 +02:00
2019-05-30 02:57:15 +02:00