Skip to content

Commit 2321ae9

Browse files
committed
CPP: Fix the test by adding PotentiallyDangerousFunction.
1 parent 0184505 commit 2321ae9

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

cpp/ql/test/query-tests/Security/CWE/CWE-242/semmle/tests/PotentialBufferOverflow.expected

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
| tests.cpp:112:9:112:12 | call to gets | gets does not guard against buffer overflow |
2-
| tests.cpp:249:2:249:5 | call to gets | gets does not guard against buffer overflow |
3-
| tests.cpp:250:2:250:5 | call to gets | gets does not guard against buffer overflow |
41
| tests.cpp:258:2:258:8 | call to sprintf | This conversion may yield a string of length 17, which exceeds the allocated buffer size of 10 |
52
| tests.cpp:259:2:259:8 | call to sprintf | This conversion may yield a string of length 17, which exceeds the allocated buffer size of 10 |
63
| tests.cpp:272:2:272:8 | call to sprintf | This conversion may yield a string of length 9, which exceeds the allocated buffer size of 8 |
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
| tests.cpp:112:9:112:12 | call to gets | gets does not guard against buffer overflow |
2+
| tests.cpp:249:2:249:5 | call to gets | gets does not guard against buffer overflow |
3+
| tests.cpp:250:2:250:5 | call to gets | gets does not guard against buffer overflow |
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Security/CWE/CWE-676/PotentiallyDangerousFunction.ql

0 commit comments

Comments
 (0)