File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
cpp/ql/lib/semmle/code/cpp/models/implementations Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 11/**
2- * Provides an implementation class modeling the POSIX function `getenv`.
2+ * Provides an implementation class modeling the POSIX function `getenv` and
3+ * various similar functions.
34 */
45
56import cpp
67import semmle.code.cpp.models.interfaces.FlowSource
78
89/**
9- * The POSIX function `getenv`.
10+ * The POSIX function `getenv`, the GNU function `secure_getenv`, and the
11+ * Windows function `_wgetenv`.
1012 */
1113class Getenv extends LocalFlowSourceFunction {
12- Getenv ( ) { this .hasGlobalOrStdOrBslName ( "getenv" ) }
14+ Getenv ( ) {
15+ this .hasGlobalOrStdOrBslName ( "getenv" ) or this .hasGlobalName ( [ "secure_getenv" , "_wgetenv" ] )
16+ }
1317
1418 override predicate hasLocalFlowSource ( FunctionOutput output , string description ) {
1519 (
You can’t perform that action at this time.
0 commit comments