Files
ladybird/Kernel
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-01 17:51:48 +02:00
2019-05-28 17:31:20 +02:00
2019-05-28 17:31:20 +02:00
2019-05-28 17:31:20 +02:00
2019-05-28 17:31:20 +02:00
2019-05-28 17:31:20 +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-28 17:31:20 +02:00
2019-05-28 17:31:20 +02:00
2019-05-28 17:31:20 +02:00
2019-05-28 17:31:20 +02:00
2019-05-30 02:57:15 +02:00
2019-05-28 17:31:20 +02:00
2019-05-28 17:31:20 +02:00
2019-05-28 17:31:20 +02:00
2019-06-01 20:31:36 +02:00
2019-05-28 17:31:20 +02:00
2019-05-28 17:31:20 +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-28 17:31:20 +02:00