Skip to content
  • Even Rouault's avatar
    TIFFReadDirectory: fix OJPEG hack (fixes #319) · 87881e09
    Even Rouault authored
    to avoid having the size of the strip arrays inconsistent with the
    number of strips returned by TIFFNumberOfStrips(), which may cause
    out-ouf-bounds array read afterwards.
    
    One of the OJPEG hack that alters SamplesPerPixel may influence the
    number of strips. Hence compute tif_dir.td_nstrips only afterwards.
    87881e09