Bug #11865

Updated by Andrew Stormont over 2 years ago

The SMB2 server should fail with STATUS_INVALID_PARAMETER if check the create context sizes before attempting to decode their data: 

 "If the size of a MxAc each individual create context is not large enough equal to hold the optional timestamp value.    This is something DataLength of the WPTS checks for by issuing a bogus CREATE request with a MxAc create context with a size of 4 bytes (the spec says it MUST be either 0 or 8 bytes long): 

 "The Data in context, the Buffer field of the SMB2_CREATE_CONTEXT server MUST either contain fail the following structure or be empty (0 bytes in length)." request with STATUS_INVALID_PARAMETER." 

 This impacts the follow WPTS test case: