Xee (1000)

727 Name: Anonymous : 2007-10-29 00:41 ID:tVDkSUSX (Image: 160x389 jpg, 30 kb) [Del]

src/1193643709670.jpg: 160x389, 30 kb

Found a bug in Xee that was causing it to go into an infinite loop on the attached image. It gets stuck in the EXIF IFD parsing code. This image that was cropped in Photoshop CS2 looks like it has at least one bad IFD that has a "next" field that references itself. I changed the code to break out if it encounters this situation.

In exifutils.c readifds:

u_int32_t newOffset = offset;
do {

    offset = newOffset;
newOffset = readifd(offset, &(curifd->next), tagset, md);
curifd = curifd->next;

} while (offset && offset != newOffset);

I figured that was better than hanging. But it's possible I've totally misunderstood the problem.

This thread has been closed. You cannot post in this thread any longer.