Skip to content

Commit 79e9198

Browse files
committed
C++: An empty models-as-data namespace / type is not 'dubious' in CPP.
1 parent f479649 commit 79e9198

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

cpp/ql/lib/semmle/code/cpp/dataflow/ExternalFlow.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,10 +330,10 @@ module CsvValidation {
330330
or
331331
summaryModel(namespace, type, _, name, signature, ext, _, _, _, _) and pred = "summary"
332332
|
333-
not namespace.regexpMatch("[a-zA-Z0-9_\\.]+") and
333+
not namespace.regexpMatch("[a-zA-Z0-9_\\.]*") and
334334
result = "Dubious namespace \"" + namespace + "\" in " + pred + " model."
335335
or
336-
not type.regexpMatch("[a-zA-Z0-9_<>,\\+]+") and
336+
not type.regexpMatch("[a-zA-Z0-9_<>,\\+]*") and
337337
result = "Dubious type \"" + type + "\" in " + pred + " model."
338338
or
339339
not name.regexpMatch("[a-zA-Z0-9_<>,]*") and
Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
| Dubious namespace "" in sink model. |
2-
| Dubious namespace "" in source model. |
3-
| Dubious namespace "" in summary model. |
41
| Dubious namespace "boost::asio" in sink model. |
52
| Dubious namespace "boost::asio" in source model. |
63
| Dubious namespace "boost::asio" in summary model. |
7-
| Dubious type "" in sink model. |
8-
| Dubious type "" in source model. |
9-
| Dubious type "" in summary model. |
104
| Invalid kind "remote-sink" in sink model. |

0 commit comments

Comments
 (0)