From 57225adaac5d6dae53dd5b9d2b832a0ace73187b Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Sun, 24 Mar 2019 16:10:33 +0100 Subject: [PATCH] [NTOS:IO] Fix always-false condition in IoCheckEaBufferValidity. Spotted by clang. --- ntoskrnl/io/iomgr/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ntoskrnl/io/iomgr/util.c b/ntoskrnl/io/iomgr/util.c index 5005e182089..bd7fdde85dc 100644 --- a/ntoskrnl/io/iomgr/util.c +++ b/ntoskrnl/io/iomgr/util.c @@ -251,7 +251,7 @@ IoCheckEaBufferValidity(IN PFILE_FULL_EA_INFORMATION EaBuffer, /* Compute the remaining bits */ EaLength -= NextEntryOffset; /* We must have bits left */ - if (EaLength < 0) + if ((LONG)EaLength < 0) { goto FailPath; }