Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(230)

Side by Side Diff: third_party/libtiff/0005-Leak-TIFFFetchStripThing.patch

Issue 2204793002: Fix a memory leak in libtiff. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/libtiff/README.pdfium » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 diff --git a/third_party/libtiff/tif_dirread.c b/third_party/libtiff/tif_dirread .c
2 index a0dc68b..5ef3264 100644
3 --- a/third_party/libtiff/tif_dirread.c
4 +++ b/third_party/libtiff/tif_dirread.c
5 @@ -5372,6 +5372,8 @@ TIFFFetchStripThing(TIFF* tif, TIFFDirEntry* dir, uint32 n strips, uint64** lpp)
6 static const char module[] = "TIFFFetchStripThing";
7 enum TIFFReadDirEntryErr err;
8 uint64* data;
9 + _TIFFfree(*lpp);
10 + *lpp = 0;
11 err=TIFFReadDirEntryLong8Array(tif,dir,&data);
12 if (err!=TIFFReadDirEntryErrOk)
13 {
OLDNEW
« no previous file with comments | « no previous file | third_party/libtiff/README.pdfium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698