Heinrich Schuchardt
7d3af58ed9
efi_loader: check memory address before freeing
...
When we call FreePages() we essentially add memory to our memory map. We
shouldn't do this for memory that does not exit.
Check if the memory that is to be freed via FreePages() or FreePool() is in
our memory map and is not EFI_CONVENTIONAL_MEMORY.
This check is mandated by the UEFI specification.
Cf. UEFI SCT II (2017), 3.2.2 FreePages(), 5.1.2.1 - 5.1.2.2
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de >
2019-05-12 20:54:22 +02:00
..
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2019-04-23 00:37:27 +02:00
2019-04-12 22:00:42 +02:00
2019-05-12 20:54:22 +02:00
2019-05-12 20:54:22 +02:00
2018-08-24 13:19:53 -04:00
2019-04-11 20:10:50 -06:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-10-22 14:37:28 +02:00
2019-03-25 11:44:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2019-05-05 08:48:50 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2019-04-03 10:26:46 -04:00
2018-09-18 00:01:18 -06:00
2019-02-13 09:40:05 +01:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-12-08 20:18:44 -05:00
2018-12-23 02:39:52 +01:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2019-05-05 08:48:50 -04:00
2019-04-23 20:26:43 -06:00
2014-12-11 13:18:41 -07:00
2018-05-07 09:34:12 -04:00
2019-04-11 20:10:50 -06:00
2019-04-23 20:26:43 -06:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-10-09 04:40:27 -06:00
2019-02-09 07:50:54 -05:00
2018-06-13 07:49:12 -04:00
2018-05-30 11:59:21 +02:00
2019-05-05 08:48:50 -04:00
2018-05-07 09:34:12 -04:00
2018-08-31 11:59:44 -04:00
2012-12-13 11:46:07 -07:00
2014-09-16 12:23:56 -04:00
2019-02-02 08:19:17 -05:00
2019-04-24 07:27:32 -04:00
2018-05-10 20:38:35 -04:00
2019-05-05 08:48:50 -04:00
2012-04-29 14:14:08 +02:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-04-28 18:32:23 -04:00
2018-12-05 06:01:34 -07:00
2011-12-07 08:39:54 +01:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-09-05 16:02:34 -04:00
2018-12-02 21:59:37 +01:00
2018-11-20 19:14:22 -07:00
2018-05-07 09:34:12 -04:00
2018-09-20 20:11:01 +05:30
2018-05-07 09:34:12 -04:00
2019-03-29 10:53:18 -04:00
2018-05-07 09:34:12 -04:00
2018-12-05 06:01:34 -07:00
2018-11-29 09:30:06 -07:00
2019-02-19 08:55:43 -05:00
2018-11-29 09:30:06 -07:00
2019-04-23 20:26:43 -06:00
2019-05-02 18:17:50 +02:00
2019-05-12 20:54:22 +02:00
2019-05-05 08:48:50 -04:00