moving i-- caused an array overrun w/ SIGSEGV
This commit is contained in:
parent
6248e11d0a
commit
7cb34040b0
1 changed files with 1 additions and 3 deletions
|
|
@ -3587,12 +3587,10 @@ hue_range_retry:;
|
|||
upper_hue_2 = upper_hue_1 - 2 * M_PI;
|
||||
}
|
||||
|
||||
while (i > 0)
|
||||
while (i--)
|
||||
{
|
||||
mc = work + i;
|
||||
|
||||
i--;
|
||||
|
||||
// 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) &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue