Rob Shearman : ntdll: Don' t read beyond the end of the array on the last ace iteration in RtlValidAcl .
Alexandre Julliard
julliard at winehq.org
Mon Nov 30 10:42:44 CST 2009
Module: wine
Branch: master
Commit: f2f50f18dc1a6fab7a0ec68d8e8764e0f3399481
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f2f50f18dc1a6fab7a0ec68d8e8764e0f3399481
Author: Rob Shearman <robertshearman at gmail.com>
Date: Sun Nov 29 10:28:32 2009 +0000
ntdll: Don't read beyond the end of the array on the last ace iteration in RtlValidAcl.
---
dlls/ntdll/sec.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/ntdll/sec.c b/dlls/ntdll/sec.c
index 950b9dd..64efdb5 100644
--- a/dlls/ntdll/sec.c
+++ b/dlls/ntdll/sec.c
@@ -1328,7 +1328,8 @@ BOOLEAN WINAPI RtlValidAcl(PACL pAcl)
ret = FALSE;
break;
}
- ace = (PACE_HEADER)(((BYTE*)ace)+ace->AceSize);
+ if (i != pAcl->AceCount)
+ ace = (PACE_HEADER)(((BYTE*)ace)+ace->AceSize);
}
}
}
More information about the wine-cvs
mailing list