Bug #14969 2008-12-26 20:14

dvice_null

profiler/cbprofilerexec.cpp:255: Array index out of bounds

In file src/plugins/contrib/profiler/cbprofilerexec.cpp:255:

Array spacePos is used out of its bounds:

Array is:

unsigned int spacePos[6] = {6, 16, 25, 34, 43, 52};

And yet it is used like this:

if (msg[n].Len() > spacePos[6]) {

If error is not obvious to someone, indexes start from 0, so last index in that array is 5.

Category
Plugin::Any
Group
 
Status
Closed
Close date
2009-04-19 15:14
Assigned to
biplab
biplab 2009-04-19 15:14

This bug is now fixed in HEAD.

Thank you for reporting it.