Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
matches
0x
1 parent 92d9e51 commit 0773ab3Copy full SHA for 0773ab3
1 file changed
cpp/ql/src/Security/CWE/CWE-732/FilePermissions.qll
@@ -3,7 +3,7 @@ import semmle.code.cpp.commons.unix.Constants
3
4
bindingset[input]
5
int parseHex(string input) {
6
- input.prefix(2) = "0x" and
+ input.matches("0x%") and
7
result =
8
strictsum(int ix |
9
ix in [2 .. input.length()]
0 commit comments