mirror of
https://github.com/github/codeql.git
synced 2025-12-23 20:26:32 +01:00
C++: Fix Code Scanning error.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user