C++: Fix Code Scanning error.

This commit is contained in:
Mathias Vorreiter Pedersen
2023-03-07 14:40:36 +00:00
parent 63690066c5
commit ce02de48a0

View File

@@ -42,8 +42,8 @@ class PotentiallyExposedSystemDataConfiguration extends TaintTracking::Configura
exists(OutputWrite ow, Expr child | child = ow.getASource().getAChild*() | exists(OutputWrite ow, Expr child | child = ow.getASource().getAChild*() |
// Most sinks receive a pointer as an argument (for example `printf`), // Most sinks receive a pointer as an argument (for example `printf`),
// and we use an indirect sink for those. // and we use an indirect sink for those.
// However, some sinks (for example `puts`) receive receive a single // However, some sinks (for example `puts`) receive a single character
// character as an argument. For those we have to use a direct sink. // as an argument. For those we have to use a direct sink.
if if
child.getUnspecifiedType() instanceof PointerType or child.getUnspecifiedType() instanceof PointerType or
child.getUnspecifiedType() instanceof ArrayType child.getUnspecifiedType() instanceof ArrayType