diff options
| author | Adonais Romero González <[email protected]> | 2020-04-10 12:55:21 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-04-10 12:55:21 -0700 |
| commit | 7da5beaee303cca4d82826b983d984606e63e110 (patch) | |
| tree | f8aa08b1f4fd2060c0046fe60d026ad9cfcf079e /tools | |
| parent | 13c61ceeb3f7da66a2b57730d12d14eb7463c46a (diff) | |
| parent | ff2b0e3943803e45fdc275eb01139bc6b84e8544 (diff) | |
Add CA defect to SDV-FailDriver-WDM sample137243
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.
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/sdv/samples/SDV-FailDriver-WDM/driver/fail_driver1.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/sdv/samples/SDV-FailDriver-WDM/driver/fail_driver1.c b/tools/sdv/samples/SDV-FailDriver-WDM/driver/fail_driver1.c index 0aed2564..03087d9f 100644 --- a/tools/sdv/samples/SDV-FailDriver-WDM/driver/fail_driver1.c +++ b/tools/sdv/samples/SDV-FailDriver-WDM/driver/fail_driver1.c @@ -68,6 +68,9 @@ DriverAddDevice( UNREFERENCED_PARAMETER(PhysicalDeviceObject); PAGED_CODE(); + + // Injected CA defect for C28171 + PAGED_CODE(); status = IoCreateDevice(DriverObject, sizeof(DRIVER_DEVICE_EXTENSION), |
