mirror of
https://github.com/github/codeql.git
synced 2025-12-22 11:46:32 +01:00
Update cpp/ql/lib/semmle/code/cpp/commons/StringConcatenation.qll
Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com>
This commit is contained in:
@@ -7,6 +7,11 @@ import semmle.code.cpp.models.implementations.Strcat
|
|||||||
import semmle.code.cpp.models.interfaces.FormattingFunction
|
import semmle.code.cpp.models.interfaces.FormattingFunction
|
||||||
private import semmle.code.cpp.dataflow.new.DataFlow
|
private import semmle.code.cpp.dataflow.new.DataFlow
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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`).
|
||||||
|
*/
|
||||||
class StringConcatenation extends Call {
|
class StringConcatenation extends Call {
|
||||||
StringConcatenation() {
|
StringConcatenation() {
|
||||||
// sprintf-like functions, i.e., concat through formatting
|
// sprintf-like functions, i.e., concat through formatting
|
||||||
|
|||||||
Reference in New Issue
Block a user