We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d2b85f commit eabc69bCopy full SHA for eabc69b
cpp/ql/src/semmle/code/cpp/models/implementations/Getenv.qll
@@ -1,18 +1,17 @@
1
/**
2
* Provides an implementation class modeling the POSIX function `getenv`.
3
*/
4
+
5
import cpp
6
import semmle.code.cpp.models.interfaces.FlowSource
7
8
9
* The POSIX function `getenv`.
10
11
class Getenv extends LocalFlowFunction {
- Getenv() {
12
- this.hasGlobalName("getenv")
13
- }
+ Getenv() { this.hasGlobalName("getenv") }
14
15
- override predicate hasLocalFlowSource (FunctionOutput output, string description) {
+ override predicate hasLocalFlowSource(FunctionOutput output, string description) {
16
(
17
output.isReturnValueDeref() or
18
output.isReturnValue()
0 commit comments