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

Module StringConcatenation

A library for detecting general string concatenations.

Import path

import semmle.code.cpp.commons.StringConcatenation

Imports

FormattingFunction

Provides a class for modeling printf-style formatting functions. To use this QL library, create a QL class extending FormattingFunction with a characteristic predicate that selects the function or set of functions you are modeling. Within that class, override the predicates provided by FormattingFunction to match the flow within that function.

Strcat

Provides implementation classes modeling strcat and various similar functions. See semmle.code.cpp.models.Models for usage information.

cpp

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

Classes

StringConcatenation

A call that performs a string concatenation. A string can be either a C string (i.e., a value of type char*), or a C++ string (i.e., a value of type std::string).