11865 SMB2 CREATE should validate create context sizes
Review Request #2410 — Created Oct. 23, 2019 and discarded
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:
Prior to applying the fix the above test case failed. With the fix applied it now passes.
Can you provide some analysis about why smb2_decode_create_ctx does not already return invalid parameter for create contexts where the context-specific data is too short?