Debugging Tools for Windows

Detecting Overruns and Underruns

You can use the Verify Start or Verify End option in GFlags to align allocations from the special pool so that they are best suited to detect overruns (accessing memory past the end of the allocation) or underruns (accessing memory that precedes the beginning of the allocation).

In Windows Vista and later versions of Windows, this option is available on the System Registry and Kernel Flags tabs. In earlier versions of Windows, it is available only on the System Registry tab.

To specify special pool alignment:
  1. Click the System Registry tab.
  2. Click Verify Start or Verify End.
  3. Click Apply.

    The following illustration shows the Verify Start and Verify End settings on the System Registry tab.

Comments

The Verify Start and Verify End alignment settings apply to all allocations from the special pool, including special pool allocation requests set in Driver Verifier. If you set the alignment without specifying a pool tag or allocation size, then the settings apply only to requests set in Driver Verifier.

Build machine: CAPEBUILD