Skip to content

Commit

Permalink
Add CA defect to SDV-FailDriver-WDM sample
Browse files Browse the repository at this point in the history
Add a simple C28171 code analysis for drivers violation to the SDV-FailDriver-WDM sample, so that we can use it to validate CA for drivers is working correctly.
  • Loading branch information
NeoAdonis committed Apr 10, 2020
2 parents 13c61ce + ff2b0e3 commit 7da5bea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/sdv/samples/SDV-FailDriver-WDM/driver/fail_driver1.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ DriverAddDevice(
UNREFERENCED_PARAMETER(PhysicalDeviceObject);

PAGED_CODE();

// Injected CA defect for C28171
PAGED_CODE();

status = IoCreateDevice(DriverObject,
sizeof(DRIVER_DEVICE_EXTENSION),
Expand Down

0 comments on commit 7da5bea

Please sign in to comment.