From 3334704ebcec6a8011fc5ef5d0904d6297a0b9ff Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Thu, 6 Feb 2020 01:25:03 +0100 Subject: [PATCH] tif_dirread.c: suppress CLang static Analyzer 9.0 false positive --- libtiff/tif_dirread.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libtiff/tif_dirread.c b/libtiff/tif_dirread.c index 59037c91..58f2eb53 100644 --- a/libtiff/tif_dirread.c +++ b/libtiff/tif_dirread.c @@ -5180,6 +5180,7 @@ TIFFFetchNormalTag(TIFF* tif, TIFFDirEntry* dp, int recover) if (err==TIFFReadDirEntryErrOk) { int m; + assert(data); /* avoid CLang static Analyzer false positive */ m=TIFFSetField(tif,dp->tdir_tag,data[0],data[1]); _TIFFfree(data); if (!m)