diff options
author | thestig <thestig@chromium.org> | 2016-08-01 19:36:27 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-01 19:36:27 -0700 |
commit | 8f7970040548ff3550ce450944d39d4660b3d918 (patch) | |
tree | 2a94b8a8911303874bfe544384fe1c9c5cd5141c /third_party/libtiff/0005-Leak-TIFFFetchStripThing.patch | |
parent | 2d7ab183976259dd9f428bfe3e10966fdd3e5f65 (diff) | |
download | pdfium-8f7970040548ff3550ce450944d39d4660b3d918.tar.xz |
Fix a memory leak in libtiff.
BUG=633387
Review-Url: https://codereview.chromium.org/2204793002
Diffstat (limited to 'third_party/libtiff/0005-Leak-TIFFFetchStripThing.patch')
-rw-r--r-- | third_party/libtiff/0005-Leak-TIFFFetchStripThing.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/third_party/libtiff/0005-Leak-TIFFFetchStripThing.patch b/third_party/libtiff/0005-Leak-TIFFFetchStripThing.patch new file mode 100644 index 0000000000..0f9b16873f --- /dev/null +++ b/third_party/libtiff/0005-Leak-TIFFFetchStripThing.patch @@ -0,0 +1,13 @@ +diff --git a/third_party/libtiff/tif_dirread.c b/third_party/libtiff/tif_dirread.c +index a0dc68b..5ef3264 100644 +--- a/third_party/libtiff/tif_dirread.c ++++ b/third_party/libtiff/tif_dirread.c +@@ -5372,6 +5372,8 @@ TIFFFetchStripThing(TIFF* tif, TIFFDirEntry* dir, uint32 nstrips, uint64** lpp) + static const char module[] = "TIFFFetchStripThing"; + enum TIFFReadDirEntryErr err; + uint64* data; ++ _TIFFfree(*lpp); ++ *lpp = 0; + err=TIFFReadDirEntryLong8Array(tif,dir,&data); + if (err!=TIFFReadDirEntryErrOk) + { |