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 9f4e261 commit b967eafCopy full SHA for b967eaf
cpp/ql/src/Security/CWE/CWE-732/FilePermissions.qll
@@ -1,6 +1,11 @@
1
import cpp
2
import semmle.code.cpp.commons.unix.Constants as UnixConstants
3
4
+/**
5
+ * Gets the number corresponding to the contents of `input` in base-16.
6
+ * Note: the first two characters of `input` must be `0x`. For example:
7
+ * `parseHex("0x123abc") = 1194684`.
8
+ */
9
bindingset[input]
10
int parseHex(string input) {
11
exists(string lowerCaseInput | lowerCaseInput = input.toLowerCase() |
0 commit comments