summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAdonais Romero González <[email protected]>2020-04-10 12:55:21 -0700
committerGitHub <[email protected]>2020-04-10 12:55:21 -0700
commit7da5beaee303cca4d82826b983d984606e63e110 (patch)
treef8aa08b1f4fd2060c0046fe60d026ad9cfcf079e /tools
parent13c61ceeb3f7da66a2b57730d12d14eb7463c46a (diff)
parentff2b0e3943803e45fdc275eb01139bc6b84e8544 (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.c3
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),