Commit 9c87c888 authored by Alexandre Julliard's avatar Alexandre Julliard

server: Fix tracing of invalid ACLs.

parent 8110dde8
...@@ -822,7 +822,7 @@ static void dump_inline_acl( const char *prefix, const ACL *acl, data_size_t siz ...@@ -822,7 +822,7 @@ static void dump_inline_acl( const char *prefix, const ACL *acl, data_size_t siz
{ {
if (size < sizeof(ACL)) if (size < sizeof(ACL))
{ {
fprintf( stderr, "<invalid acl>}\n" ); fprintf( stderr, "<invalid acl>}" );
return; return;
} }
size -= sizeof(ACL); size -= sizeof(ACL);
...@@ -832,10 +832,7 @@ static void dump_inline_acl( const char *prefix, const ACL *acl, data_size_t siz ...@@ -832,10 +832,7 @@ static void dump_inline_acl( const char *prefix, const ACL *acl, data_size_t siz
const SID *sid = NULL; const SID *sid = NULL;
data_size_t sid_size = 0; data_size_t sid_size = 0;
if (size < sizeof(ACE_HEADER)) if (size < sizeof(ACE_HEADER) || size < ace->AceSize) break;
return;
if (size < ace->AceSize)
return;
size -= ace->AceSize; size -= ace->AceSize;
if (i != 0) fputc( ',', stderr ); if (i != 0) fputc( ',', stderr );
fprintf( stderr, "{AceType=" ); fprintf( stderr, "{AceType=" );
......
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