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.
2 parents 9a41c80 + 2d615ef commit e22ec50Copy full SHA for e22ec50
cpp/ql/src/Security/CWE/CWE-428/UnsafeCreateProcessCall.ql
@@ -93,7 +93,7 @@ class QuotedCommandInCreateProcessFunctionConfiguration extends DataFlow2::Confi
93
94
bindingset[s]
95
predicate isQuotedOrNoSpaceApplicationNameOnCmd(string s) {
96
- s.regexpMatch("\"([^\"])*\"(\\s|.)*") // The first element (path) is quoted
+ s.regexpMatch("\"([^\"])*\"[\\s\\S]*") // The first element (path) is quoted
97
or
98
s.regexpMatch("[^\\s]+") // There are no spaces in the string
99
}
0 commit comments