Skip to content

Commit d2e7f22

Browse files
committed
C++: Group all phone number related exprs together.
1 parent d42ee7d commit d2e7f22

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

cpp/ql/lib/semmle/code/cpp/security/PrivateData.qll

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,16 @@ private string privateNames() {
2222
// Inspired by the list on https://cwe.mitre.org/data/definitions/359.html
2323
// Government identifiers, such as Social Security Numbers
2424
"social.?security|" +
25-
// Contact information, such as home addresses and telephone numbers
26-
"post.?code|zip.?code|telephone|" +
25+
// Contact information, such as home addresses
26+
"post.?code|zip.?code|" +
27+
// and telephone numbers
28+
"telephone|mobile|" +
2729
// Geographic location - where the user is (or was)
2830
"latitude|longitude|" +
2931
// Financial data - such as credit card numbers, salary, bank accounts, and debts
3032
"credit.?card|salary|bank.?account|" +
3133
// Communications - e-mail addresses, private e-mail messages, SMS text messages, chat logs, etc.
32-
"email|mobile|employer|" +
34+
"email|employer|" +
3335
// Health - medical conditions, insurance status, prescription records
3436
"medical" +
3537
// ---

0 commit comments

Comments
 (0)