Skip to content

Commit e0140f9

Browse files
committed
CPP: Change some uses of WideCharType to Wchar_t.
1 parent ecf8e5d commit e0140f9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cpp/ql/src/Likely Bugs/Format/NonConstantFormat.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ predicate stringType(Type t, Type charType) {
2525
charType = t.(ArrayType).getBaseType()
2626
) and (
2727
charType.getUnspecifiedType() instanceof CharType or
28-
charType.getUnspecifiedType() instanceof WideCharType
28+
charType.getUnspecifiedType() instanceof Wchar_t
2929
)
3030
)
3131
or

cpp/ql/src/Security/CWE/CWE-676/DangerousUseOfCin.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import cpp
1919
class AnyCharPointerType extends PointerType {
2020
AnyCharPointerType() {
2121
this.getBaseType().getUnderlyingType() instanceof CharType or
22-
this.getBaseType().getUnderlyingType() instanceof WideCharType
22+
this.getBaseType().getUnderlyingType() instanceof Wchar_t
2323
}
2424
}
2525

@@ -29,7 +29,7 @@ class AnyCharPointerType extends PointerType {
2929
class AnyCharArrayType extends ArrayType {
3030
AnyCharArrayType() {
3131
this.getBaseType().getUnderlyingType() instanceof CharType or
32-
this.getBaseType().getUnderlyingType() instanceof WideCharType
32+
this.getBaseType().getUnderlyingType() instanceof Wchar_t
3333
}
3434
}
3535

0 commit comments

Comments
 (0)