summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2015-11-17 11:39:16 -0500
committerPeter Jones <pjones@redhat.com>2015-11-17 11:39:16 -0500
commit82e8358fa15abaf6056874ef414924ecc388f7d2 (patch)
treecdb120b2cc777cdb38067c080586a4b5d29cdc30
parent775fdb9f4f954b01876419d0219a8acdfa455fc7 (diff)
downloadefi-boot-shim-82e8358fa15abaf6056874ef414924ecc388f7d2.tar.gz
efi-boot-shim-82e8358fa15abaf6056874ef414924ecc388f7d2.zip
Fix unsigned int overflow on our i386 debug hook test.
Signed-off-by: Peter Jones <pjones@redhat.com>
-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__)