Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a161ddd

Browse files
committed
C++: Accept test changes. These happen because these remote flow sources specify that the remote source is both 'isReturnValue' and 'isReturnValueDeref'.
1 parent 8722fb2 commit a161ddd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

cpp/ql/test/library-tests/dataflow/source-sink-tests/sources-and-sinks.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ char *secure_getenv(const char *name);
33
wchar_t *_wgetenv(const wchar_t *name);
44

55
void test_getenv() {
6-
void *var1 = getenv("VAR"); // $ local_source
7-
void *var2 = secure_getenv("VAR"); // $ local_source
8-
void *var3 = _wgetenv(L"VAR"); // $ local_source
6+
void *var1 = getenv("VAR"); // $ local_source=6:18 local_source=6:18
7+
void *var2 = secure_getenv("VAR"); // $ local_source=7:18 local_source=7:18
8+
void *var3 = _wgetenv(L"VAR"); // $ local_source=8:18 local_source=8:18
99
}
1010

1111
int send(int, const void*, int, int);

0 commit comments

Comments
 (0)