Branch: Tag:

2015-08-24

2015-08-24 13:34:20 by Martin Nilsson <nilsson@fastmail.com>

Confine the EXIF parsing in its JFIF segment.

1176:    default:    int size;    sscanf(file->read(2), "%2c", size); -  if( marker==0xe1 && file->read(6) == "Exif\0\0" ) break loop; +  if( marker==0xe1 && file->read(6) == "Exif\0\0" ) +  { +  file = Stdio.FakeFile(file->read(size-2-6)); +  break loop; +  }    file->read(size-2);    continue;    }