Hi,
we found a possible overflow in cmsBuildTabulatedToneCurveFloat when fuzzing.
As described in doc, for using the API cmsBuildTabulatedToneCurveFloat, the parameter nEntries should be the number of sample points. However, if the passed nEntries is zero, an unintended overflow will happen in cmsBuildTabulatedToneCurveFloat, caused by the following code:
Seg[2].Params[3] = values[nEntries-1];
Maybe it is good to ensure nEntries is greater than zero in cmsBuildTabulatedToneCurveFloat or tell people in doc that nEntries should be greater than zero.
Hi, we found a possible overflow in
cmsBuildTabulatedToneCurveFloat
when fuzzing.As described in doc, for using the API
cmsBuildTabulatedToneCurveFloat
, the parameternEntries
should be the number of sample points. However, if the passednEntries
is zero, an unintended overflow will happen incmsBuildTabulatedToneCurveFloat
, caused by the following code:Maybe it is good to ensure
nEntries
is greater than zero incmsBuildTabulatedToneCurveFloat
or tell people in doc thatnEntries
should be greater than zero.Thanks for your time.