[NTDLL:CSR] Perform more thorough validation of the parameters in CsrAllocateCaptureB...
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Mon, 5 Oct 2020 00:15:14 +0000 (02:15 +0200)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Mon, 5 Oct 2020 00:22:45 +0000 (02:22 +0200)
commitd86301f72bb562b89c8dfa63781b764742317f8b
tree58581129ed931f621f6a564e7ab6dd5c0572b6b0
parentb3fa53f818639ef765cde4d294215d558433cc38
[NTDLL:CSR] Perform more thorough validation of the parameters in CsrAllocateCaptureBuffer().

Complements commit 7e2db773.

- Validate the argument count.

- Validate the total buffer size: the total size of the header plus
  the pointer-offset array and the provided buffer, together with
  the alignment padding for each argument, must be less than MAXLONG
  aligned to 4-byte boundary.
dll/ntdll/csr/capture.c
dll/ntdll/csr/connect.c