Skip to content

Commit 3b9daa2

Browse files
author
dilanbhalla
committed
added pr fixes
1 parent 263f007 commit 3b9daa2

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

cpp/ql/src/experimental/Security/CWE/CWE-120/MemoryUnsafeFunctionScan.qhelp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"qhelp.dtd">
44
<qhelp>
55
<overview>
6-
<p>It is bad practice to use any of the <code>scanf<code> functions without including a specified length within the format parameter, as it will be vulnerable to buffer overflows.</p>
6+
<p>It is bad practice to use any of the <code>scanf</code> functions without including a specified length within the format parameter, as it will be vulnerable to buffer overflows.</p>
77

88
</overview>
99

cpp/ql/src/experimental/Security/CWE/CWE-120/MemoryUnsafeFunctionScan.ql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* @description Use of one of the scanf functions without a specified length.
44
* @kind problem
55
* @problem.severity warning
6-
* @precision medium
76
* @id cpp/memory-unsafe-function-scan
87
* @tags reliability
98
* security
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
| MemoryUnsafeFunctionScan.cpp:13:5:13:9 | call to scanf | Dangerous use of one of the scanf functions |
2-
| MemoryUnsafeFunctionScan.cpp:21:5:21:10 | call to fscanf | Dangerous use of one of the scanf functions |
1+
| MemoryUnsafeFunctionScan.cpp:14:5:14:9 | call to scanf | Dangerous use of one of the scanf functions |
2+
| MemoryUnsafeFunctionScan.cpp:22:5:22:10 | call to fscanf | Dangerous use of one of the scanf functions |

0 commit comments

Comments
 (0)