Suspicous code in kdelibs-3.5.2
ruurd at tiscali.nl
Wed Apr 5 18:44:16 BST 2006
On Wednesday 5 April 2006 19.08, Aaron J. Seigo wrote:
>> i+n easily reaches the array bound 16. For example if n == 15 and i ==
>> 14, then bm is accessed. This is way behind the array bound.
> false positive. it's a 16x16 array and the code is taking advantage of the
> fact that it's contiguous memory... so bm is actually the 15th element
> in the second "row"... fun.
The C++ standard does not say anything about arrays of arrays being in
contiguous memory, so this is not a false positive.
R.F. Pels, 3e Rompert 118, 5233 AL 's-Hertogenbosch, The Netherlands
+31736414590 ruurd at tiscali.nl http://home.tiscali.nl/~ruurd
More information about the kde-core-devel