зеркало из https://github.com/github/codeql.git
Fix qhelp
This commit is contained in:
Родитель
7d74125508
Коммит
138ce42cf6
|
@ -19,12 +19,12 @@
|
|||
of size <code>n</code> without further verification, potentially exhausting all the available
|
||||
memory.</p>
|
||||
|
||||
<sample src="UncontrolledAllocationSize.go" />
|
||||
<sample src="UncontrolledAllocationSizeBad.go" />
|
||||
|
||||
<p>One way to prevent this vulnerability is by implementing a maximum allowed value for the
|
||||
user-controlled input, as seen in the following example:</p>
|
||||
|
||||
<sample src="UncontrolledAllocationSize.go" />
|
||||
<sample src="UncontrolledAllocationSizeGood.go" />
|
||||
</example>
|
||||
|
||||
<references>
|
||||
|
|
Загрузка…
Ссылка в новой задаче