* grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the

checks which are always false on some platforms.
	(grub_cmd_lsacpi): Likewise.
	* grub-core/kern/misc.c (grub_strtoul): Likewise.
	* grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
	Likewise.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-02-09 23:48:34 +01:00
parent def9fc1bb2
commit a4ea2dff4b
4 changed files with 23 additions and 4 deletions

View file

@ -370,11 +370,13 @@ grub_strtoul (const char *str, char **end, int base)
unsigned long long num;
num = grub_strtoull (str, end, base);
#if GRUB_CPU_SIZEOF_LONG != 8
if (num > ~0UL)
{
grub_error (GRUB_ERR_OUT_OF_RANGE, "overflow is detected");
return ~0UL;
}
#endif
return (unsigned long) num;
}