Skip to content

Commit d6c3500

Browse files
committed
C++: Accept query test changes.
1 parent 874c200 commit d6c3500

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

cpp/ql/test/query-tests/Security/CWE/CWE-416/semmle/tests/IteratorToExpiredContainer/IteratorToExpiredContainer.expected

-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@
33
| test.cpp:702:27:702:27 | call to operator[] | This object is destroyed at the end of the full-expression. |
44
| test.cpp:727:23:727:23 | call to operator[] | This object is destroyed at the end of the full-expression. |
55
| test.cpp:735:23:735:23 | call to operator[] | This object is destroyed at the end of the full-expression. |
6-
| test.cpp:826:25:826:43 | pointer to ~HasBeginAndEnd output argument | This object is destroyed at the end of the full-expression. |

cpp/ql/test/query-tests/Security/CWE/CWE-416/semmle/tests/IteratorToExpiredContainer/test.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ void test6()
823823
{
824824
while(getBool())
825825
{
826-
for (const int& x : getHasBeginAndEnd()) // GOOD [FALSE POSITIVE]
826+
for (const int& x : getHasBeginAndEnd()) // GOOD
827827
{
828828
}
829829
}

0 commit comments

Comments
 (0)