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*() |
// Most sinks receive a pointer as an argument (for example `printf`),
// and we use an indirect sink for those.
// However, some sinks (for example `puts`) receive receive a single
// character as an argument. For those we have to use a direct sink.
// However, some sinks (for example `puts`) receive a single character
// as an argument. For those we have to use a direct sink.
if
child.getUnspecifiedType() instanceof PointerType or
child.getUnspecifiedType() instanceof ArrayType