Branch: Tag:

2015-10-12

2015-10-12 21:36:22 by Martin Nilsson <nilsson@fastmail.com>

Don't support infinite looping in exif data.

1193:    if(!tiff->is_valid()) return 0;       mapping ret = ([]); +  multiset seent = (<>);       int offset=tiff->read_long(); -  +  seent[offset]=1;    while(offset>0)    {    tiff->exif_seek(offset);
1206:       if(offset == 0 && ret["ExifOffset"])    offset=(int)m_delete(ret, "ExifOffset"); +  +  if( seent[offset] ) return ret; +  seent[offset]=1;    }       return ret;   }