Skip to content

Commit b967eaf

Browse files
committed
Add documentation for parseHex
1 parent 9f4e261 commit b967eaf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cpp/ql/src/Security/CWE/CWE-732/FilePermissions.qll

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
import cpp
22
import semmle.code.cpp.commons.unix.Constants as UnixConstants
33

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+
*/
49
bindingset[input]
510
int parseHex(string input) {
611
exists(string lowerCaseInput | lowerCaseInput = input.toLowerCase() |

0 commit comments

Comments
 (0)