From 55ae20931f5a4b356055b139fab898fd3e361caf Mon Sep 17 00:00:00 2001 From: Serge Gautherie Date: Wed, 4 Oct 2017 18:04:35 +0200 Subject: [PATCH] [FREELDR] Properly check for end-of-memory-map entries when skipping ranges smaller than page size. CORE-12881 Signed-off-by: Timo Kreuzer --- boot/freeldr/freeldr/arch/i386/pcmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot/freeldr/freeldr/arch/i386/pcmem.c b/boot/freeldr/freeldr/arch/i386/pcmem.c index 169070ee6f5..61cd694070e 100644 --- a/boot/freeldr/freeldr/arch/i386/pcmem.c +++ b/boot/freeldr/freeldr/arch/i386/pcmem.c @@ -318,7 +318,7 @@ PcMemGetBiosMemoryMap(PFREELDR_MEMORY_DESCRIPTOR MemoryMap, ULONG MaxMemoryMapSi PcBiosMapCount, PcBiosMemoryMap[PcBiosMapCount].BaseAddress, PcBiosMemoryMap[PcBiosMapCount].Length); - continue; + goto nextRange; } /* Calculate the length of the aligned range */