mirror of
https://github.com/github/codeql.git
synced 2026-02-15 22:43:43 +01:00
This PR separates the core cpp packs into `codeql/cpp-queries` and `codeql/cpp-all`. There are very few lines of code changed. Almost all changes are moving files around.
23 lines
673 B
Plaintext
23 lines
673 B
Plaintext
import cpp
|
|
|
|
/**
|
|
* DEPRECATED: use `semmle.code.cpp.models.implementations.Strcat.qll` instead.
|
|
*
|
|
* A function that concatenates the string from its second argument
|
|
* to the string from its first argument, for example `strcat`.
|
|
*/
|
|
class StrcatFunction extends Function {
|
|
StrcatFunction() {
|
|
getName() =
|
|
[
|
|
"strcat", // strcat(dst, src)
|
|
"strncat", // strncat(dst, src, max_amount)
|
|
"wcscat", // wcscat(dst, src)
|
|
"_mbscat", // _mbscat(dst, src)
|
|
"wcsncat", // wcsncat(dst, src, max_amount)
|
|
"_mbsncat", // _mbsncat(dst, src, max_amount)
|
|
"_mbsncat_l" // _mbsncat_l(dst, src, max_amount, locale)
|
|
]
|
|
}
|
|
}
|