Previous Next

Zero-Length Buffer Test

Command-line parameters: {/in | /fn} [/fl MinFunction] [/fu MaxFunction] [/dl MinDevice] [/du MaxDevice].

During the Zero-Length Buffer Test, Device Path Exerciser issues a series of calls to the DeviceIoControl (described in the Platform SDK) with input and/or output buffer lengths of 0. The test generates varying I/O control codes by using different function codes, device types, data transfer methods, and access requirements. For information about the contents of I/O control codes, see Defining I/O Control Codes.

To test the driver's handling of invalid buffer pointers, the buffer pointers in these user-mode calls specify addresses high in kernel virtual address space, such as 0xFFFFFC00).

Device Path Exerciser performs the Zero-Length Buffer test on all devices opened during the basic and additional open tests. You can customize this test by using the /fl and /fu command parameters to specify the range of function codes used in the calls and /dl and /du to specify the range of device types used in the calls.