11865 SMB2 CREATE should validate create context sizes

Review Request #2410 - Created Oct. 23, 2019 and discarded

Information
Andrew Stormont
illumos-gate
11865
Reviewers
general
gdamore, gwr

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

"If the size of each individual create context is not equal to the DataLength of the create context, the server MUST fail the request with STATUS_INVALID_PARAMETER."

This impacts the following WPTS test case:

InvalidCreateRequestStructureSize

Prior to applying the fix the above test case failed. With the fix applied it now passes.

Andrew Stormont
Gordon Ross
Andrew Stormont
Andrew Stormont
Review request changed

Status: Discarded

Loading...