Heinrich Schuchardt 0e69bcfb27 efi_loader: validate load option
For passing the optional data of the load option to the loaded imaged
protocol we need its size.

efi_deserialize_load_option() is changed to return the size of the optional
data.

As a by-product we get a partial validation of the load option.
Checking the length of the device path remains to be implemented.

Some Coverity defects identified the load options as user input because
get_unaligned_le32() and get_unaligned_le16() is called. But non of these
Coverity defects can be resolved without marking functions with Coverity
specific tags.

Reported-by: Coverity (CID 303760)
Reported-by: Coverity (CID 303768)
Reported-by: Coverity (CID 303776)
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2020-06-03 17:19:17 +02:00
..
2019-12-06 16:44:20 -05:00
2019-10-16 05:42:27 +02:00
2020-05-11 10:16:49 +05:30
2020-04-17 12:32:36 -04:00
2020-05-18 18:36:55 -04:00
2020-05-18 18:36:55 -04:00
2020-05-18 17:33:33 -04:00
2020-02-05 19:33:46 -07:00
2020-05-11 01:30:49 +05:30
2020-05-25 11:54:53 -04:00
2020-02-05 19:33:46 -07:00
2019-10-13 23:34:43 +02:00
2020-05-07 09:01:42 -04:00
2020-06-03 17:19:17 +02:00
2020-05-18 21:19:23 -04:00
2020-05-18 17:33:33 -04:00
2020-05-18 18:36:55 -04:00
2020-04-29 11:10:54 +05:30
2020-05-18 17:33:33 -04:00
2020-05-18 18:36:55 -04:00
2020-05-18 21:19:18 -04:00
2020-05-18 18:36:55 -04:00
2019-10-14 09:31:41 +02:00
2020-01-20 15:38:16 +01:00
2020-04-30 17:40:16 +08:00
2019-11-07 18:39:16 -05:00
2020-05-18 18:36:55 -04:00
2019-08-11 16:43:41 -04:00
2020-04-17 12:32:36 -04:00
2020-05-18 18:36:55 -04:00
2019-12-02 18:23:11 -05:00
2020-01-25 12:04:36 -05:00
2020-05-18 18:36:55 -04:00
2020-02-05 19:33:46 -07:00
2019-12-15 11:44:11 +08:00
2020-05-18 17:33:33 -04:00
2020-05-15 13:53:50 -04:00
2020-02-05 19:33:46 -07:00
2019-12-06 16:44:19 -05:00
2020-05-18 17:33:31 -04:00
2020-05-18 18:36:55 -04:00
2020-02-05 19:33:46 -07:00
2020-05-18 21:19:18 -04:00
2019-05-21 17:33:23 -06:00
2020-01-24 23:06:49 +05:30
2020-01-21 15:56:15 +01:00
2020-02-07 22:46:35 +08:00
2020-04-24 16:40:09 -04:00
2020-05-18 21:19:18 -04:00