diff options
author | Lei Zhang <thestig@chromium.org> | 2017-03-20 15:46:06 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-03-21 13:12:16 +0000 |
commit | cfb6f46473777e444c8124318aa78d33aae64459 (patch) | |
tree | 272d17a7ba02251fd6d62a90c431e5af169af85a /third_party/libtiff/0020-unreasonable-td-bitspersample.patch | |
parent | 34a28b470a9a4d7c7edd04e9b6a1e02a7490e58b (diff) | |
download | pdfium-cfb6f46473777e444c8124318aa78d33aae64459.tar.xz |
Upgrade libtiff to 4.0.7.
Change-Id: If3f67767f738b7f23230ca8c37c9af2e31696e82
Reviewed-on: https://pdfium-review.googlesource.com/3117
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'third_party/libtiff/0020-unreasonable-td-bitspersample.patch')
-rw-r--r-- | third_party/libtiff/0020-unreasonable-td-bitspersample.patch | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/third_party/libtiff/0020-unreasonable-td-bitspersample.patch b/third_party/libtiff/0020-unreasonable-td-bitspersample.patch deleted file mode 100644 index 1ad5e34e3c..0000000000 --- a/third_party/libtiff/0020-unreasonable-td-bitspersample.patch +++ /dev/null @@ -1,22 +0,0 @@ -diff --git a/third_party/libtiff/tif_dirread.c b/third_party/libtiff/tif_dirread.c -index 0e3f8ccd4..e0403aef3 100644 ---- a/third_party/libtiff/tif_dirread.c -+++ b/third_party/libtiff/tif_dirread.c -@@ -3754,6 +3754,17 @@ TIFFReadDirectory(TIFF* tif) - fip ? fip->field_name : "unknown tagname"); - continue; - } -+ /* ColorMap or TransferFunction for high bit */ -+ /* depths do not make much sense and could be */ -+ /* used as a denial of service vector */ -+ if (tif->tif_dir.td_bitspersample > 24) -+ { -+ TIFFWarningExt(tif->tif_clientdata,module, -+ "Ignoring %s because BitsPerSample=%d>24", -+ fip ? fip->field_name : "unknown tagname", -+ tif->tif_dir.td_bitspersample); -+ continue; -+ } - countpersample=(1L<<tif->tif_dir.td_bitspersample); - if ((dp->tdir_tag==TIFFTAG_TRANSFERFUNCTION)&&(dp->tdir_count==(uint64)countpersample)) - { |