You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cpp/ql/src/experimental/Security/CWE/CWE-754/ImproperCheckReturnValueScanf.qhelp
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,12 @@
4
4
<qhelp>
5
5
<overview>
6
6
<p>Working with reading data without validation procedures and with uninitialized arguments can lead to unpredictable consequences.</p>
7
+
</overview>
7
8
9
+
<recommendation>
10
+
<p>
11
+
The user should check the return value of `scanf` and related functions and check that any additional argument was assigned a value before reading the additional argument.
12
+
</p>
8
13
</recommendation>
9
14
<example>
10
15
<p>The following example demonstrates erroneous and corrected work with a function call.</p>
0 commit comments