C++: Model BSL in Getenv.qll.

This commit is contained in:
Geoffrey White
2021-02-16 17:56:48 +00:00
parent 735e014b43
commit e17d539883

View File

@@ -9,7 +9,7 @@ import semmle.code.cpp.models.interfaces.FlowSource
* The POSIX function `getenv`.
*/
class Getenv extends LocalFlowSourceFunction {
Getenv() { this.hasGlobalName("getenv") }
Getenv() { this.hasGlobalOrStdOrBslName("getenv") }
override predicate hasLocalFlowSource(FunctionOutput output, string description) {
(