Skip to content

Commit 338ab96

Browse files
committed
Correct comment.
1 parent b73fe0b commit 338ab96

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

cpp/ql/src/Security/CWE/CWE-704/WcharCharConversion.ql

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,8 @@ class WideCharPointerType extends PointerType {
2020
}
2121

2222
/**
23-
* Recurse through types to find any intermediate type or final type
24-
* that suggests the type is unlikely to be a string.
25-
* Specifically looking for any unsigned character, or datatype with name containing "byte"
26-
* or datatype uint8_t.
23+
* Given type `cur`, recurses through all intermediate types to find
24+
* any intermediate type equal to type `targ`
2725
*/
2826
predicate hasIntermediateType(Type cur, Type targ) {
2927
cur = targ

0 commit comments

Comments
 (0)