Skip to content

Commit 978fc49

Browse files
author
Felicity Chapman
committed
Fix syntax errors in qhelp files
1 parent 72ac2e5 commit 978fc49

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

cpp/ql/src/Critical/GlobalUseBeforeInit.qhelp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ the initialization code is executed.
2020
</p>
2121
</recommendation>
2222
<example>
23+
<p>
2324
In the example below, <code>callCtr</code> is wrongly used before it has been initialized.
25+
</p>
2426
<sample src="GlobalUseBeforeInit.cpp" />
2527
</example>
2628

cpp/ql/src/Critical/InconsistentNullnessTesting.qhelp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ important system data (including the interrupt table in some architectures).
2020

2121
</recommendation>
2222
<example>
23+
<p>
2324
This code shows two examples where a pointer is dereferenced.
2425
The first example checks that the pointer is not null before dereferencing it.
2526
The second example fails to perform a nullness check, leading to a potential vulnerability in the code.
27+
</p>
2628
<sample src="InconsistentNullnessTesting.cpp" />
2729
</example>
2830

cpp/ql/src/Critical/OverflowCalculated.qhelp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ zero terminator into consideration.</li>
1313
<li><code>strcat</code> or <code>strncat</code> that use buffers that are too small to contain the new string.</li>
1414
</ul>
1515
</p>
16+
</overview>
1617

1718
<p>
1819
The highlighted expression will cause a buffer overflow because the buffer is too small to contain

0 commit comments

Comments
 (0)