03_directory_check.patch 845 B

1234567891011121314151617181920
  1. --- contrib/libs/libtiff/tif_dirread.c (index)
  2. +++ contrib/libs/libtiff/tif_dirread.c (working tree)
  3. @@ -5121,7 +5121,7 @@ int TIFFReadCustomDirectory(TIFF *tif, toff_t diroff,
  4. dircount = TIFFFetchDirectory(tif, diroff, &dir, NULL);
  5. if (!dircount)
  6. {
  7. - TIFFErrorExtR(tif, module,
  8. + TIFFWarningExtR(tif, module,
  9. "Failed to read custom directory at offset %" PRIu64,
  10. diroff);
  11. return 0;
  12. @@ -5916,7 +5916,7 @@ static uint16_t TIFFFetchDirectory(TIFF *tif, uint64_t diroff,
  13. }
  14. if (dircount16 == 0)
  15. {
  16. - TIFFErrorExtR(tif, module,
  17. + TIFFWarningExtR(tif, module,
  18. "Sanity check on directory count failed, zero tag "
  19. "directories not supported");
  20. return 0;