Skip to content

Commit 62a0bcd

Browse files
committed
C++: Fix the accept prototype in the dataflow taint tests
1 parent 5d2ab8a commit 62a0bcd

File tree

1 file changed

+2
-2
lines changed
  • cpp/ql/test/library-tests/dataflow/taint-tests

1 file changed

+2
-2
lines changed

cpp/ql/test/library-tests/dataflow/taint-tests/bsd.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ struct sockaddr {
99
char* sa_data;
1010
};
1111

12-
int accept(int, const sockaddr*, int*);
12+
int accept(int, sockaddr*, int*);
1313

1414
void sink(sockaddr);
1515

@@ -20,5 +20,5 @@ void test_accept() {
2020
int a = accept(s, &addr, &size);
2121

2222
sink(a); // $ ast=17:11 ir SPURIOUS: ast=18:12
23-
sink(addr); // $ ast,ir
23+
sink(addr); // $ ast=17:11 ir SPURIOUS: ast=18:12
2424
}

0 commit comments

Comments
 (0)