From 396346644c8e21b7b5501d574aca21dff42f9db3 Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Wed, 5 Sep 2007 21:35:09 +0000 Subject: [PATCH] - Fix IntEaLength's type (ULONG -> LONG), so it could actually become negative, and corresponding check will be performed. svn path=/trunk/; revision=28886 --- reactos/ntoskrnl/io/iomgr/util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reactos/ntoskrnl/io/iomgr/util.c b/reactos/ntoskrnl/io/iomgr/util.c index 38412e8652b..ca1becc8eee 100644 --- a/reactos/ntoskrnl/io/iomgr/util.c +++ b/reactos/ntoskrnl/io/iomgr/util.c @@ -139,7 +139,8 @@ IoCheckEaBufferValidity(IN PFILE_FULL_EA_INFORMATION EaBuffer, OUT PULONG ErrorOffset) { PFILE_FULL_EA_INFORMATION EaBufferEnd; - ULONG NextEaBufferOffset, IntEaLength; + ULONG NextEaBufferOffset; + LONG IntEaLength; /* Lenght of the rest. Inital equal to EaLength */ IntEaLength = EaLength;