mirror of
https://github.com/github/codeql.git
synced 2026-04-26 01:05:15 +02:00
C++: Handle 'wchar_t' types that may be defined as unsigned short in C. This brings back SAMATE results.
This commit is contained in:
@@ -49,7 +49,9 @@ predicate cannotContainString(Type t) {
|
||||
not unspecified instanceof WideCharType and
|
||||
not unspecified instanceof Char8Type and
|
||||
not unspecified instanceof Char16Type and
|
||||
not unspecified instanceof Char32Type
|
||||
not unspecified instanceof Char32Type and
|
||||
// C often defines `wchar_t` as `unsigned short`
|
||||
unspecified = any(ShortType short | not short.isUnsigned())
|
||||
|
|
||||
unspecified instanceof ArithmeticType or
|
||||
unspecified instanceof BuiltInType
|
||||
|
||||
Reference in New Issue
Block a user