CodeQL library for C/C++
codeql/cpp-all 2.1.2-dev (changelog, source)
Search

Module FileWrite

Provides classes for modeling writing of data to files through various standard mechanisms such as fprintf, fwrite and operator<<.

Import path

import semmle.code.cpp.security.FileWrite

Imports

cpp

Provides classes and predicates for working with C/C++ code.

Classes

BasicOStreamCall

A call to a member of std::basic_ostream, or something related, or a call with one of those objects as the first parameter.

BasicOStreamClass

A std::basic_ostream class, or something that can be used as one.

ChainedOutputCall

Output by a function that can be chained, such as operator<<.

FileWrite

A function call that writes to a file.

OperatorLShiftCall

A call to operator<< on an output stream.

PutFunctionCall

A call to ‘put’.

WriteFunctionCall

A call to ‘write’.