CPP: Add tests for incorrect check scanf

This commit is contained in:
Alex Eyers-Taylor
2023-11-24 16:58:11 +00:00
parent 12e24a2b44
commit 1c012548d4
2 changed files with 6 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
| test.cpp:162:7:162:11 | call to scanf | The result of scanf is onyl checkeck against 0, but it can also return EOF. |
| test.cpp:171:7:171:11 | call to scanf | The result of scanf is onyl checkeck against 0, but it can also return EOF. |
| test.cpp:204:7:204:11 | call to scanf | The result of scanf is onyl checkeck against 0, but it can also return EOF. |
| test.cpp:436:7:436:11 | call to scanf | The result of scanf is onyl checkeck against 0, but it can also return EOF. |
| test.cpp:443:11:443:15 | call to scanf | The result of scanf is onyl checkeck against 0, but it can also return EOF. |

View File

@@ -0,0 +1 @@
Critical/IncorrectCheckScanf.ql