Practically-infinite loop in MagickCore/image.c - SetImageBackgroundColor
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ImageMagick |
Fix Released
|
Unknown
|
|||
imagemagick (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
SetImageBackgro
for (y=0; y < (ssize_t) image->rows; y++)
{
register Quantum
*restrict q;
register ssize_t
x;
if (status == MagickFalse)
continue;
q=QueueCach
if (q == (Quantum *) NULL)
{
continue;
}
for (x=0; x < (ssize_t) image->columns; x++)
{
SetPixelV
q+
}
if (SyncCacheViewA
status=
}
this means it can execute the inner loop 2^31 times for each valid row, for a potential maximum of 2^62 iterations.
Changed in imagemagick (Ubuntu): | |
status: | New → Fix Released |
Changed in imagemagick: | |
status: | Unknown → Fix Released |
https:/ /github. com/ImageMagick /ImageMagick/ issues/ 27