summaryrefslogtreecommitdiff
path: root/shim.c
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2015-11-02 11:12:36 -0500
committerPeter Jones <pjones@redhat.com>2015-11-17 11:39:16 -0500
commite22b8561d7918e9bc320cabea490424a754f48b9 (patch)
treecdb120b2cc777cdb38067c080586a4b5d29cdc30 /shim.c
parent5a49bad020792483b5abd137861f906c55bf9dca (diff)
downloadefi-boot-shim-e22b8561d7918e9bc320cabea490424a754f48b9.tar.gz
efi-boot-shim-e22b8561d7918e9bc320cabea490424a754f48b9.zip
Fix unsigned int overflow on our i386 debug hook test.
Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'shim.c')
-rw-r--r--shim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shim.c b/shim.c
index 4c6bdc54..4d33df36 100644
--- a/shim.c
+++ b/shim.c
@@ -2173,7 +2173,7 @@ debug_hook(void)
while (x++) {
/* Make this so it can't /totally/ DoS us. */
#if defined(__x86_64__) || defined(__i386__) || defined(__i686__)
- if (x > 4294967294)
+ if (x > 4294967294ULL)
break;
__asm__ __volatile__("pause");
#elif defined(__aarch64__)