Skip to content

Commit 35b7808

Browse files
committed
C++: Fix wrong comment on what is tested
1 parent 92804a3 commit 35b7808

File tree

1 file changed

+1
-1
lines changed
  • cpp/ql/test/query-tests/Security/CWE/CWE-119/semmle/tests

1 file changed

+1
-1
lines changed

cpp/ql/test/query-tests/Security/CWE/CWE-119/semmle/tests/tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ void test6(bool cond)
114114

115115
c = 100;
116116
buffer[c] = 'x'; // BAD: over-write [NOT DETECTED]
117-
ch = buffer[c]; // BAD: under-read [NOT DETECTED]
117+
ch = buffer[c]; // BAD: over-read [NOT DETECTED]
118118

119119
d = 0;
120120
d = 1000;

0 commit comments

Comments
 (0)