heurisko bug no. 6092

This applies to heurisko 5.1.0 and higher.


Histograms of integer objects may crash heurisko.


An internal case differentiation does not set a needed parameter correctly for all cases. If the number of bins is equal to the width of the range for which the histogram is computed and if the lower range bound is 0 and if the higher range bound is smaller than the maximum data value, then the histogram function jumps into wrong code and writes to memory locations beyond the histogram buffer.


If you need to compute a histogram of an integer object, avoid the number of bins to be equal to (upper range bound - lower range bound) or avoid the upper range bound to be smaller than the largest value in the data.


Back to overview