mirror of
https://github.com/github/codeql.git
synced 2026-04-26 17:25:19 +02:00
Fix syntax errors in qhelp files
This commit is contained in:
@@ -20,7 +20,9 @@ the initialization code is executed.
|
||||
</p>
|
||||
</recommendation>
|
||||
<example>
|
||||
<p>
|
||||
In the example below, <code>callCtr</code> is wrongly used before it has been initialized.
|
||||
</p>
|
||||
<sample src="GlobalUseBeforeInit.cpp" />
|
||||
</example>
|
||||
|
||||
|
||||
@@ -20,9 +20,11 @@ important system data (including the interrupt table in some architectures).
|
||||
|
||||
</recommendation>
|
||||
<example>
|
||||
<p>
|
||||
This code shows two examples where a pointer is dereferenced.
|
||||
The first example checks that the pointer is not null before dereferencing it.
|
||||
The second example fails to perform a nullness check, leading to a potential vulnerability in the code.
|
||||
</p>
|
||||
<sample src="InconsistentNullnessTesting.cpp" />
|
||||
</example>
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@ zero terminator into consideration.</li>
|
||||
<li><code>strcat</code> or <code>strncat</code> that use buffers that are too small to contain the new string.</li>
|
||||
</ul>
|
||||
</p>
|
||||
</overview>
|
||||
|
||||
<p>
|
||||
The highlighted expression will cause a buffer overflow because the buffer is too small to contain
|
||||
|
||||
Reference in New Issue
Block a user