mirror of
https://git.proxmox.com/git/efi-boot-shim
synced 2025-07-31 01:42:36 +00:00
Fix unsigned int overflow on our i386 debug hook test.
Signed-off-by: Peter Jones <pjones@redhat.com>
This commit is contained in:
parent
775fdb9f4f
commit
82e8358fa1
2
shim.c
2
shim.c
@ -2173,7 +2173,7 @@ debug_hook(void)
|
|||||||
while (x++) {
|
while (x++) {
|
||||||
/* Make this so it can't /totally/ DoS us. */
|
/* Make this so it can't /totally/ DoS us. */
|
||||||
#if defined(__x86_64__) || defined(__i386__) || defined(__i686__)
|
#if defined(__x86_64__) || defined(__i386__) || defined(__i686__)
|
||||||
if (x > 4294967294)
|
if (x > 4294967294ULL)
|
||||||
break;
|
break;
|
||||||
__asm__ __volatile__("pause");
|
__asm__ __volatile__("pause");
|
||||||
#elif defined(__aarch64__)
|
#elif defined(__aarch64__)
|
||||||
|
Loading…
Reference in New Issue
Block a user