Commit f2f50f18 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

ntdll: Don't read beyond the end of the array on the last ace iteration in RtlValidAcl.

parent a94265e5
......@@ -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);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment