Skip to content

Commit 138ce42

Browse files
committed
Fix qhelp
1 parent 7d74125 commit 138ce42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

go/ql/src/Security/CWE-770/UncontrolledAllocationSize.qhelp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
of size <code>n</code> without further verification, potentially exhausting all the available
2020
memory.</p>
2121

22-
<sample src="UncontrolledAllocationSize.go" />
22+
<sample src="UncontrolledAllocationSizeBad.go" />
2323

2424
<p>One way to prevent this vulnerability is by implementing a maximum allowed value for the
2525
user-controlled input, as seen in the following example:</p>
2626

27-
<sample src="UncontrolledAllocationSize.go" />
27+
<sample src="UncontrolledAllocationSizeGood.go" />
2828
</example>
2929

3030
<references>

0 commit comments

Comments
 (0)