-
In the multi-color autotrace mode, max scans is used to set the
color_countvalue. It determines the number of colors a color bitmap is reduced to. The allowed values are 1 to 256. -
The crash occurred because of incrementing scans value by 1 in multi-color autotrace mode while invoking setColorCount. Since, the maximum value allowed for the scan adjustment is 256, this'd result in color count being set to 257. Hence, resulting in a crash because of out of range value.
Fixes: #5475
| Before | After |
|---|---|

























