Peter Ujfalusi wrote: > We run the loop as long as the sample size is bigger than the requested > msbits. > + while (sample_sizes[i] > bits && i < ARRAY_SIZE(sample_sizes)) { This will overrun sample_sizes[] if bits < 8. Regards, Clemens