moving i-- caused an array overrun w/ SIGSEGV

This commit is contained in:
Albert Cahalan 2004-12-12 19:38:43 +00:00
parent 6248e11d0a
commit 7cb34040b0

View file

@ -3587,12 +3587,10 @@ hue_range_retry:;
upper_hue_2 = upper_hue_1 - 2 * M_PI; upper_hue_2 = upper_hue_1 - 2 * M_PI;
} }
while (i > 0) while (i--)
{ {
mc = work + i; mc = work + i;
i--;
// if not in the first range, and not in the second range, skip this one // if not in the first range, and not in the second range, skip this one
// //
if ((mc->hue<lower_hue_1 || mc->hue>upper_hue_1) && if ((mc->hue<lower_hue_1 || mc->hue>upper_hue_1) &&