CPP: Rename good and bad example files.

This commit is contained in:
Geoffrey White 2019-11-12 14:09:54 +00:00
Родитель d198b56b3a
Коммит f50dd84c49
3 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -31,10 +31,10 @@ it to host byte order. The data is then used as an index in an array access expr
there is no validation that the data returned by <code>ntohl</code> is within the bounds of the array,
which could lead to reading outside the bounds of the buffer.
</p>
<sample src="NtohlArrayBad.cpp" />
<sample src="NtohlArrayNoBound-bad.cpp" />
<p>In the corrected example, the returned data is validated against the known size of the buffer,
before being used as an array index.</p>
<sample src="NtohlArrayGood.cpp" />
<sample src="NtohlArrayNoBound-good.cpp" />
</example>
<references>