mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-23 07:39:22 +00:00
Ignore zero-length memory ranges.
This commit is contained in:
1 parent
cd403b1f05
commit
9e195f47c2
2 files changed
+6
-1
No files matched your search
@@ -1,3 +1,8 @@
|
||||
2001-08-02 Gordon Matzigkeit <gord@fig.org>
|
||||
|
||||
* stage2/common.c (init_bios_info): Ignore zero-length memory
|
||||
ranges. From Derrik Pates.
|
||||
|
||||
2001-07-26 Jochen Hoenicke <jochen@gnu.org>
|
||||
|
||||
* stage2/Makefile.am (libgrub_a_CFLAGS): Enable USE_MD5_PASSWORDS
|
||||
|
||||
+1
-1
@@ -226,7 +226,7 @@ init_bios_info (void)
|
||||
{
|
||||
struct AddrRangeDesc *desc = (struct AddrRangeDesc *) addr;
|
||||
|
||||
if (desc->Type == MB_ARD_MEMORY
|
||||
if (desc->Type == MB_ARD_MEMORY && desc->Length > 0
|
||||
&& desc->BaseAddr + desc->Length > max_addr)
|
||||
max_addr = desc->BaseAddr + desc->Length;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user