We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de16927 commit d42ee7dCopy full SHA for d42ee7d
cpp/ql/test/query-tests/Security/CWE/CWE-311/semmle/tests/test3.cpp
@@ -559,3 +559,21 @@ void tests2(person_info *pi)
559
send(val(), buffer, strlen(buffer), val()); // BAD
560
}
561
562
+
563
+const char *get_home_phone();
564
+const char *get_home();
565
+const char *get_home_address();
566
567
+void tests3()
568
+{
569
+ const char *str;
570
571
+ str = get_home_phone();
572
+ send(val(), str, strlen(str), val()); // BAD [NOT DETECTED]
573
574
+ str = get_home();
575
+ send(val(), str, strlen(str), val()); // GOOD (probably not personal info)
576
577
+ str = get_home_address();
578
579
+}
0 commit comments