libtiff-4.7.0-9.fc44

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
tiff-4.7.0/contrib/addtiffo/tif_overview.c:195:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘padfSamples’
tiff-4.7.0/contrib/addtiffo/tif_overview.c:590:6: enter_function: entry to ‘TIFF_ProcessFullResBlock’
tiff-4.7.0/contrib/addtiffo/tif_overview.c:602:23: branch_true: following ‘true’ branch (when ‘iSample < nSamples’)...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:609:13: branch_true: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:609:12: branch_true: following ‘true’ branch...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:611:17: branch_true: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:629:29: branch_true: following ‘true’ branch (when ‘iOverview < nOverviews’)...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:631:45: branch_true: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:645:16: branch_false: following ‘false’ branch (when ‘bSubsampled == 0’)...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:670:29: branch_false: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:683:17: branch_true: following ‘true’ branch...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:684:20: branch_true: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:684:20: branch_false: following ‘false’ branch (when ‘nPlanarConfig != 2’)...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:691:49: branch_false: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:701:17: call_function: calling ‘TIFF_DownSample’ from ‘TIFF_ProcessFullResBlock’
#  193|               if (nSampleFormat == SAMPLEFORMAT_UINT && nPixelBytes == 1)
#  194|               {
#  195|->                 padfSamples[iSample++] = *pabyData;
#  196|               }
#  197|               else if (nSampleFormat == SAMPLEFORMAT_UINT && nPixelBytes == 2)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def2]
tiff-4.7.0/contrib/addtiffo/tif_overview.c:199:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘padfSamples’
tiff-4.7.0/contrib/addtiffo/tif_overview.c:590:6: enter_function: entry to ‘TIFF_ProcessFullResBlock’
tiff-4.7.0/contrib/addtiffo/tif_overview.c:602:23: branch_true: following ‘true’ branch (when ‘iSample < nSamples’)...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:609:13: branch_true: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:609:12: branch_true: following ‘true’ branch...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:611:17: branch_true: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:629:29: branch_true: following ‘true’ branch (when ‘iOverview < nOverviews’)...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:631:45: branch_true: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:645:16: branch_false: following ‘false’ branch (when ‘bSubsampled == 0’)...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:670:29: branch_false: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:683:17: branch_true: following ‘true’ branch...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:684:20: branch_true: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:684:20: branch_false: following ‘false’ branch (when ‘nPlanarConfig != 2’)...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:691:49: branch_false: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:701:17: call_function: calling ‘TIFF_DownSample’ from ‘TIFF_ProcessFullResBlock’
#  197|               else if (nSampleFormat == SAMPLEFORMAT_UINT && nPixelBytes == 2)
#  198|               {
#  199|->                 padfSamples[iSample++] = ((uint16_t *)pabyData)[0];
#  200|               }
#  201|               else if (nSampleFormat == SAMPLEFORMAT_UINT && nPixelBytes == 4)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def3]
tiff-4.7.0/contrib/addtiffo/tif_overview.c:203:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘padfSamples’
tiff-4.7.0/contrib/addtiffo/tif_overview.c:590:6: enter_function: entry to ‘TIFF_ProcessFullResBlock’
tiff-4.7.0/contrib/addtiffo/tif_overview.c:602:23: branch_true: following ‘true’ branch (when ‘iSample < nSamples’)...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:609:13: branch_true: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:609:12: branch_true: following ‘true’ branch...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:611:17: branch_true: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:629:29: branch_true: following ‘true’ branch (when ‘iOverview < nOverviews’)...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:631:45: branch_true: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:645:16: branch_false: following ‘false’ branch (when ‘bSubsampled == 0’)...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:670:29: branch_false: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:683:17: branch_true: following ‘true’ branch...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:684:20: branch_true: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:684:20: branch_false: following ‘false’ branch (when ‘nPlanarConfig != 2’)...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:691:49: branch_false: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:701:17: call_function: calling ‘TIFF_DownSample’ from ‘TIFF_ProcessFullResBlock’
#  201|               else if (nSampleFormat == SAMPLEFORMAT_UINT && nPixelBytes == 4)
#  202|               {
#  203|->                 padfSamples[iSample++] = ((uint32_t *)pabyData)[0];
#  204|               }
#  205|               else if (nSampleFormat == SAMPLEFORMAT_INT && nPixelBytes == 2)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def4]
tiff-4.7.0/contrib/addtiffo/tif_overview.c:207:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘padfSamples’
tiff-4.7.0/contrib/addtiffo/tif_overview.c:590:6: enter_function: entry to ‘TIFF_ProcessFullResBlock’
tiff-4.7.0/contrib/addtiffo/tif_overview.c:602:23: branch_true: following ‘true’ branch (when ‘iSample < nSamples’)...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:609:13: branch_true: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:609:12: branch_true: following ‘true’ branch...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:611:17: branch_true: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:629:29: branch_true: following ‘true’ branch (when ‘iOverview < nOverviews’)...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:631:45: branch_true: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:645:16: branch_false: following ‘false’ branch (when ‘bSubsampled == 0’)...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:670:29: branch_false: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:683:17: branch_true: following ‘true’ branch...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:684:20: branch_true: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:684:20: branch_false: following ‘false’ branch (when ‘nPlanarConfig != 2’)...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:691:49: branch_false: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:701:17: call_function: calling ‘TIFF_DownSample’ from ‘TIFF_ProcessFullResBlock’
#  205|               else if (nSampleFormat == SAMPLEFORMAT_INT && nPixelBytes == 2)
#  206|               {
#  207|->                 padfSamples[iSample++] = ((int16_t *)pabyData)[0];
#  208|               }
#  209|               else if (nSampleFormat == SAMPLEFORMAT_INT && nPixelBytes == 32)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def5]
tiff-4.7.0/contrib/addtiffo/tif_overview.c:211:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘padfSamples’
tiff-4.7.0/contrib/addtiffo/tif_overview.c:590:6: enter_function: entry to ‘TIFF_ProcessFullResBlock’
tiff-4.7.0/contrib/addtiffo/tif_overview.c:602:23: branch_true: following ‘true’ branch (when ‘iSample < nSamples’)...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:609:13: branch_true: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:609:12: branch_true: following ‘true’ branch...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:611:17: branch_true: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:629:29: branch_true: following ‘true’ branch (when ‘iOverview < nOverviews’)...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:631:45: branch_true: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:645:16: branch_false: following ‘false’ branch (when ‘bSubsampled == 0’)...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:670:29: branch_false: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:683:17: branch_true: following ‘true’ branch...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:684:20: branch_true: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:684:20: branch_false: following ‘false’ branch (when ‘nPlanarConfig != 2’)...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:691:49: branch_false: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:701:17: call_function: calling ‘TIFF_DownSample’ from ‘TIFF_ProcessFullResBlock’
#  209|               else if (nSampleFormat == SAMPLEFORMAT_INT && nPixelBytes == 32)
#  210|               {
#  211|->                 padfSamples[iSample++] = ((int32_t *)pabyData)[0];
#  212|               }
#  213|               else if (nSampleFormat == SAMPLEFORMAT_IEEEFP && nPixelBytes == 4)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def6]
tiff-4.7.0/contrib/addtiffo/tif_overview.c:215:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘padfSamples’
tiff-4.7.0/contrib/addtiffo/tif_overview.c:590:6: enter_function: entry to ‘TIFF_ProcessFullResBlock’
tiff-4.7.0/contrib/addtiffo/tif_overview.c:602:23: branch_true: following ‘true’ branch (when ‘iSample < nSamples’)...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:609:13: branch_true: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:609:12: branch_true: following ‘true’ branch...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:611:17: branch_true: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:629:29: branch_true: following ‘true’ branch (when ‘iOverview < nOverviews’)...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:631:45: branch_true: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:645:16: branch_false: following ‘false’ branch (when ‘bSubsampled == 0’)...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:670:29: branch_false: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:683:17: branch_true: following ‘true’ branch...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:684:20: branch_true: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:684:20: branch_false: following ‘false’ branch (when ‘nPlanarConfig != 2’)...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:691:49: branch_false: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:701:17: call_function: calling ‘TIFF_DownSample’ from ‘TIFF_ProcessFullResBlock’
#  213|               else if (nSampleFormat == SAMPLEFORMAT_IEEEFP && nPixelBytes == 4)
#  214|               {
#  215|->                 padfSamples[iSample++] = ((float *)pabyData)[0];
#  216|               }
#  217|               else if (nSampleFormat == SAMPLEFORMAT_IEEEFP && nPixelBytes == 8)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def7]
tiff-4.7.0/contrib/addtiffo/tif_overview.c:219:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘padfSamples’
tiff-4.7.0/contrib/addtiffo/tif_overview.c:590:6: enter_function: entry to ‘TIFF_ProcessFullResBlock’
tiff-4.7.0/contrib/addtiffo/tif_overview.c:602:23: branch_true: following ‘true’ branch (when ‘iSample < nSamples’)...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:609:13: branch_true: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:609:12: branch_true: following ‘true’ branch...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:611:17: branch_true: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:629:29: branch_true: following ‘true’ branch (when ‘iOverview < nOverviews’)...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:631:45: branch_true: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:645:16: branch_false: following ‘false’ branch (when ‘bSubsampled == 0’)...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:670:29: branch_false: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:683:17: branch_true: following ‘true’ branch...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:684:20: branch_true: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:684:20: branch_false: following ‘false’ branch (when ‘nPlanarConfig != 2’)...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:691:49: branch_false: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:701:17: call_function: calling ‘TIFF_DownSample’ from ‘TIFF_ProcessFullResBlock’
#  217|               else if (nSampleFormat == SAMPLEFORMAT_IEEEFP && nPixelBytes == 8)
#  218|               {
#  219|->                 padfSamples[iSample++] = ((double *)pabyData)[0];
#  220|               }
#  221|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def8]
tiff-4.7.0/contrib/addtiffo/tif_overview.c:379:32: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘padfSamples’
tiff-4.7.0/contrib/addtiffo/tif_overview.c:590:6: enter_function: entry to ‘TIFF_ProcessFullResBlock’
tiff-4.7.0/contrib/addtiffo/tif_overview.c:602:23: branch_true: following ‘true’ branch (when ‘iSample < nSamples’)...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:609:13: branch_true: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:609:12: branch_true: following ‘true’ branch...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:611:17: branch_true: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:629:29: branch_true: following ‘true’ branch (when ‘iOverview < nOverviews’)...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:631:45: branch_true: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:645:16: branch_false: following ‘false’ branch (when ‘bSubsampled == 0’)...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:670:29: branch_false: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:683:17: branch_true: following ‘true’ branch...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:684:20: branch_true: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:684:20: branch_false: following ‘false’ branch (when ‘nPlanarConfig != 2’)...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:691:49: branch_false: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:701:17: call_function: calling ‘TIFF_DownSample’ from ‘TIFF_ProcessFullResBlock’
#  377|                   for (iSample = 0; iSample < nXSize * nYSize; iSample++)
#  378|                   {
#  379|->                     dfTotal += padfSamples[iSample];
#  380|                   }
#  381|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def9]
tiff-4.7.0/contrib/addtiffo/tif_overview.c:379:32: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
tiff-4.7.0/contrib/addtiffo/tif_overview.c:590:6: enter_function: entry to ‘TIFF_ProcessFullResBlock’
tiff-4.7.0/contrib/addtiffo/tif_overview.c:602:23: branch_true: following ‘true’ branch (when ‘iSample < nSamples’)...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:609:13: branch_true: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:609:12: branch_true: following ‘true’ branch...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:611:17: branch_true: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:629:29: branch_true: following ‘true’ branch (when ‘iOverview < nOverviews’)...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:631:45: branch_true: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:645:16: branch_false: following ‘false’ branch (when ‘bSubsampled == 0’)...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:670:29: branch_false: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:683:17: branch_true: following ‘true’ branch...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:684:20: branch_true: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:684:20: branch_false: following ‘false’ branch (when ‘nPlanarConfig != 2’)...
tiff-4.7.0/contrib/addtiffo/tif_overview.c:691:49: branch_false: ...to here
tiff-4.7.0/contrib/addtiffo/tif_overview.c:701:17: call_function: calling ‘TIFF_DownSample’ from ‘TIFF_ProcessFullResBlock’
#  377|                   for (iSample = 0; iSample < nXSize * nYSize; iSample++)
#  378|                   {
#  379|->                     dfTotal += padfSamples[iSample];
#  380|                   }
#  381|   

Error: CPPCHECK_WARNING (CWE-476): [#def10]
tiff-4.7.0/contrib/dbs/tiff-bi.c:64: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: scan_line
#   62|   
#   63|       for (i = 0; i < (WIDTH / 8) / 2; i++)
#   64|->         scan_line[i] = 0;
#   65|   
#   66|       for (i = (WIDTH / 8) / 2; i < (WIDTH / 8); i++)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def11]
tiff-4.7.0/contrib/dbs/tiff-bi.c:64:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘scan_line’
tiff-4.7.0/contrib/dbs/tiff-bi.c:39:8: branch_false: following ‘false’ branch (when ‘argc == 2’)...
tiff-4.7.0/contrib/dbs/tiff-bi.c:45:16: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-bi.c:45:8: branch_false: following ‘false’ branch...
tiff-4.7.0/contrib/dbs/tiff-bi.c:51:5: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-bi.c:61:34: acquire_memory: this call could return NULL
tiff-4.7.0/contrib/dbs/tiff-bi.c:63:17: branch_true: following ‘true’ branch (when ‘i != 32’)...
tiff-4.7.0/contrib/dbs/tiff-bi.c:64:18: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-bi.c:64:9: danger: ‘scan_line + (sizetype)i’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#   62|   
#   63|       for (i = 0; i < (WIDTH / 8) / 2; i++)
#   64|->         scan_line[i] = 0;
#   65|   
#   66|       for (i = (WIDTH / 8) / 2; i < (WIDTH / 8); i++)

Error: CPPCHECK_WARNING (CWE-476): [#def12]
tiff-4.7.0/contrib/dbs/tiff-bi.c:67: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: scan_line
#   65|   
#   66|       for (i = (WIDTH / 8) / 2; i < (WIDTH / 8); i++)
#   67|->         scan_line[i] = 255;
#   68|   
#   69|       for (i = 0; i < HEIGHT / 2; i++)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def13]
tiff-4.7.0/contrib/dbs/tiff-bi.c:70:9: warning[-Wanalyzer-malloc-leak]: leak of ‘scan_line’
tiff-4.7.0/contrib/dbs/tiff-bi.c:39:8: branch_false: following ‘false’ branch (when ‘argc == 2’)...
tiff-4.7.0/contrib/dbs/tiff-bi.c:45:16: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-bi.c:45:8: branch_false: following ‘false’ branch...
tiff-4.7.0/contrib/dbs/tiff-bi.c:51:5: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-bi.c:61:34: acquire_memory: allocated here
tiff-4.7.0/contrib/dbs/tiff-bi.c:63:17: branch_true: following ‘true’ branch (when ‘i != 32’)...
tiff-4.7.0/contrib/dbs/tiff-bi.c:64:18: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-bi.c:63:17: branch_true: following ‘true’ branch (when ‘i != 32’)...
tiff-4.7.0/contrib/dbs/tiff-bi.c:64:18: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-bi.c:66:31: branch_true: following ‘true’ branch (when ‘i != 64’)...
tiff-4.7.0/contrib/dbs/tiff-bi.c:67:18: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-bi.c:69:17: branch_true: following ‘true’ branch (when ‘i != 256’)...
tiff-4.7.0/contrib/dbs/tiff-bi.c:70:9: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-bi.c:70:9: danger: ‘scan_line’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#   68|   
#   69|       for (i = 0; i < HEIGHT / 2; i++)
#   70|->         TIFFWriteScanline(tif, scan_line, i, 0);
#   71|   
#   72|       for (i = 0; i < (WIDTH / 8) / 2; i++)

Error: CPPCHECK_WARNING (CWE-476): [#def14]
tiff-4.7.0/contrib/dbs/tiff-bi.c:73: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: scan_line
#   71|   
#   72|       for (i = 0; i < (WIDTH / 8) / 2; i++)
#   73|->         scan_line[i] = 255;
#   74|   
#   75|       for (i = (WIDTH / 8) / 2; i < (WIDTH / 8); i++)

Error: CPPCHECK_WARNING (CWE-476): [#def15]
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:79: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: gray
#   77|       gray = (uint16_t *)malloc(cmsize * sizeof(uint16_t));
#   78|   
#   79|->     gray[0] = 3000;
#   80|       for (i = 1; i < cmsize; i++)
#   81|           gray[i] = (uint16_t)(-log10((double)i / (cmsize - 1)) * 1000);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def16]
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:79:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘gray’
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:50:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:53:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:53:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:54:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:77:24: acquire_memory: this call could return NULL
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:79:5: danger: ‘gray’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#   77|       gray = (uint16_t *)malloc(cmsize * sizeof(uint16_t));
#   78|   
#   79|->     gray[0] = 3000;
#   80|       for (i = 1; i < cmsize; i++)
#   81|           gray[i] = (uint16_t)(-log10((double)i / (cmsize - 1)) * 1000);

Error: CPPCHECK_WARNING (CWE-476): [#def17]
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:81: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: gray
#   79|       gray[0] = 3000;
#   80|       for (i = 1; i < cmsize; i++)
#   81|->         gray[i] = (uint16_t)(-log10((double)i / (cmsize - 1)) * 1000);
#   82|   
#   83|       refblackwhite[0] = 0.0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def18]
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:86:16: warning[-Wanalyzer-malloc-leak]: leak of ‘gray’
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:50:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:53:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:53:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:54:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:77:24: acquire_memory: allocated here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:86:16: danger: ‘gray’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#   84|       refblackwhite[1] = (float)((1L << bits_per_pixel) - 1);
#   85|   
#   86|->     if ((tif = TIFFOpen(argv[3], "w")) == NULL)
#   87|       {
#   88|           fprintf(stderr, "can't open %s as a TIFF file\n", argv[3]);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def19]
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:93:5: warning[-Wanalyzer-malloc-leak]: leak of ‘gray’
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:50:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:53:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:53:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:54:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:77:24: acquire_memory: allocated here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:86:8: branch_false: following ‘false’ branch...
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:93:5: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:93:5: danger: ‘gray’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
#   91|       }
#   92|   
#   93|->     TIFFSetField(tif, TIFFTAG_IMAGEWIDTH, WIDTH);
#   94|       TIFFSetField(tif, TIFFTAG_IMAGELENGTH, HEIGHT);
#   95|       TIFFSetField(tif, TIFFTAG_BITSPERSAMPLE, bits_per_pixel);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def20]
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:94:5: warning[-Wanalyzer-malloc-leak]: leak of ‘gray’
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:50:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:53:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:53:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:54:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:77:24: acquire_memory: allocated here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:86:8: branch_false: following ‘false’ branch...
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:93:5: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:94:5: danger: ‘gray’ leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
#   92|   
#   93|       TIFFSetField(tif, TIFFTAG_IMAGEWIDTH, WIDTH);
#   94|->     TIFFSetField(tif, TIFFTAG_IMAGELENGTH, HEIGHT);
#   95|       TIFFSetField(tif, TIFFTAG_BITSPERSAMPLE, bits_per_pixel);
#   96|       TIFFSetField(tif, TIFFTAG_COMPRESSION, COMPRESSION_NONE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def21]
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:95:5: warning[-Wanalyzer-malloc-leak]: leak of ‘gray’
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:50:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:53:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:53:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:54:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:77:24: acquire_memory: allocated here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:86:8: branch_false: following ‘false’ branch...
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:93:5: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:95:5: danger: ‘gray’ leaks here; was allocated at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
#   93|       TIFFSetField(tif, TIFFTAG_IMAGEWIDTH, WIDTH);
#   94|       TIFFSetField(tif, TIFFTAG_IMAGELENGTH, HEIGHT);
#   95|->     TIFFSetField(tif, TIFFTAG_BITSPERSAMPLE, bits_per_pixel);
#   96|       TIFFSetField(tif, TIFFTAG_COMPRESSION, COMPRESSION_NONE);
#   97|       TIFFSetField(tif, TIFFTAG_PHOTOMETRIC, PHOTOMETRIC_MINISBLACK);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def22]
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:96:5: warning[-Wanalyzer-malloc-leak]: leak of ‘gray’
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:50:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:53:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:53:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:54:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:77:24: acquire_memory: allocated here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:86:8: branch_false: following ‘false’ branch...
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:93:5: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:96:5: danger: ‘gray’ leaks here; was allocated at [(5)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/4)
#   94|       TIFFSetField(tif, TIFFTAG_IMAGELENGTH, HEIGHT);
#   95|       TIFFSetField(tif, TIFFTAG_BITSPERSAMPLE, bits_per_pixel);
#   96|->     TIFFSetField(tif, TIFFTAG_COMPRESSION, COMPRESSION_NONE);
#   97|       TIFFSetField(tif, TIFFTAG_PHOTOMETRIC, PHOTOMETRIC_MINISBLACK);
#   98|       TIFFSetField(tif, TIFFTAG_SAMPLESPERPIXEL, 1);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def23]
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:97:5: warning[-Wanalyzer-malloc-leak]: leak of ‘gray’
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:50:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:53:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:53:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:54:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:77:24: acquire_memory: allocated here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:86:8: branch_false: following ‘false’ branch...
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:93:5: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:97:5: danger: ‘gray’ leaks here; was allocated at [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4)
#   95|       TIFFSetField(tif, TIFFTAG_BITSPERSAMPLE, bits_per_pixel);
#   96|       TIFFSetField(tif, TIFFTAG_COMPRESSION, COMPRESSION_NONE);
#   97|->     TIFFSetField(tif, TIFFTAG_PHOTOMETRIC, PHOTOMETRIC_MINISBLACK);
#   98|       TIFFSetField(tif, TIFFTAG_SAMPLESPERPIXEL, 1);
#   99|       TIFFSetField(tif, TIFFTAG_ROWSPERSTRIP, 1);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def24]
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:98:5: warning[-Wanalyzer-malloc-leak]: leak of ‘gray’
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:50:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:53:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:53:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:54:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:77:24: acquire_memory: allocated here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:86:8: branch_false: following ‘false’ branch...
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:93:5: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:98:5: danger: ‘gray’ leaks here; was allocated at [(5)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/4)
#   96|       TIFFSetField(tif, TIFFTAG_COMPRESSION, COMPRESSION_NONE);
#   97|       TIFFSetField(tif, TIFFTAG_PHOTOMETRIC, PHOTOMETRIC_MINISBLACK);
#   98|->     TIFFSetField(tif, TIFFTAG_SAMPLESPERPIXEL, 1);
#   99|       TIFFSetField(tif, TIFFTAG_ROWSPERSTRIP, 1);
#  100|       TIFFSetField(tif, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def25]
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:99:5: warning[-Wanalyzer-malloc-leak]: leak of ‘gray’
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:50:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:53:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:53:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:54:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:77:24: acquire_memory: allocated here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:86:8: branch_false: following ‘false’ branch...
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:93:5: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:99:5: danger: ‘gray’ leaks here; was allocated at [(5)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/4)
#   97|       TIFFSetField(tif, TIFFTAG_PHOTOMETRIC, PHOTOMETRIC_MINISBLACK);
#   98|       TIFFSetField(tif, TIFFTAG_SAMPLESPERPIXEL, 1);
#   99|->     TIFFSetField(tif, TIFFTAG_ROWSPERSTRIP, 1);
#  100|       TIFFSetField(tif, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG);
#  101|       TIFFSetField(tif, TIFFTAG_REFERENCEBLACKWHITE, refblackwhite);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:100:5: warning[-Wanalyzer-malloc-leak]: leak of ‘gray’
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:50:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:53:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:53:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:54:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:77:24: acquire_memory: allocated here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:86:8: branch_false: following ‘false’ branch...
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:93:5: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:100:5: danger: ‘gray’ leaks here; was allocated at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
#   98|       TIFFSetField(tif, TIFFTAG_SAMPLESPERPIXEL, 1);
#   99|       TIFFSetField(tif, TIFFTAG_ROWSPERSTRIP, 1);
#  100|->     TIFFSetField(tif, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG);
#  101|       TIFFSetField(tif, TIFFTAG_REFERENCEBLACKWHITE, refblackwhite);
#  102|       TIFFSetField(tif, TIFFTAG_TRANSFERFUNCTION, gray);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def27]
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:101:5: warning[-Wanalyzer-malloc-leak]: leak of ‘gray’
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:50:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:53:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:53:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:54:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:77:24: acquire_memory: allocated here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:86:8: branch_false: following ‘false’ branch...
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:93:5: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:101:5: danger: ‘gray’ leaks here; was allocated at [(5)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/4)
#   99|       TIFFSetField(tif, TIFFTAG_ROWSPERSTRIP, 1);
#  100|       TIFFSetField(tif, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG);
#  101|->     TIFFSetField(tif, TIFFTAG_REFERENCEBLACKWHITE, refblackwhite);
#  102|       TIFFSetField(tif, TIFFTAG_TRANSFERFUNCTION, gray);
#  103|       TIFFSetField(tif, TIFFTAG_RESOLUTIONUNIT, RESUNIT_NONE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def28]
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:102:5: warning[-Wanalyzer-malloc-leak]: leak of ‘gray’
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:50:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:53:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:53:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:54:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:77:24: acquire_memory: allocated here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:86:8: branch_false: following ‘false’ branch...
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:93:5: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:102:5: danger: ‘gray’ leaks here; was allocated at [(5)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/4)
#  100|       TIFFSetField(tif, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG);
#  101|       TIFFSetField(tif, TIFFTAG_REFERENCEBLACKWHITE, refblackwhite);
#  102|->     TIFFSetField(tif, TIFFTAG_TRANSFERFUNCTION, gray);
#  103|       TIFFSetField(tif, TIFFTAG_RESOLUTIONUNIT, RESUNIT_NONE);
#  104|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def29]
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:116:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘scan_line’
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:50:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:53:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:53:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:54:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:86:8: branch_false: following ‘false’ branch...
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:93:5: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:105:34: acquire_memory: this call could return NULL
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:107:17: branch_true: following ‘true’ branch (when ‘i != 512’)...
 branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:109:28: branch_true: following ‘true’ branch (when ‘j <= 511’)...
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:111:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:116:21: danger: ‘scan_line + (sizetype)k’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/6)
#  114|               {
#  115|                   case 8:
#  116|->                     scan_line[k++] = gray_index;
#  117|                       j++;
#  118|                       break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def30]
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:120:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘scan_line’
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:50:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:53:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:53:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:54:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:86:8: branch_false: following ‘false’ branch...
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:93:5: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:105:34: acquire_memory: this call could return NULL
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:107:17: branch_true: following ‘true’ branch (when ‘i != 512’)...
 branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:109:28: branch_true: following ‘true’ branch (when ‘j <= 511’)...
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:111:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:120:21: danger: ‘scan_line + (sizetype)k’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/6)
#  118|                       break;
#  119|                   case 4:
#  120|->                     scan_line[k++] = (gray_index << 4) + gray_index;
#  121|                       j += 2;
#  122|                       break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def31]
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:124:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘scan_line’
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:50:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:53:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:53:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:54:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:86:8: branch_false: following ‘false’ branch...
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:93:5: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:105:34: acquire_memory: this call could return NULL
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:107:17: branch_true: following ‘true’ branch (when ‘i != 512’)...
 branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:109:28: branch_true: following ‘true’ branch (when ‘j <= 511’)...
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:111:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-grayscale.c:124:21: danger: ‘scan_line + (sizetype)k’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/6)
#  122|                       break;
#  123|                   case 2:
#  124|->                     scan_line[k++] = (gray_index << 6) + (gray_index << 4) +
#  125|                                        (gray_index << 2) + gray_index;
#  126|                       j += 4;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def32]
tiff-4.7.0/contrib/dbs/tiff-palette.c:96:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘red’
tiff-4.7.0/contrib/dbs/tiff-palette.c:48:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:52:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:86:23: acquire_memory: this call could return NULL
tiff-4.7.0/contrib/dbs/tiff-palette.c:93:25: branch_true: following ‘true’ branch (when ‘cmsize > i’)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:95:20: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:95:20: branch_true: following ‘true’ branch (when ‘i <= 31’)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:96:24: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:96:21: danger: ‘red + (long unsigned int)i * 2’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#   94|               {
#   95|                   if (i < 32)
#   96|->                     red[i] = 0;
#   97|                   else if (i < 64)
#   98|                       red[i] = SCALE(36);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def33]
tiff-4.7.0/contrib/dbs/tiff-palette.c:113:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘green’
tiff-4.7.0/contrib/dbs/tiff-palette.c:48:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:52:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:87:25: acquire_memory: this call could return NULL
tiff-4.7.0/contrib/dbs/tiff-palette.c:93:25: branch_true: following ‘true’ branch (when ‘cmsize > i’)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:95:20: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:95:20: branch_true: following ‘true’ branch (when ‘i <= 31’)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:96:24: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:112:20: branch_true: following ‘true’ branch...
tiff-4.7.0/contrib/dbs/tiff-palette.c:113:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:113:21: danger: ‘green + (long unsigned int)i * 2’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#  111|   
#  112|                   if ((i % 32) < 4)
#  113|->                     green[i] = 0;
#  114|                   else if (i < 8)
#  115|                       green[i] = SCALE(36);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def34]
tiff-4.7.0/contrib/dbs/tiff-palette.c:130:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘blue’
tiff-4.7.0/contrib/dbs/tiff-palette.c:48:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:52:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:88:24: acquire_memory: this call could return NULL
tiff-4.7.0/contrib/dbs/tiff-palette.c:93:25: branch_true: following ‘true’ branch (when ‘cmsize > i’)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:95:20: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:95:20: branch_true: following ‘true’ branch (when ‘i <= 31’)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:96:24: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:112:20: branch_true: following ‘true’ branch...
tiff-4.7.0/contrib/dbs/tiff-palette.c:113:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:129:20: branch_true: following ‘true’ branch...
tiff-4.7.0/contrib/dbs/tiff-palette.c:130:25: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:130:21: danger: ‘blue + (long unsigned int)i * 2’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
#  128|   
#  129|                   if ((i % 4) == 0)
#  130|->                     blue[i] = SCALE(0);
#  131|                   else if ((i % 4) == 1)
#  132|                       blue[i] = SCALE(85);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def35]
tiff-4.7.0/contrib/dbs/tiff-palette.c:140:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘red’
tiff-4.7.0/contrib/dbs/tiff-palette.c:48:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:52:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:86:23: acquire_memory: this call could return NULL
tiff-4.7.0/contrib/dbs/tiff-palette.c:140:13: danger: ‘red’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
#  138|               break;
#  139|           case 4:
#  140|->             red[0] = SCALE(255);
#  141|               green[0] = 0;
#  142|               blue[0] = 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def36]
tiff-4.7.0/contrib/dbs/tiff-palette.c:141:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘green’
tiff-4.7.0/contrib/dbs/tiff-palette.c:48:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:52:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:87:25: acquire_memory: this call could return NULL
tiff-4.7.0/contrib/dbs/tiff-palette.c:141:13: danger: ‘green’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
#  139|           case 4:
#  140|               red[0] = SCALE(255);
#  141|->             green[0] = 0;
#  142|               blue[0] = 0;
#  143|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def37]
tiff-4.7.0/contrib/dbs/tiff-palette.c:142:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘blue’
tiff-4.7.0/contrib/dbs/tiff-palette.c:48:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:52:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:88:24: acquire_memory: this call could return NULL
tiff-4.7.0/contrib/dbs/tiff-palette.c:142:13: danger: ‘blue’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/4)
#  140|               red[0] = SCALE(255);
#  141|               green[0] = 0;
#  142|->             blue[0] = 0;
#  143|   
#  144|               red[1] = 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def38]
tiff-4.7.0/contrib/dbs/tiff-palette.c:198:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘red’
tiff-4.7.0/contrib/dbs/tiff-palette.c:48:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:52:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:86:23: acquire_memory: this call could return NULL
tiff-4.7.0/contrib/dbs/tiff-palette.c:198:13: danger: ‘red’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4)
#  196|               break;
#  197|           case 2:
#  198|->             red[0] = SCALE(255);
#  199|               green[0] = 0;
#  200|               blue[0] = 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def39]
tiff-4.7.0/contrib/dbs/tiff-palette.c:199:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘green’
tiff-4.7.0/contrib/dbs/tiff-palette.c:48:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:52:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:87:25: acquire_memory: this call could return NULL
tiff-4.7.0/contrib/dbs/tiff-palette.c:199:13: danger: ‘green’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/4)
#  197|           case 2:
#  198|               red[0] = SCALE(255);
#  199|->             green[0] = 0;
#  200|               blue[0] = 0;
#  201|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def40]
tiff-4.7.0/contrib/dbs/tiff-palette.c:200:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘blue’
tiff-4.7.0/contrib/dbs/tiff-palette.c:48:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:52:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:88:24: acquire_memory: this call could return NULL
tiff-4.7.0/contrib/dbs/tiff-palette.c:200:13: danger: ‘blue’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/4)
#  198|               red[0] = SCALE(255);
#  199|               green[0] = 0;
#  200|->             blue[0] = 0;
#  201|   
#  202|               red[1] = 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def41]
tiff-4.7.0/contrib/dbs/tiff-palette.c:214:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘red’
tiff-4.7.0/contrib/dbs/tiff-palette.c:48:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:52:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:86:23: acquire_memory: this call could return NULL
tiff-4.7.0/contrib/dbs/tiff-palette.c:214:13: danger: ‘red’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
#  212|               break;
#  213|           case 1:
#  214|->             red[0] = 0;
#  215|               green[0] = 0;
#  216|               blue[0] = 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def42]
tiff-4.7.0/contrib/dbs/tiff-palette.c:215:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘green’
tiff-4.7.0/contrib/dbs/tiff-palette.c:48:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:52:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:87:25: acquire_memory: this call could return NULL
tiff-4.7.0/contrib/dbs/tiff-palette.c:215:13: danger: ‘green’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/4)
#  213|           case 1:
#  214|               red[0] = 0;
#  215|->             green[0] = 0;
#  216|               blue[0] = 0;
#  217|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def43]
tiff-4.7.0/contrib/dbs/tiff-palette.c:216:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘blue’
tiff-4.7.0/contrib/dbs/tiff-palette.c:48:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:52:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:88:24: acquire_memory: this call could return NULL
tiff-4.7.0/contrib/dbs/tiff-palette.c:216:13: danger: ‘blue’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/4)
#  214|               red[0] = 0;
#  215|               green[0] = 0;
#  216|->             blue[0] = 0;
#  217|   
#  218|               red[1] = SCALE(255);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def44]
tiff-4.7.0/contrib/dbs/tiff-palette.c:224:16: warning[-Wanalyzer-malloc-leak]: leak of ‘blue’
tiff-4.7.0/contrib/dbs/tiff-palette.c:48:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:52:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:88:24: acquire_memory: allocated here
tiff-4.7.0/contrib/dbs/tiff-palette.c:224:16: danger: ‘blue’ leaks here; was allocated at [(5)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/4)
#  222|       }
#  223|   
#  224|->     if ((tif = TIFFOpen(argv[3], "w")) == NULL)
#  225|       {
#  226|           fprintf(stderr, "can't open %s as a TIFF file\n", argv[3]);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def45]
tiff-4.7.0/contrib/dbs/tiff-palette.c:224:16: warning[-Wanalyzer-malloc-leak]: leak of ‘green’
tiff-4.7.0/contrib/dbs/tiff-palette.c:48:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:52:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:87:25: acquire_memory: allocated here
tiff-4.7.0/contrib/dbs/tiff-palette.c:224:16: danger: ‘green’ leaks here; was allocated at [(5)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/4)
#  222|       }
#  223|   
#  224|->     if ((tif = TIFFOpen(argv[3], "w")) == NULL)
#  225|       {
#  226|           fprintf(stderr, "can't open %s as a TIFF file\n", argv[3]);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def46]
tiff-4.7.0/contrib/dbs/tiff-palette.c:224:16: warning[-Wanalyzer-malloc-leak]: leak of ‘red’
tiff-4.7.0/contrib/dbs/tiff-palette.c:48:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:52:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:86:23: acquire_memory: allocated here
tiff-4.7.0/contrib/dbs/tiff-palette.c:224:16: danger: ‘red’ leaks here; was allocated at [(5)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/4)
#  222|       }
#  223|   
#  224|->     if ((tif = TIFFOpen(argv[3], "w")) == NULL)
#  225|       {
#  226|           fprintf(stderr, "can't open %s as a TIFF file\n", argv[3]);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def47]
tiff-4.7.0/contrib/dbs/tiff-palette.c:233:5: warning[-Wanalyzer-malloc-leak]: leak of ‘blue’
tiff-4.7.0/contrib/dbs/tiff-palette.c:48:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:52:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:88:24: acquire_memory: allocated here
tiff-4.7.0/contrib/dbs/tiff-palette.c:224:8: branch_false: following ‘false’ branch...
tiff-4.7.0/contrib/dbs/tiff-palette.c:233:5: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:233:5: danger: ‘blue’ leaks here; was allocated at [(5)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/4)
#  231|       }
#  232|   
#  233|->     TIFFSetField(tif, TIFFTAG_IMAGEWIDTH, WIDTH);
#  234|       TIFFSetField(tif, TIFFTAG_IMAGELENGTH, HEIGHT);
#  235|       TIFFSetField(tif, TIFFTAG_BITSPERSAMPLE, bits_per_pixel);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def48]
tiff-4.7.0/contrib/dbs/tiff-palette.c:233:5: warning[-Wanalyzer-malloc-leak]: leak of ‘green’
tiff-4.7.0/contrib/dbs/tiff-palette.c:48:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:52:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:87:25: acquire_memory: allocated here
tiff-4.7.0/contrib/dbs/tiff-palette.c:224:8: branch_false: following ‘false’ branch...
tiff-4.7.0/contrib/dbs/tiff-palette.c:233:5: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:233:5: danger: ‘green’ leaks here; was allocated at [(5)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/4)
#  231|       }
#  232|   
#  233|->     TIFFSetField(tif, TIFFTAG_IMAGEWIDTH, WIDTH);
#  234|       TIFFSetField(tif, TIFFTAG_IMAGELENGTH, HEIGHT);
#  235|       TIFFSetField(tif, TIFFTAG_BITSPERSAMPLE, bits_per_pixel);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def49]
tiff-4.7.0/contrib/dbs/tiff-palette.c:233:5: warning[-Wanalyzer-malloc-leak]: leak of ‘red’
tiff-4.7.0/contrib/dbs/tiff-palette.c:48:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:52:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:86:23: acquire_memory: allocated here
tiff-4.7.0/contrib/dbs/tiff-palette.c:224:8: branch_false: following ‘false’ branch...
tiff-4.7.0/contrib/dbs/tiff-palette.c:233:5: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:233:5: danger: ‘red’ leaks here; was allocated at [(5)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/4)
#  231|       }
#  232|   
#  233|->     TIFFSetField(tif, TIFFTAG_IMAGEWIDTH, WIDTH);
#  234|       TIFFSetField(tif, TIFFTAG_IMAGELENGTH, HEIGHT);
#  235|       TIFFSetField(tif, TIFFTAG_BITSPERSAMPLE, bits_per_pixel);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def50]
tiff-4.7.0/contrib/dbs/tiff-palette.c:234:5: warning[-Wanalyzer-malloc-leak]: leak of ‘blue’
tiff-4.7.0/contrib/dbs/tiff-palette.c:48:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:52:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:88:24: acquire_memory: allocated here
tiff-4.7.0/contrib/dbs/tiff-palette.c:224:8: branch_false: following ‘false’ branch...
tiff-4.7.0/contrib/dbs/tiff-palette.c:233:5: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:234:5: danger: ‘blue’ leaks here; was allocated at [(5)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/4)
#  232|   
#  233|       TIFFSetField(tif, TIFFTAG_IMAGEWIDTH, WIDTH);
#  234|->     TIFFSetField(tif, TIFFTAG_IMAGELENGTH, HEIGHT);
#  235|       TIFFSetField(tif, TIFFTAG_BITSPERSAMPLE, bits_per_pixel);
#  236|       TIFFSetField(tif, TIFFTAG_COMPRESSION, COMPRESSION_NONE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def51]
tiff-4.7.0/contrib/dbs/tiff-palette.c:234:5: warning[-Wanalyzer-malloc-leak]: leak of ‘green’
tiff-4.7.0/contrib/dbs/tiff-palette.c:48:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:52:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:87:25: acquire_memory: allocated here
tiff-4.7.0/contrib/dbs/tiff-palette.c:224:8: branch_false: following ‘false’ branch...
tiff-4.7.0/contrib/dbs/tiff-palette.c:233:5: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:234:5: danger: ‘green’ leaks here; was allocated at [(5)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/4)
#  232|   
#  233|       TIFFSetField(tif, TIFFTAG_IMAGEWIDTH, WIDTH);
#  234|->     TIFFSetField(tif, TIFFTAG_IMAGELENGTH, HEIGHT);
#  235|       TIFFSetField(tif, TIFFTAG_BITSPERSAMPLE, bits_per_pixel);
#  236|       TIFFSetField(tif, TIFFTAG_COMPRESSION, COMPRESSION_NONE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def52]
tiff-4.7.0/contrib/dbs/tiff-palette.c:234:5: warning[-Wanalyzer-malloc-leak]: leak of ‘red’
tiff-4.7.0/contrib/dbs/tiff-palette.c:48:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:52:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:86:23: acquire_memory: allocated here
tiff-4.7.0/contrib/dbs/tiff-palette.c:224:8: branch_false: following ‘false’ branch...
tiff-4.7.0/contrib/dbs/tiff-palette.c:233:5: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:234:5: danger: ‘red’ leaks here; was allocated at [(5)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/4)
#  232|   
#  233|       TIFFSetField(tif, TIFFTAG_IMAGEWIDTH, WIDTH);
#  234|->     TIFFSetField(tif, TIFFTAG_IMAGELENGTH, HEIGHT);
#  235|       TIFFSetField(tif, TIFFTAG_BITSPERSAMPLE, bits_per_pixel);
#  236|       TIFFSetField(tif, TIFFTAG_COMPRESSION, COMPRESSION_NONE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def53]
tiff-4.7.0/contrib/dbs/tiff-palette.c:235:5: warning[-Wanalyzer-malloc-leak]: leak of ‘blue’
tiff-4.7.0/contrib/dbs/tiff-palette.c:48:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:52:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:88:24: acquire_memory: allocated here
tiff-4.7.0/contrib/dbs/tiff-palette.c:224:8: branch_false: following ‘false’ branch...
tiff-4.7.0/contrib/dbs/tiff-palette.c:233:5: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:235:5: danger: ‘blue’ leaks here; was allocated at [(5)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/4)
#  233|       TIFFSetField(tif, TIFFTAG_IMAGEWIDTH, WIDTH);
#  234|       TIFFSetField(tif, TIFFTAG_IMAGELENGTH, HEIGHT);
#  235|->     TIFFSetField(tif, TIFFTAG_BITSPERSAMPLE, bits_per_pixel);
#  236|       TIFFSetField(tif, TIFFTAG_COMPRESSION, COMPRESSION_NONE);
#  237|       TIFFSetField(tif, TIFFTAG_PHOTOMETRIC, PHOTOMETRIC_PALETTE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def54]
tiff-4.7.0/contrib/dbs/tiff-palette.c:235:5: warning[-Wanalyzer-malloc-leak]: leak of ‘green’
tiff-4.7.0/contrib/dbs/tiff-palette.c:48:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:52:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:87:25: acquire_memory: allocated here
tiff-4.7.0/contrib/dbs/tiff-palette.c:224:8: branch_false: following ‘false’ branch...
tiff-4.7.0/contrib/dbs/tiff-palette.c:233:5: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:235:5: danger: ‘green’ leaks here; was allocated at [(5)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/4)
#  233|       TIFFSetField(tif, TIFFTAG_IMAGEWIDTH, WIDTH);
#  234|       TIFFSetField(tif, TIFFTAG_IMAGELENGTH, HEIGHT);
#  235|->     TIFFSetField(tif, TIFFTAG_BITSPERSAMPLE, bits_per_pixel);
#  236|       TIFFSetField(tif, TIFFTAG_COMPRESSION, COMPRESSION_NONE);
#  237|       TIFFSetField(tif, TIFFTAG_PHOTOMETRIC, PHOTOMETRIC_PALETTE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def55]
tiff-4.7.0/contrib/dbs/tiff-palette.c:235:5: warning[-Wanalyzer-malloc-leak]: leak of ‘red’
tiff-4.7.0/contrib/dbs/tiff-palette.c:48:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:52:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:86:23: acquire_memory: allocated here
tiff-4.7.0/contrib/dbs/tiff-palette.c:224:8: branch_false: following ‘false’ branch...
tiff-4.7.0/contrib/dbs/tiff-palette.c:233:5: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:235:5: danger: ‘red’ leaks here; was allocated at [(5)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/4)
#  233|       TIFFSetField(tif, TIFFTAG_IMAGEWIDTH, WIDTH);
#  234|       TIFFSetField(tif, TIFFTAG_IMAGELENGTH, HEIGHT);
#  235|->     TIFFSetField(tif, TIFFTAG_BITSPERSAMPLE, bits_per_pixel);
#  236|       TIFFSetField(tif, TIFFTAG_COMPRESSION, COMPRESSION_NONE);
#  237|       TIFFSetField(tif, TIFFTAG_PHOTOMETRIC, PHOTOMETRIC_PALETTE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def56]
tiff-4.7.0/contrib/dbs/tiff-palette.c:236:5: warning[-Wanalyzer-malloc-leak]: leak of ‘blue’
tiff-4.7.0/contrib/dbs/tiff-palette.c:48:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:52:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:88:24: acquire_memory: allocated here
tiff-4.7.0/contrib/dbs/tiff-palette.c:224:8: branch_false: following ‘false’ branch...
tiff-4.7.0/contrib/dbs/tiff-palette.c:233:5: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:236:5: danger: ‘blue’ leaks here; was allocated at [(5)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/4)
#  234|       TIFFSetField(tif, TIFFTAG_IMAGELENGTH, HEIGHT);
#  235|       TIFFSetField(tif, TIFFTAG_BITSPERSAMPLE, bits_per_pixel);
#  236|->     TIFFSetField(tif, TIFFTAG_COMPRESSION, COMPRESSION_NONE);
#  237|       TIFFSetField(tif, TIFFTAG_PHOTOMETRIC, PHOTOMETRIC_PALETTE);
#  238|       TIFFSetField(tif, TIFFTAG_SAMPLESPERPIXEL, 1);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def57]
tiff-4.7.0/contrib/dbs/tiff-palette.c:236:5: warning[-Wanalyzer-malloc-leak]: leak of ‘green’
tiff-4.7.0/contrib/dbs/tiff-palette.c:48:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:52:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:87:25: acquire_memory: allocated here
tiff-4.7.0/contrib/dbs/tiff-palette.c:224:8: branch_false: following ‘false’ branch...
tiff-4.7.0/contrib/dbs/tiff-palette.c:233:5: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:236:5: danger: ‘green’ leaks here; was allocated at [(5)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/4)
#  234|       TIFFSetField(tif, TIFFTAG_IMAGELENGTH, HEIGHT);
#  235|       TIFFSetField(tif, TIFFTAG_BITSPERSAMPLE, bits_per_pixel);
#  236|->     TIFFSetField(tif, TIFFTAG_COMPRESSION, COMPRESSION_NONE);
#  237|       TIFFSetField(tif, TIFFTAG_PHOTOMETRIC, PHOTOMETRIC_PALETTE);
#  238|       TIFFSetField(tif, TIFFTAG_SAMPLESPERPIXEL, 1);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def58]
tiff-4.7.0/contrib/dbs/tiff-palette.c:236:5: warning[-Wanalyzer-malloc-leak]: leak of ‘red’
tiff-4.7.0/contrib/dbs/tiff-palette.c:48:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:52:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:86:23: acquire_memory: allocated here
tiff-4.7.0/contrib/dbs/tiff-palette.c:224:8: branch_false: following ‘false’ branch...
tiff-4.7.0/contrib/dbs/tiff-palette.c:233:5: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:236:5: danger: ‘red’ leaks here; was allocated at [(5)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/4)
#  234|       TIFFSetField(tif, TIFFTAG_IMAGELENGTH, HEIGHT);
#  235|       TIFFSetField(tif, TIFFTAG_BITSPERSAMPLE, bits_per_pixel);
#  236|->     TIFFSetField(tif, TIFFTAG_COMPRESSION, COMPRESSION_NONE);
#  237|       TIFFSetField(tif, TIFFTAG_PHOTOMETRIC, PHOTOMETRIC_PALETTE);
#  238|       TIFFSetField(tif, TIFFTAG_SAMPLESPERPIXEL, 1);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def59]
tiff-4.7.0/contrib/dbs/tiff-palette.c:237:5: warning[-Wanalyzer-malloc-leak]: leak of ‘blue’
tiff-4.7.0/contrib/dbs/tiff-palette.c:48:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:52:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:88:24: acquire_memory: allocated here
tiff-4.7.0/contrib/dbs/tiff-palette.c:224:8: branch_false: following ‘false’ branch...
tiff-4.7.0/contrib/dbs/tiff-palette.c:233:5: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:237:5: danger: ‘blue’ leaks here; was allocated at [(5)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/4)
#  235|       TIFFSetField(tif, TIFFTAG_BITSPERSAMPLE, bits_per_pixel);
#  236|       TIFFSetField(tif, TIFFTAG_COMPRESSION, COMPRESSION_NONE);
#  237|->     TIFFSetField(tif, TIFFTAG_PHOTOMETRIC, PHOTOMETRIC_PALETTE);
#  238|       TIFFSetField(tif, TIFFTAG_SAMPLESPERPIXEL, 1);
#  239|       TIFFSetField(tif, TIFFTAG_ROWSPERSTRIP, 1);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def60]
tiff-4.7.0/contrib/dbs/tiff-palette.c:237:5: warning[-Wanalyzer-malloc-leak]: leak of ‘green’
tiff-4.7.0/contrib/dbs/tiff-palette.c:48:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:52:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:87:25: acquire_memory: allocated here
tiff-4.7.0/contrib/dbs/tiff-palette.c:224:8: branch_false: following ‘false’ branch...
tiff-4.7.0/contrib/dbs/tiff-palette.c:233:5: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:237:5: danger: ‘green’ leaks here; was allocated at [(5)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/4)
#  235|       TIFFSetField(tif, TIFFTAG_BITSPERSAMPLE, bits_per_pixel);
#  236|       TIFFSetField(tif, TIFFTAG_COMPRESSION, COMPRESSION_NONE);
#  237|->     TIFFSetField(tif, TIFFTAG_PHOTOMETRIC, PHOTOMETRIC_PALETTE);
#  238|       TIFFSetField(tif, TIFFTAG_SAMPLESPERPIXEL, 1);
#  239|       TIFFSetField(tif, TIFFTAG_ROWSPERSTRIP, 1);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def61]
tiff-4.7.0/contrib/dbs/tiff-palette.c:237:5: warning[-Wanalyzer-malloc-leak]: leak of ‘red’
tiff-4.7.0/contrib/dbs/tiff-palette.c:48:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:52:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:86:23: acquire_memory: allocated here
tiff-4.7.0/contrib/dbs/tiff-palette.c:224:8: branch_false: following ‘false’ branch...
tiff-4.7.0/contrib/dbs/tiff-palette.c:233:5: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:237:5: danger: ‘red’ leaks here; was allocated at [(5)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/4)
#  235|       TIFFSetField(tif, TIFFTAG_BITSPERSAMPLE, bits_per_pixel);
#  236|       TIFFSetField(tif, TIFFTAG_COMPRESSION, COMPRESSION_NONE);
#  237|->     TIFFSetField(tif, TIFFTAG_PHOTOMETRIC, PHOTOMETRIC_PALETTE);
#  238|       TIFFSetField(tif, TIFFTAG_SAMPLESPERPIXEL, 1);
#  239|       TIFFSetField(tif, TIFFTAG_ROWSPERSTRIP, 1);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def62]
tiff-4.7.0/contrib/dbs/tiff-palette.c:238:5: warning[-Wanalyzer-malloc-leak]: leak of ‘blue’
tiff-4.7.0/contrib/dbs/tiff-palette.c:48:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:52:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:88:24: acquire_memory: allocated here
tiff-4.7.0/contrib/dbs/tiff-palette.c:224:8: branch_false: following ‘false’ branch...
tiff-4.7.0/contrib/dbs/tiff-palette.c:233:5: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:238:5: danger: ‘blue’ leaks here; was allocated at [(5)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/4)
#  236|       TIFFSetField(tif, TIFFTAG_COMPRESSION, COMPRESSION_NONE);
#  237|       TIFFSetField(tif, TIFFTAG_PHOTOMETRIC, PHOTOMETRIC_PALETTE);
#  238|->     TIFFSetField(tif, TIFFTAG_SAMPLESPERPIXEL, 1);
#  239|       TIFFSetField(tif, TIFFTAG_ROWSPERSTRIP, 1);
#  240|       TIFFSetField(tif, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def63]
tiff-4.7.0/contrib/dbs/tiff-palette.c:238:5: warning[-Wanalyzer-malloc-leak]: leak of ‘green’
tiff-4.7.0/contrib/dbs/tiff-palette.c:48:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:52:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:87:25: acquire_memory: allocated here
tiff-4.7.0/contrib/dbs/tiff-palette.c:224:8: branch_false: following ‘false’ branch...
tiff-4.7.0/contrib/dbs/tiff-palette.c:233:5: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:238:5: danger: ‘green’ leaks here; was allocated at [(5)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/4)
#  236|       TIFFSetField(tif, TIFFTAG_COMPRESSION, COMPRESSION_NONE);
#  237|       TIFFSetField(tif, TIFFTAG_PHOTOMETRIC, PHOTOMETRIC_PALETTE);
#  238|->     TIFFSetField(tif, TIFFTAG_SAMPLESPERPIXEL, 1);
#  239|       TIFFSetField(tif, TIFFTAG_ROWSPERSTRIP, 1);
#  240|       TIFFSetField(tif, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def64]
tiff-4.7.0/contrib/dbs/tiff-palette.c:238:5: warning[-Wanalyzer-malloc-leak]: leak of ‘red’
tiff-4.7.0/contrib/dbs/tiff-palette.c:48:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:52:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:86:23: acquire_memory: allocated here
tiff-4.7.0/contrib/dbs/tiff-palette.c:224:8: branch_false: following ‘false’ branch...
tiff-4.7.0/contrib/dbs/tiff-palette.c:233:5: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:238:5: danger: ‘red’ leaks here; was allocated at [(5)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/4)
#  236|       TIFFSetField(tif, TIFFTAG_COMPRESSION, COMPRESSION_NONE);
#  237|       TIFFSetField(tif, TIFFTAG_PHOTOMETRIC, PHOTOMETRIC_PALETTE);
#  238|->     TIFFSetField(tif, TIFFTAG_SAMPLESPERPIXEL, 1);
#  239|       TIFFSetField(tif, TIFFTAG_ROWSPERSTRIP, 1);
#  240|       TIFFSetField(tif, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def65]
tiff-4.7.0/contrib/dbs/tiff-palette.c:239:5: warning[-Wanalyzer-malloc-leak]: leak of ‘blue’
tiff-4.7.0/contrib/dbs/tiff-palette.c:48:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:52:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:88:24: acquire_memory: allocated here
tiff-4.7.0/contrib/dbs/tiff-palette.c:224:8: branch_false: following ‘false’ branch...
tiff-4.7.0/contrib/dbs/tiff-palette.c:233:5: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:239:5: danger: ‘blue’ leaks here; was allocated at [(5)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/4)
#  237|       TIFFSetField(tif, TIFFTAG_PHOTOMETRIC, PHOTOMETRIC_PALETTE);
#  238|       TIFFSetField(tif, TIFFTAG_SAMPLESPERPIXEL, 1);
#  239|->     TIFFSetField(tif, TIFFTAG_ROWSPERSTRIP, 1);
#  240|       TIFFSetField(tif, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG);
#  241|       TIFFSetField(tif, TIFFTAG_RESOLUTIONUNIT, RESUNIT_NONE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def66]
tiff-4.7.0/contrib/dbs/tiff-palette.c:239:5: warning[-Wanalyzer-malloc-leak]: leak of ‘green’
tiff-4.7.0/contrib/dbs/tiff-palette.c:48:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:52:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:87:25: acquire_memory: allocated here
tiff-4.7.0/contrib/dbs/tiff-palette.c:224:8: branch_false: following ‘false’ branch...
tiff-4.7.0/contrib/dbs/tiff-palette.c:233:5: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:239:5: danger: ‘green’ leaks here; was allocated at [(5)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/4)
#  237|       TIFFSetField(tif, TIFFTAG_PHOTOMETRIC, PHOTOMETRIC_PALETTE);
#  238|       TIFFSetField(tif, TIFFTAG_SAMPLESPERPIXEL, 1);
#  239|->     TIFFSetField(tif, TIFFTAG_ROWSPERSTRIP, 1);
#  240|       TIFFSetField(tif, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG);
#  241|       TIFFSetField(tif, TIFFTAG_RESOLUTIONUNIT, RESUNIT_NONE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def67]
tiff-4.7.0/contrib/dbs/tiff-palette.c:239:5: warning[-Wanalyzer-malloc-leak]: leak of ‘red’
tiff-4.7.0/contrib/dbs/tiff-palette.c:48:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:52:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:86:23: acquire_memory: allocated here
tiff-4.7.0/contrib/dbs/tiff-palette.c:224:8: branch_false: following ‘false’ branch...
tiff-4.7.0/contrib/dbs/tiff-palette.c:233:5: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:239:5: danger: ‘red’ leaks here; was allocated at [(5)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/4)
#  237|       TIFFSetField(tif, TIFFTAG_PHOTOMETRIC, PHOTOMETRIC_PALETTE);
#  238|       TIFFSetField(tif, TIFFTAG_SAMPLESPERPIXEL, 1);
#  239|->     TIFFSetField(tif, TIFFTAG_ROWSPERSTRIP, 1);
#  240|       TIFFSetField(tif, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG);
#  241|       TIFFSetField(tif, TIFFTAG_RESOLUTIONUNIT, RESUNIT_NONE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def68]
tiff-4.7.0/contrib/dbs/tiff-palette.c:240:5: warning[-Wanalyzer-malloc-leak]: leak of ‘blue’
tiff-4.7.0/contrib/dbs/tiff-palette.c:48:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:52:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:88:24: acquire_memory: allocated here
tiff-4.7.0/contrib/dbs/tiff-palette.c:224:8: branch_false: following ‘false’ branch...
tiff-4.7.0/contrib/dbs/tiff-palette.c:233:5: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:240:5: danger: ‘blue’ leaks here; was allocated at [(5)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/4)
#  238|       TIFFSetField(tif, TIFFTAG_SAMPLESPERPIXEL, 1);
#  239|       TIFFSetField(tif, TIFFTAG_ROWSPERSTRIP, 1);
#  240|->     TIFFSetField(tif, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG);
#  241|       TIFFSetField(tif, TIFFTAG_RESOLUTIONUNIT, RESUNIT_NONE);
#  242|       TIFFSetField(tif, TIFFTAG_COLORMAP, red, green, blue);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def69]
tiff-4.7.0/contrib/dbs/tiff-palette.c:240:5: warning[-Wanalyzer-malloc-leak]: leak of ‘green’
tiff-4.7.0/contrib/dbs/tiff-palette.c:48:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:52:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:87:25: acquire_memory: allocated here
tiff-4.7.0/contrib/dbs/tiff-palette.c:224:8: branch_false: following ‘false’ branch...
tiff-4.7.0/contrib/dbs/tiff-palette.c:233:5: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:240:5: danger: ‘green’ leaks here; was allocated at [(5)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/4)
#  238|       TIFFSetField(tif, TIFFTAG_SAMPLESPERPIXEL, 1);
#  239|       TIFFSetField(tif, TIFFTAG_ROWSPERSTRIP, 1);
#  240|->     TIFFSetField(tif, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG);
#  241|       TIFFSetField(tif, TIFFTAG_RESOLUTIONUNIT, RESUNIT_NONE);
#  242|       TIFFSetField(tif, TIFFTAG_COLORMAP, red, green, blue);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def70]
tiff-4.7.0/contrib/dbs/tiff-palette.c:240:5: warning[-Wanalyzer-malloc-leak]: leak of ‘red’
tiff-4.7.0/contrib/dbs/tiff-palette.c:48:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:52:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:86:23: acquire_memory: allocated here
tiff-4.7.0/contrib/dbs/tiff-palette.c:224:8: branch_false: following ‘false’ branch...
tiff-4.7.0/contrib/dbs/tiff-palette.c:233:5: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:240:5: danger: ‘red’ leaks here; was allocated at [(5)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/4)
#  238|       TIFFSetField(tif, TIFFTAG_SAMPLESPERPIXEL, 1);
#  239|       TIFFSetField(tif, TIFFTAG_ROWSPERSTRIP, 1);
#  240|->     TIFFSetField(tif, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG);
#  241|       TIFFSetField(tif, TIFFTAG_RESOLUTIONUNIT, RESUNIT_NONE);
#  242|       TIFFSetField(tif, TIFFTAG_COLORMAP, red, green, blue);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def71]
tiff-4.7.0/contrib/dbs/tiff-palette.c:241:5: warning[-Wanalyzer-malloc-leak]: leak of ‘blue’
tiff-4.7.0/contrib/dbs/tiff-palette.c:48:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:52:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:88:24: acquire_memory: allocated here
tiff-4.7.0/contrib/dbs/tiff-palette.c:224:8: branch_false: following ‘false’ branch...
tiff-4.7.0/contrib/dbs/tiff-palette.c:233:5: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:241:5: danger: ‘blue’ leaks here; was allocated at [(5)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/4)
#  239|       TIFFSetField(tif, TIFFTAG_ROWSPERSTRIP, 1);
#  240|       TIFFSetField(tif, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG);
#  241|->     TIFFSetField(tif, TIFFTAG_RESOLUTIONUNIT, RESUNIT_NONE);
#  242|       TIFFSetField(tif, TIFFTAG_COLORMAP, red, green, blue);
#  243|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def72]
tiff-4.7.0/contrib/dbs/tiff-palette.c:241:5: warning[-Wanalyzer-malloc-leak]: leak of ‘green’
tiff-4.7.0/contrib/dbs/tiff-palette.c:48:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:52:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:87:25: acquire_memory: allocated here
tiff-4.7.0/contrib/dbs/tiff-palette.c:224:8: branch_false: following ‘false’ branch...
tiff-4.7.0/contrib/dbs/tiff-palette.c:233:5: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:241:5: danger: ‘green’ leaks here; was allocated at [(5)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/4)
#  239|       TIFFSetField(tif, TIFFTAG_ROWSPERSTRIP, 1);
#  240|       TIFFSetField(tif, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG);
#  241|->     TIFFSetField(tif, TIFFTAG_RESOLUTIONUNIT, RESUNIT_NONE);
#  242|       TIFFSetField(tif, TIFFTAG_COLORMAP, red, green, blue);
#  243|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def73]
tiff-4.7.0/contrib/dbs/tiff-palette.c:241:5: warning[-Wanalyzer-malloc-leak]: leak of ‘red’
tiff-4.7.0/contrib/dbs/tiff-palette.c:48:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:52:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:86:23: acquire_memory: allocated here
tiff-4.7.0/contrib/dbs/tiff-palette.c:224:8: branch_false: following ‘false’ branch...
tiff-4.7.0/contrib/dbs/tiff-palette.c:233:5: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:241:5: danger: ‘red’ leaks here; was allocated at [(5)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/4)
#  239|       TIFFSetField(tif, TIFFTAG_ROWSPERSTRIP, 1);
#  240|       TIFFSetField(tif, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG);
#  241|->     TIFFSetField(tif, TIFFTAG_RESOLUTIONUNIT, RESUNIT_NONE);
#  242|       TIFFSetField(tif, TIFFTAG_COLORMAP, red, green, blue);
#  243|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def74]
tiff-4.7.0/contrib/dbs/tiff-palette.c:242:5: warning[-Wanalyzer-malloc-leak]: leak of ‘blue’
tiff-4.7.0/contrib/dbs/tiff-palette.c:48:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:52:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:88:24: acquire_memory: allocated here
tiff-4.7.0/contrib/dbs/tiff-palette.c:224:8: branch_false: following ‘false’ branch...
tiff-4.7.0/contrib/dbs/tiff-palette.c:233:5: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:242:5: danger: ‘blue’ leaks here; was allocated at [(5)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/4)
#  240|       TIFFSetField(tif, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG);
#  241|       TIFFSetField(tif, TIFFTAG_RESOLUTIONUNIT, RESUNIT_NONE);
#  242|->     TIFFSetField(tif, TIFFTAG_COLORMAP, red, green, blue);
#  243|   
#  244|       scan_line = (unsigned char *)malloc(WIDTH / (8 / bits_per_pixel));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def75]
tiff-4.7.0/contrib/dbs/tiff-palette.c:242:5: warning[-Wanalyzer-malloc-leak]: leak of ‘green’
tiff-4.7.0/contrib/dbs/tiff-palette.c:48:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:52:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:87:25: acquire_memory: allocated here
tiff-4.7.0/contrib/dbs/tiff-palette.c:224:8: branch_false: following ‘false’ branch...
tiff-4.7.0/contrib/dbs/tiff-palette.c:233:5: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:242:5: danger: ‘green’ leaks here; was allocated at [(5)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/4)
#  240|       TIFFSetField(tif, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG);
#  241|       TIFFSetField(tif, TIFFTAG_RESOLUTIONUNIT, RESUNIT_NONE);
#  242|->     TIFFSetField(tif, TIFFTAG_COLORMAP, red, green, blue);
#  243|   
#  244|       scan_line = (unsigned char *)malloc(WIDTH / (8 / bits_per_pixel));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def76]
tiff-4.7.0/contrib/dbs/tiff-palette.c:242:5: warning[-Wanalyzer-malloc-leak]: leak of ‘red’
tiff-4.7.0/contrib/dbs/tiff-palette.c:48:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:10: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:51:8: branch_true: following ‘true’ branch (when the strings are equal)...
tiff-4.7.0/contrib/dbs/tiff-palette.c:52:26: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:86:23: acquire_memory: allocated here
tiff-4.7.0/contrib/dbs/tiff-palette.c:224:8: branch_false: following ‘false’ branch...
tiff-4.7.0/contrib/dbs/tiff-palette.c:233:5: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-palette.c:242:5: danger: ‘red’ leaks here; was allocated at [(5)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/4)
#  240|       TIFFSetField(tif, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG);
#  241|       TIFFSetField(tif, TIFFTAG_RESOLUTIONUNIT, RESUNIT_NONE);
#  242|->     TIFFSetField(tif, TIFFTAG_COLORMAP, red, green, blue);
#  243|   
#  244|       scan_line = (unsigned char *)malloc(WIDTH / (8 / bits_per_pixel));

Error: CPPCHECK_WARNING (CWE-476): [#def77]
tiff-4.7.0/contrib/dbs/tiff-rgb.c:118: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: scan_line
#  116|           for (j = 0; j < 75; j++)
#  117|           {
#  118|->             scan_line[j * 3] = 255;
#  119|               scan_line[(j * 3) + 1] = 255 - i;
#  120|               scan_line[(j * 3) + 2] = 255 - i;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def78]
tiff-4.7.0/contrib/dbs/tiff-rgb.c:118:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘scan_line’
tiff-4.7.0/contrib/dbs/tiff-rgb.c:72:17: branch_true: following ‘true’ branch (when ‘i != 256’)...
tiff-4.7.0/contrib/dbs/tiff-rgb.c:74:12: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-rgb.c:74:12: branch_true: following ‘true’ branch (when ‘i == 0’)...
tiff-4.7.0/contrib/dbs/tiff-rgb.c:75:33: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-rgb.c:90:8: branch_false: following ‘false’ branch...
tiff-4.7.0/contrib/dbs/tiff-rgb.c:96:5: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-rgb.c:112:34: acquire_memory: this call could return NULL
tiff-4.7.0/contrib/dbs/tiff-rgb.c:114:17: branch_true: following ‘true’ branch (when ‘i != 255’)...
 branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-rgb.c:116:21: branch_true: following ‘true’ branch (when ‘j != 75’)...
tiff-4.7.0/contrib/dbs/tiff-rgb.c:118:23: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-rgb.c:118:13: danger: ‘scan_line + (sizetype)(j * 3)’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#  116|           for (j = 0; j < 75; j++)
#  117|           {
#  118|->             scan_line[j * 3] = 255;
#  119|               scan_line[(j * 3) + 1] = 255 - i;
#  120|               scan_line[(j * 3) + 2] = 255 - i;

Error: CPPCHECK_WARNING (CWE-476): [#def79]
tiff-4.7.0/contrib/dbs/tiff-rgb.c:119: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: scan_line
#  117|           {
#  118|               scan_line[j * 3] = 255;
#  119|->             scan_line[(j * 3) + 1] = 255 - i;
#  120|               scan_line[(j * 3) + 2] = 255 - i;
#  121|           }

Error: CPPCHECK_WARNING (CWE-476): [#def80]
tiff-4.7.0/contrib/dbs/tiff-rgb.c:120: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: scan_line
#  118|               scan_line[j * 3] = 255;
#  119|               scan_line[(j * 3) + 1] = 255 - i;
#  120|->             scan_line[(j * 3) + 2] = 255 - i;
#  121|           }
#  122|           for (j = 75; j < 150; j++)

Error: CPPCHECK_WARNING (CWE-476): [#def81]
tiff-4.7.0/contrib/dbs/tiff-rgb.c:124: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: scan_line
#  122|           for (j = 75; j < 150; j++)
#  123|           {
#  124|->             scan_line[j * 3] = 255 - i;
#  125|               scan_line[(j * 3) + 1] = 255;
#  126|               scan_line[(j * 3) + 2] = 255 - i;

Error: CPPCHECK_WARNING (CWE-476): [#def82]
tiff-4.7.0/contrib/dbs/tiff-rgb.c:125: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: scan_line
#  123|           {
#  124|               scan_line[j * 3] = 255 - i;
#  125|->             scan_line[(j * 3) + 1] = 255;
#  126|               scan_line[(j * 3) + 2] = 255 - i;
#  127|           }

Error: CPPCHECK_WARNING (CWE-476): [#def83]
tiff-4.7.0/contrib/dbs/tiff-rgb.c:126: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: scan_line
#  124|               scan_line[j * 3] = 255 - i;
#  125|               scan_line[(j * 3) + 1] = 255;
#  126|->             scan_line[(j * 3) + 2] = 255 - i;
#  127|           }
#  128|           for (j = 150; j < 225; j++)

Error: CPPCHECK_WARNING (CWE-476): [#def84]
tiff-4.7.0/contrib/dbs/tiff-rgb.c:130: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: scan_line
#  128|           for (j = 150; j < 225; j++)
#  129|           {
#  130|->             scan_line[j * 3] = 255 - i;
#  131|               scan_line[(j * 3) + 1] = 255 - i;
#  132|               scan_line[(j * 3) + 2] = 255;

Error: CPPCHECK_WARNING (CWE-476): [#def85]
tiff-4.7.0/contrib/dbs/tiff-rgb.c:131: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: scan_line
#  129|           {
#  130|               scan_line[j * 3] = 255 - i;
#  131|->             scan_line[(j * 3) + 1] = 255 - i;
#  132|               scan_line[(j * 3) + 2] = 255;
#  133|           }

Error: CPPCHECK_WARNING (CWE-476): [#def86]
tiff-4.7.0/contrib/dbs/tiff-rgb.c:132: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: scan_line
#  130|               scan_line[j * 3] = 255 - i;
#  131|               scan_line[(j * 3) + 1] = 255 - i;
#  132|->             scan_line[(j * 3) + 2] = 255;
#  133|           }
#  134|           for (j = 225; j < 300; j++)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def87]
tiff-4.7.0/contrib/dbs/tiff-rgb.c:158:9: warning[-Wanalyzer-malloc-leak]: leak of ‘scan_line’
tiff-4.7.0/contrib/dbs/tiff-rgb.c:72:17: branch_true: following ‘true’ branch (when ‘i != 256’)...
tiff-4.7.0/contrib/dbs/tiff-rgb.c:74:12: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-rgb.c:74:12: branch_true: following ‘true’ branch (when ‘i == 0’)...
tiff-4.7.0/contrib/dbs/tiff-rgb.c:75:33: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-rgb.c:90:8: branch_false: following ‘false’ branch...
tiff-4.7.0/contrib/dbs/tiff-rgb.c:96:5: branch_false: ...to here
tiff-4.7.0/contrib/dbs/tiff-rgb.c:112:34: acquire_memory: allocated here
tiff-4.7.0/contrib/dbs/tiff-rgb.c:114:17: branch_true: following ‘true’ branch (when ‘i != 255’)...
 branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-rgb.c:116:21: branch_true: following ‘true’ branch (when ‘j != 75’)...
tiff-4.7.0/contrib/dbs/tiff-rgb.c:118:23: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-rgb.c:116:21: branch_true: following ‘true’ branch (when ‘j != 75’)...
tiff-4.7.0/contrib/dbs/tiff-rgb.c:118:23: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-rgb.c:122:22: branch_true: following ‘true’ branch (when ‘j != 150’)...
tiff-4.7.0/contrib/dbs/tiff-rgb.c:124:32: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-rgb.c:128:23: branch_true: following ‘true’ branch (when ‘j != 225’)...
tiff-4.7.0/contrib/dbs/tiff-rgb.c:130:32: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-rgb.c:134:23: branch_true: following ‘true’ branch (when ‘j != 300’)...
tiff-4.7.0/contrib/dbs/tiff-rgb.c:136:32: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-rgb.c:140:23: branch_true: following ‘true’ branch (when ‘j != 375’)...
tiff-4.7.0/contrib/dbs/tiff-rgb.c:142:32: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-rgb.c:146:23: branch_true: following ‘true’ branch (when ‘j != 450’)...
tiff-4.7.0/contrib/dbs/tiff-rgb.c:148:23: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-rgb.c:152:23: branch_true: following ‘true’ branch (when ‘j != 525’)...
tiff-4.7.0/contrib/dbs/tiff-rgb.c:154:23: branch_true: ...to here
tiff-4.7.0/contrib/dbs/tiff-rgb.c:158:9: danger: ‘scan_line’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
#  156|               scan_line[(j * 3) + 2] = 255 - i;
#  157|           }
#  158|->         TIFFWriteScanline(tif, scan_line, i, 0);
#  159|       }
#  160|       for (i = 255; i < 512; i++)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def88]
tiff-4.7.0/contrib/iptcutil/iptcutil.c:322:13: warning[-Wanalyzer-malloc-leak]: leak of ‘b’
tiff-4.7.0/contrib/iptcutil/iptcutil.c:323:12: branch_false: following ‘false’ branch...
tiff-4.7.0/contrib/iptcutil/iptcutil.c:325:19: branch_false: ...to here
tiff-4.7.0/contrib/iptcutil/iptcutil.c:325:12: branch_true: following ‘true’ branch...
tiff-4.7.0/contrib/iptcutil/iptcutil.c:329:20: branch_true: ...to here
tiff-4.7.0/contrib/iptcutil/iptcutil.c:332:16: branch_false: following ‘false’ branch (when ‘b’ is non-NULL)...
tiff-4.7.0/contrib/iptcutil/iptcutil.c:334:17: branch_false: ...to here
tiff-4.7.0/contrib/iptcutil/iptcutil.c:322:13: danger: ‘b’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#  320|       for (q = b;; q++)
#  321|       {
#  322|->         c = fgetc(file);
#  323|           if (c == EOF || c == '\n')
#  324|               break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def89]
tiff-4.7.0/contrib/iptcutil/iptcutil.c:322:13: warning[-Wanalyzer-malloc-leak]: leak of ‘line’
tiff-4.7.0/contrib/iptcutil/iptcutil.c:354:5: enter_function: entry to ‘main’
tiff-4.7.0/contrib/iptcutil/iptcutil.c:369:8: branch_false: following ‘false’ branch (when ‘argc > 1’)...
 branch_false: ...to here
tiff-4.7.0/contrib/iptcutil/iptcutil.c:379:17: branch_true: following ‘true’ branch (when ‘i < argc’)...
tiff-4.7.0/contrib/iptcutil/iptcutil.c:381:17: branch_true: ...to here
tiff-4.7.0/contrib/iptcutil/iptcutil.c:382:12: branch_true: following ‘true’ branch...
tiff-4.7.0/contrib/iptcutil/iptcutil.c:384:13: branch_true: ...to here
tiff-4.7.0/contrib/iptcutil/iptcutil.c:435:8: branch_false: following ‘false’ branch (when ‘mode != 0’)...
tiff-4.7.0/contrib/iptcutil/iptcutil.c:446:13: branch_false: ...to here
tiff-4.7.0/contrib/iptcutil/iptcutil.c:448:24: acquire_memory: allocated here
tiff-4.7.0/contrib/iptcutil/iptcutil.c:449:24: call_function: calling ‘super_fgets’ from ‘main’
#  320|       for (q = b;; q++)
#  321|       {
#  322|->         c = fgetc(file);
#  323|           if (c == EOF || c == '\n')
#  324|               break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def90]
tiff-4.7.0/contrib/iptcutil/iptcutil.c:336:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘q’
tiff-4.7.0/contrib/iptcutil/iptcutil.c:354:5: enter_function: entry to ‘main’
tiff-4.7.0/contrib/iptcutil/iptcutil.c:369:8: branch_false: following ‘false’ branch (when ‘argc > 1’)...
 branch_false: ...to here
tiff-4.7.0/contrib/iptcutil/iptcutil.c:379:17: branch_true: following ‘true’ branch (when ‘i < argc’)...
tiff-4.7.0/contrib/iptcutil/iptcutil.c:381:17: branch_true: ...to here
tiff-4.7.0/contrib/iptcutil/iptcutil.c:382:12: branch_true: following ‘true’ branch...
tiff-4.7.0/contrib/iptcutil/iptcutil.c:384:13: branch_true: ...to here
tiff-4.7.0/contrib/iptcutil/iptcutil.c:435:8: branch_false: following ‘false’ branch (when ‘mode != 0’)...
tiff-4.7.0/contrib/iptcutil/iptcutil.c:446:13: branch_false: ...to here
tiff-4.7.0/contrib/iptcutil/iptcutil.c:448:24: acquire_memory: this call could return NULL
tiff-4.7.0/contrib/iptcutil/iptcutil.c:449:24: call_function: calling ‘super_fgets’ from ‘main’
#  334|               q = b + tlen;
#  335|           }
#  336|->         *q = (unsigned char)c;
#  337|       }
#  338|       *blen = 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def91]
tiff-4.7.0/contrib/iptcutil/iptcutil.c:344:12: warning[-Wanalyzer-malloc-leak]: leak of ‘b’
tiff-4.7.0/contrib/iptcutil/iptcutil.c:323:12: branch_false: following ‘false’ branch...
tiff-4.7.0/contrib/iptcutil/iptcutil.c:325:19: branch_false: ...to here
tiff-4.7.0/contrib/iptcutil/iptcutil.c:325:12: branch_true: following ‘true’ branch...
tiff-4.7.0/contrib/iptcutil/iptcutil.c:329:20: branch_true: ...to here
tiff-4.7.0/contrib/iptcutil/iptcutil.c:332:16: branch_false: following ‘false’ branch (when ‘b’ is non-NULL)...
tiff-4.7.0/contrib/iptcutil/iptcutil.c:334:17: branch_false: ...to here
tiff-4.7.0/contrib/iptcutil/iptcutil.c:323:12: branch_true: following ‘true’ branch...
tiff-4.7.0/contrib/iptcutil/iptcutil.c:338:5: branch_true: ...to here
tiff-4.7.0/contrib/iptcutil/iptcutil.c:339:8: branch_true: following ‘true’ branch (when ‘b’ is non-NULL)...
tiff-4.7.0/contrib/iptcutil/iptcutil.c:343:21: branch_true: ...to here
tiff-4.7.0/contrib/iptcutil/iptcutil.c:344:12: branch_true: following ‘true’ branch (when ‘tlen == 0’)...
 branch_true: ...to here
tiff-4.7.0/contrib/iptcutil/iptcutil.c:344:12: danger: ‘b’ leaks here; was allocated at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
#  342|   
#  343|           tlen = (int)(q - b);
#  344|->         if (tlen == 0)
#  345|               return (char *)NULL;
#  346|           b[tlen] = '\0';

Error: GCC_ANALYZER_WARNING (CWE-404): [#def92]
tiff-4.7.0/libtiff/tif_aux.c:218:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
tiff-4.7.0/libtiff/tif_aux.c:377:5: enter_function: entry to 'TIFFGetFieldDefaulted'
tiff-4.7.0/libtiff/tif_aux.c:382:5: acquire_resource: 'va_start' called here
tiff-4.7.0/libtiff/tif_aux.c:383:10: call_function: calling 'TIFFVGetFieldDefaulted' from 'TIFFGetFieldDefaulted'
#  216|       TIFFDirectory *td = &tif->tif_dir;
#  217|   
#  218|->     if (TIFFVGetField(tif, tag, ap))
#  219|           return (1);
#  220|       switch (tag)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def93]
tiff-4.7.0/libtiff/tif_dir.c:1115:28: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
tiff-4.7.0/libtiff/tif_dir.c:1146:5: enter_function: entry to 'TIFFSetField'
tiff-4.7.0/libtiff/tif_dir.c:1151:5: acquire_resource: 'va_start' called here
tiff-4.7.0/libtiff/tif_dir.c:1152:14: call_function: calling 'TIFFVSetField' from 'TIFFSetField'
# 1113|   static int OkToChangeTag(TIFF *tif, uint32_t tag)
# 1114|   {
# 1115|->     const TIFFField *fip = TIFFFindField(tif, tag, TIFF_ANY);
# 1116|       if (!fip)
# 1117|       { /* unknown tag */

Error: GCC_ANALYZER_WARNING (CWE-404): [#def94]
tiff-4.7.0/libtiff/tif_dir.c:1118:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
tiff-4.7.0/libtiff/tif_dir.c:1146:5: enter_function: entry to 'TIFFSetField'
tiff-4.7.0/libtiff/tif_dir.c:1151:5: acquire_resource: 'va_start' called here
tiff-4.7.0/libtiff/tif_dir.c:1152:14: call_function: calling 'TIFFVSetField' from 'TIFFSetField'
# 1116|       if (!fip)
# 1117|       { /* unknown tag */
# 1118|->         TIFFErrorExtR(tif, "TIFFSetField", "%s: Unknown %stag %" PRIu32,
# 1119|                         tif->tif_name, isPseudoTag(tag) ? "pseudo-" : "", tag);
# 1120|           return (0);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def95]
tiff-4.7.0/libtiff/tif_dir.c:1131:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
tiff-4.7.0/libtiff/tif_dir.c:1146:5: enter_function: entry to 'TIFFSetField'
tiff-4.7.0/libtiff/tif_dir.c:1151:5: acquire_resource: 'va_start' called here
tiff-4.7.0/libtiff/tif_dir.c:1152:14: call_function: calling 'TIFFVSetField' from 'TIFFSetField'
# 1129|            * compression and/or format of the data.
# 1130|            */
# 1131|->         TIFFErrorExtR(tif, "TIFFSetField",
# 1132|                         "%s: Cannot modify tag \"%s\" while writing",
# 1133|                         tif->tif_name, fip->field_name);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def96]
tiff-4.7.0/libtiff/tif_dir.c:1208:18: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
tiff-4.7.0/libtiff/tif_dir.c:1146:5: enter_function: entry to 'TIFFSetField'
tiff-4.7.0/libtiff/tif_dir.c:1151:5: acquire_resource: 'va_start' called here
tiff-4.7.0/libtiff/tif_dir.c:1152:14: call_function: calling 'TIFFVSetField' from 'TIFFSetField'
# 1206|   {
# 1207|       return OkToChangeTag(tif, tag)
# 1208|->                ? (*tif->tif_tagmethods.vsetfield)(tif, tag, ap)
# 1209|                  : 0;
# 1210|   }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def97]
tiff-4.7.0/libtiff/tif_dir.c:1601:28: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
tiff-4.7.0/libtiff/tif_dir.c:1582:5: enter_function: entry to 'TIFFGetField'
tiff-4.7.0/libtiff/tif_dir.c:1587:5: acquire_resource: 'va_start' called here
tiff-4.7.0/libtiff/tif_dir.c:1588:14: call_function: calling 'TIFFVGetField' from 'TIFFGetField'
# 1599|   int TIFFVGetField(TIFF *tif, uint32_t tag, va_list ap)
# 1600|   {
# 1601|->     const TIFFField *fip = TIFFFindField(tif, tag, TIFF_ANY);
# 1602|       return (fip && (isPseudoTag(tag) || TIFFFieldSet(tif, fip->field_bit))
# 1603|                   ? (*tif->tif_tagmethods.vgetfield)(tif, tag, ap)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def98]
tiff-4.7.0/libtiff/tif_dir.c:1603:19: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
tiff-4.7.0/libtiff/tif_dir.c:1582:5: enter_function: entry to 'TIFFGetField'
tiff-4.7.0/libtiff/tif_dir.c:1587:5: acquire_resource: 'va_start' called here
tiff-4.7.0/libtiff/tif_dir.c:1588:14: call_function: calling 'TIFFVGetField' from 'TIFFGetField'
# 1601|       const TIFFField *fip = TIFFFindField(tif, tag, TIFF_ANY);
# 1602|       return (fip && (isPseudoTag(tag) || TIFFFieldSet(tif, fip->field_bit))
# 1603|->                 ? (*tif->tif_tagmethods.vgetfield)(tif, tag, ap)
# 1604|                   : 0);
# 1605|   }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def99]
tiff-4.7.0/libtiff/tif_error.c:52:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
tiff-4.7.0/libtiff/tif_error.c:49:8: branch_true: following 'true' branch...
tiff-4.7.0/libtiff/tif_error.c:51:9: branch_true: ...to here
tiff-4.7.0/libtiff/tif_error.c:51:9: acquire_resource: 'va_start' called here
tiff-4.7.0/libtiff/tif_error.c:52:9: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#   50|       {
#   51|           va_start(ap, fmt);
#   52|->         (*_TIFFerrorHandler)(module, fmt, ap);
#   53|           va_end(ap);
#   54|       }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def100]
tiff-4.7.0/libtiff/tif_error.c:58:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
tiff-4.7.0/libtiff/tif_error.c:55:8: branch_true: following 'true' branch...
tiff-4.7.0/libtiff/tif_error.c:57:9: branch_true: ...to here
tiff-4.7.0/libtiff/tif_error.c:57:9: acquire_resource: 'va_start' called here
tiff-4.7.0/libtiff/tif_error.c:58:9: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#   56|       {
#   57|           va_start(ap, fmt);
#   58|->         (*_TIFFerrorHandlerExt)(0, module, fmt, ap);
#   59|           va_end(ap);
#   60|       }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def101]
tiff-4.7.0/libtiff/tif_error.c:69:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
tiff-4.7.0/libtiff/tif_error.c:66:8: branch_true: following 'true' branch...
tiff-4.7.0/libtiff/tif_error.c:68:9: branch_true: ...to here
tiff-4.7.0/libtiff/tif_error.c:68:9: acquire_resource: 'va_start' called here
tiff-4.7.0/libtiff/tif_error.c:69:9: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#   67|       {
#   68|           va_start(ap, fmt);
#   69|->         (*_TIFFerrorHandler)(module, fmt, ap);
#   70|           va_end(ap);
#   71|       }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def102]
tiff-4.7.0/libtiff/tif_error.c:75:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
tiff-4.7.0/libtiff/tif_error.c:72:8: branch_true: following 'true' branch...
tiff-4.7.0/libtiff/tif_error.c:74:9: branch_true: ...to here
tiff-4.7.0/libtiff/tif_error.c:74:9: acquire_resource: 'va_start' called here
tiff-4.7.0/libtiff/tif_error.c:75:9: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#   73|       {
#   74|           va_start(ap, fmt);
#   75|->         (*_TIFFerrorHandlerExt)(fd, module, fmt, ap);
#   76|           va_end(ap);
#   77|       }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def103]
tiff-4.7.0/libtiff/tif_error.c:87:20: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
tiff-4.7.0/libtiff/tif_error.c:84:8: branch_true: following 'true' branch...
tiff-4.7.0/libtiff/tif_error.c:86:9: acquire_resource: 'va_start' called here
tiff-4.7.0/libtiff/tif_error.c:87:20: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
#   85|       {
#   86|           va_start(ap, fmt);
#   87|->         int stop = opts->errorhandler(NULL, opts->errorhandler_user_data,
#   88|                                         module, fmt, ap);
#   89|           va_end(ap);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def104]
tiff-4.7.0/libtiff/tif_error.c:96:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
tiff-4.7.0/libtiff/tif_error.c:93:8: branch_true: following 'true' branch...
tiff-4.7.0/libtiff/tif_error.c:95:9: branch_true: ...to here
tiff-4.7.0/libtiff/tif_error.c:95:9: acquire_resource: 'va_start' called here
tiff-4.7.0/libtiff/tif_error.c:96:9: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
#   94|       {
#   95|           va_start(ap, fmt);
#   96|->         (*_TIFFerrorHandler)(module, fmt, ap);
#   97|           va_end(ap);
#   98|       }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def105]
tiff-4.7.0/libtiff/tif_error.c:102:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
tiff-4.7.0/libtiff/tif_error.c:93:8: branch_false: following 'false' branch...
tiff-4.7.0/libtiff/tif_error.c:99:9: branch_false: ...to here
tiff-4.7.0/libtiff/tif_error.c:99:8: branch_true: following 'true' branch...
tiff-4.7.0/libtiff/tif_error.c:101:9: branch_true: ...to here
tiff-4.7.0/libtiff/tif_error.c:101:9: acquire_resource: 'va_start' called here
tiff-4.7.0/libtiff/tif_error.c:102:9: danger: missing call to 'va_end' to match 'va_start' at [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4)
#  100|       {
#  101|           va_start(ap, fmt);
#  102|->         (*_TIFFerrorHandlerExt)(clientdata, module, fmt, ap);
#  103|           va_end(ap);
#  104|       }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def106]
tiff-4.7.0/libtiff/tif_error.c:113:20: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
tiff-4.7.0/libtiff/tif_error.c:110:8: branch_true: following 'true' branch...
tiff-4.7.0/libtiff/tif_error.c:112:9: acquire_resource: 'va_start' called here
tiff-4.7.0/libtiff/tif_error.c:113:20: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
#  111|       {
#  112|           va_start(ap, fmt);
#  113|->         int stop = (*tif->tif_errorhandler)(
#  114|               tif, tif->tif_errorhandler_user_data, module, fmt, ap);
#  115|           va_end(ap);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def107]
tiff-4.7.0/libtiff/tif_error.c:122:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
tiff-4.7.0/libtiff/tif_error.c:119:8: branch_true: following 'true' branch...
tiff-4.7.0/libtiff/tif_error.c:121:9: branch_true: ...to here
tiff-4.7.0/libtiff/tif_error.c:121:9: acquire_resource: 'va_start' called here
tiff-4.7.0/libtiff/tif_error.c:122:9: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
#  120|       {
#  121|           va_start(ap, fmt);
#  122|->         (*_TIFFerrorHandler)(module, fmt, ap);
#  123|           va_end(ap);
#  124|       }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def108]
tiff-4.7.0/libtiff/tif_error.c:128:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
tiff-4.7.0/libtiff/tif_error.c:119:8: branch_false: following 'false' branch...
tiff-4.7.0/libtiff/tif_error.c:125:9: branch_false: ...to here
tiff-4.7.0/libtiff/tif_error.c:125:8: branch_true: following 'true' branch...
tiff-4.7.0/libtiff/tif_error.c:127:9: branch_true: ...to here
tiff-4.7.0/libtiff/tif_error.c:127:9: acquire_resource: 'va_start' called here
tiff-4.7.0/libtiff/tif_error.c:128:9: branch_false: following 'false' branch (when 'tif' is NULL)...
tiff-4.7.0/libtiff/tif_error.c:128:9: branch_false: ...to here
tiff-4.7.0/libtiff/tif_error.c:128:9: danger: missing call to 'va_end' to match 'va_start' at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
#  126|       {
#  127|           va_start(ap, fmt);
#  128|->         (*_TIFFerrorHandlerExt)(tif ? tif->tif_clientdata : NULL, module, fmt,
#  129|                                   ap);
#  130|           va_end(ap);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def109]
tiff-4.7.0/libtiff/tif_hash_set.c:387:17: warning[-Wanalyzer-malloc-leak]: leak of 'newTabList'
tiff-4.7.0/libtiff/tif_hash_set.c:370:22: acquire_memory: allocated here
tiff-4.7.0/libtiff/tif_hash_set.c:371:8: branch_false: following 'false' branch (when 'newTabList' is non-NULL)...
 branch_false: ...to here
tiff-4.7.0/libtiff/tif_hash_set.c:381:21: branch_true: following 'true' branch...
tiff-4.7.0/libtiff/tif_hash_set.c:383:25: branch_true: ...to here
tiff-4.7.0/libtiff/tif_hash_set.c:384:16: branch_true: following 'true' branch (when 'cur' is non-NULL)...
tiff-4.7.0/libtiff/tif_hash_set.c:387:17: branch_true: ...to here
tiff-4.7.0/libtiff/tif_hash_set.c:387:17: danger: 'newTabList' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  385|           {
#  386|               const unsigned long nNewHashVal =
#  387|->                 set->fnHashFunc(cur->pData) % nNewAllocatedSize;
#  388|   #ifdef HASH_DEBUG
#  389|               if (newTabList[nNewHashVal])

Error: GCC_ANALYZER_WARNING (CWE-401): [#def110]
tiff-4.7.0/libtiff/tif_hash_set.c:483:5: warning[-Wanalyzer-malloc-leak]: leak of 'TIFFHashSetGetNewListElt(set)'
tiff-4.7.0/libtiff/tif_hash_set.c:440:6: enter_function: entry to 'TIFFHashSetInsert'
tiff-4.7.0/libtiff/tif_hash_set.c:442:5: branch_true: following 'true' branch (when 'set' is non-NULL)...
tiff-4.7.0/libtiff/tif_hash_set.c:443:19: branch_true: ...to here
tiff-4.7.0/libtiff/tif_hash_set.c:443:19: call_function: calling 'TIFFHashSetFindPtr' from 'TIFFHashSetInsert'
tiff-4.7.0/libtiff/tif_hash_set.c:443:19: return_function: returning to 'TIFFHashSetInsert' from 'TIFFHashSetFindPtr'
tiff-4.7.0/libtiff/tif_hash_set.c:444:8: branch_false: following 'false' branch...
tiff-4.7.0/libtiff/tif_hash_set.c:453:9: branch_false: ...to here
tiff-4.7.0/libtiff/tif_hash_set.c:473:25: call_function: calling 'TIFFHashSetGetNewListElt' from 'TIFFHashSetInsert'
tiff-4.7.0/libtiff/tif_hash_set.c:473:25: return_function: returning to 'TIFFHashSetInsert' from 'TIFFHashSetGetNewListElt'
tiff-4.7.0/libtiff/tif_hash_set.c:474:8: branch_false: following 'false' branch...
tiff-4.7.0/libtiff/tif_hash_set.c:480:5: branch_false: ...to here
tiff-4.7.0/libtiff/tif_hash_set.c:483:5: danger: 'TIFFHashSetGetNewListElt(set)' leaks here; was allocated at [(15)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/14)
#  481|       new_elt->psNext = set->tabList[nHashVal];
#  482|       set->tabList[nHashVal] = new_elt;
#  483|->     set->nSize++;
#  484|   
#  485|       return true;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def111]
tiff-4.7.0/libtiff/tif_lerc.c:1337:11: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
tiff-4.7.0/libtiff/tif_lerc.c:1336:5: acquire_resource: 'va_start' called here
tiff-4.7.0/libtiff/tif_lerc.c:1337:11: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
# 1335|       va_list ap;
# 1336|       va_start(ap, tag);
# 1337|->     ret = (*sp->vsetparent)(tif, tag, ap);
# 1338|       va_end(ap);
# 1339|       return ret;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def112]
tiff-4.7.0/libtiff/tif_packbits.c:109:29: warning[-Wanalyzer-null-dereference]: dereference of NULL 'lastliteral'
tiff-4.7.0/libtiff/tif_packbits.c:82:12: branch_true: following 'true' branch (when 'cc > 0')...
tiff-4.7.0/libtiff/tif_packbits.c:87:14: branch_true: ...to here
tiff-4.7.0/libtiff/tif_packbits.c:90:16: branch_true: following 'true' branch (when 'cc != 0')...
tiff-4.7.0/libtiff/tif_packbits.c:90:31: branch_true: ...to here
tiff-4.7.0/libtiff/tif_packbits.c:123:20: branch_true: following 'true' branch (when 'n > 1')...
tiff-4.7.0/libtiff/tif_packbits.c:126:24: branch_true: ...to here
tiff-4.7.0/libtiff/tif_packbits.c:126:24: branch_true: following 'true' branch (when 'n > 128')...
tiff-4.7.0/libtiff/tif_packbits.c:128:25: branch_true: ...to here
tiff-4.7.0/libtiff/tif_packbits.c:105:20: branch_false: following 'false' branch...
tiff-4.7.0/libtiff/tif_packbits.c:107:17: branch_false: ...to here
tiff-4.7.0/libtiff/tif_packbits.c:108:24: branch_true: following 'true' branch (when 'slop > 0')...
tiff-4.7.0/libtiff/tif_packbits.c:109:30: branch_true: ...to here
tiff-4.7.0/libtiff/tif_packbits.c:109:29: danger: dereference of NULL 'lastliteral'
#  107|                   op = tif->tif_rawcp;
#  108|                   while (slop-- > 0)
#  109|->                     *op++ = *lastliteral++;
#  110|                   lastliteral = tif->tif_rawcp;
#  111|               }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def113]
tiff-4.7.0/libtiff/tif_packbits.c:160:27: warning[-Wanalyzer-null-dereference]: dereference of NULL 'lastliteral'
tiff-4.7.0/libtiff/tif_packbits.c:82:12: branch_true: following 'true' branch (when 'cc > 0')...
tiff-4.7.0/libtiff/tif_packbits.c:87:14: branch_true: ...to here
tiff-4.7.0/libtiff/tif_packbits.c:90:16: branch_true: following 'true' branch (when 'cc != 0')...
tiff-4.7.0/libtiff/tif_packbits.c:90:31: branch_true: ...to here
tiff-4.7.0/libtiff/tif_packbits.c:123:20: branch_true: following 'true' branch (when 'n > 1')...
tiff-4.7.0/libtiff/tif_packbits.c:126:24: branch_true: ...to here
tiff-4.7.0/libtiff/tif_packbits.c:126:24: branch_true: following 'true' branch (when 'n > 128')...
tiff-4.7.0/libtiff/tif_packbits.c:128:25: branch_true: ...to here
tiff-4.7.0/libtiff/tif_packbits.c:145:20: branch_false: following 'false' branch (when 'n <= 1')...
tiff-4.7.0/libtiff/tif_packbits.c:160:27: branch_false: ...to here
tiff-4.7.0/libtiff/tif_packbits.c:160:27: danger: dereference of NULL 'lastliteral'
#  158|                   else
#  159|                   { /* extend literal */
#  160|->                     if (++(*lastliteral) == 127)
#  161|                           state = BASE;
#  162|                       *op++ = (uint8_t)b;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def114]
tiff-4.7.0/libtiff/tif_packbits.c:193:56: warning[-Wanalyzer-null-dereference]: dereference of NULL 'lastliteral'
tiff-4.7.0/libtiff/tif_packbits.c:82:12: branch_true: following 'true' branch (when 'cc > 0')...
tiff-4.7.0/libtiff/tif_packbits.c:87:14: branch_true: ...to here
tiff-4.7.0/libtiff/tif_packbits.c:90:16: branch_true: following 'true' branch (when 'cc != 0')...
tiff-4.7.0/libtiff/tif_packbits.c:90:31: branch_true: ...to here
tiff-4.7.0/libtiff/tif_packbits.c:123:20: branch_true: following 'true' branch (when 'n > 1')...
tiff-4.7.0/libtiff/tif_packbits.c:126:24: branch_true: ...to here
tiff-4.7.0/libtiff/tif_packbits.c:126:24: branch_true: following 'true' branch (when 'n > 128')...
tiff-4.7.0/libtiff/tif_packbits.c:128:25: branch_true: ...to here
tiff-4.7.0/libtiff/tif_packbits.c:101:16: branch_false: following 'false' branch...
tiff-4.7.0/libtiff/tif_packbits.c:114:17: branch_false: ...to here
tiff-4.7.0/libtiff/tif_packbits.c:115:20: branch_false: following 'false' branch...
tiff-4.7.0/libtiff/tif_packbits.c:117:17: branch_false: ...to here
tiff-4.7.0/libtiff/tif_packbits.c:193:56: danger: dereference of NULL 'lastliteral'
#  191|                    * to a single literal.
#  192|                    */
#  193|->                 if (n == 1 && op[-2] == (uint8_t)-1 && *lastliteral < 126)
#  194|                   {
#  195|                       state = (((*lastliteral) += 2) == 127 ? BASE : LITERAL);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def115]
tiff-4.7.0/libtiff/tif_warning.c:52:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
tiff-4.7.0/libtiff/tif_warning.c:49:8: branch_true: following 'true' branch...
tiff-4.7.0/libtiff/tif_warning.c:51:9: branch_true: ...to here
tiff-4.7.0/libtiff/tif_warning.c:51:9: acquire_resource: 'va_start' called here
tiff-4.7.0/libtiff/tif_warning.c:52:9: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#   50|       {
#   51|           va_start(ap, fmt);
#   52|->         (*_TIFFwarningHandler)(module, fmt, ap);
#   53|           va_end(ap);
#   54|       }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def116]
tiff-4.7.0/libtiff/tif_warning.c:58:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
tiff-4.7.0/libtiff/tif_warning.c:55:8: branch_true: following 'true' branch...
tiff-4.7.0/libtiff/tif_warning.c:57:9: branch_true: ...to here
tiff-4.7.0/libtiff/tif_warning.c:57:9: acquire_resource: 'va_start' called here
tiff-4.7.0/libtiff/tif_warning.c:58:9: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#   56|       {
#   57|           va_start(ap, fmt);
#   58|->         (*_TIFFwarningHandlerExt)(0, module, fmt, ap);
#   59|           va_end(ap);
#   60|       }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def117]
tiff-4.7.0/libtiff/tif_warning.c:69:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
tiff-4.7.0/libtiff/tif_warning.c:66:8: branch_true: following 'true' branch...
tiff-4.7.0/libtiff/tif_warning.c:68:9: branch_true: ...to here
tiff-4.7.0/libtiff/tif_warning.c:68:9: acquire_resource: 'va_start' called here
tiff-4.7.0/libtiff/tif_warning.c:69:9: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#   67|       {
#   68|           va_start(ap, fmt);
#   69|->         (*_TIFFwarningHandler)(module, fmt, ap);
#   70|           va_end(ap);
#   71|       }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def118]
tiff-4.7.0/libtiff/tif_warning.c:75:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
tiff-4.7.0/libtiff/tif_warning.c:72:8: branch_true: following 'true' branch...
tiff-4.7.0/libtiff/tif_warning.c:74:9: branch_true: ...to here
tiff-4.7.0/libtiff/tif_warning.c:74:9: acquire_resource: 'va_start' called here
tiff-4.7.0/libtiff/tif_warning.c:75:9: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#   73|       {
#   74|           va_start(ap, fmt);
#   75|->         (*_TIFFwarningHandlerExt)(fd, module, fmt, ap);
#   76|           va_end(ap);
#   77|       }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def119]
tiff-4.7.0/libtiff/tif_warning.c:86:20: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
tiff-4.7.0/libtiff/tif_warning.c:83:8: branch_true: following 'true' branch...
tiff-4.7.0/libtiff/tif_warning.c:85:9: acquire_resource: 'va_start' called here
tiff-4.7.0/libtiff/tif_warning.c:86:20: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
#   84|       {
#   85|           va_start(ap, fmt);
#   86|->         int stop = (*tif->tif_warnhandler)(tif, tif->tif_warnhandler_user_data,
#   87|                                              module, fmt, ap);
#   88|           va_end(ap);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def120]
tiff-4.7.0/libtiff/tif_warning.c:95:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
tiff-4.7.0/libtiff/tif_warning.c:92:8: branch_true: following 'true' branch...
tiff-4.7.0/libtiff/tif_warning.c:94:9: branch_true: ...to here
tiff-4.7.0/libtiff/tif_warning.c:94:9: acquire_resource: 'va_start' called here
tiff-4.7.0/libtiff/tif_warning.c:95:9: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
#   93|       {
#   94|           va_start(ap, fmt);
#   95|->         (*_TIFFwarningHandler)(module, fmt, ap);
#   96|           va_end(ap);
#   97|       }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def121]
tiff-4.7.0/libtiff/tif_warning.c:101:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
tiff-4.7.0/libtiff/tif_warning.c:92:8: branch_false: following 'false' branch...
tiff-4.7.0/libtiff/tif_warning.c:98:9: branch_false: ...to here
tiff-4.7.0/libtiff/tif_warning.c:98:8: branch_true: following 'true' branch...
tiff-4.7.0/libtiff/tif_warning.c:100:9: branch_true: ...to here
tiff-4.7.0/libtiff/tif_warning.c:100:9: acquire_resource: 'va_start' called here
tiff-4.7.0/libtiff/tif_warning.c:101:9: branch_false: following 'false' branch (when 'tif' is NULL)...
tiff-4.7.0/libtiff/tif_warning.c:101:9: branch_false: ...to here
tiff-4.7.0/libtiff/tif_warning.c:101:9: danger: missing call to 'va_end' to match 'va_start' at [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4)
#   99|       {
#  100|           va_start(ap, fmt);
#  101|->         (*_TIFFwarningHandlerExt)(tif ? tif->tif_clientdata : 0, module, fmt,
#  102|                                     ap);
#  103|           va_end(ap);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def122]
tiff-4.7.0/tools/fax2ps.c:218:5: warning[-Wanalyzer-malloc-leak]: leak of ‘tmpfile()’
tiff-4.7.0/tools/fax2ps.c:342:5: enter_function: entry to ‘main’
tiff-4.7.0/tools/fax2ps.c:398:8: branch_false: following ‘false’ branch (when ‘npages == 0’)...
tiff-4.7.0/tools/fax2ps.c:400:8: branch_false: ...to here
tiff-4.7.0/tools/fax2ps.c:402:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2ps.c:423:14: branch_false: ...to here
tiff-4.7.0/tools/fax2ps.c:423:14: acquire_memory: allocated here
tiff-4.7.0/tools/fax2ps.c:424:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
tiff-4.7.0/tools/fax2ps.c:449:12: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2ps.c:451:13: branch_true: ...to here
tiff-4.7.0/tools/fax2ps.c:451:13: call_function: calling ‘fax2ps’ from ‘main’
#  216|       time_t creation_time;
#  217|   
#  218|->     TIFFGetField(tif, TIFFTAG_IMAGELENGTH, &h);
#  219|       TIFFGetField(tif, TIFFTAG_IMAGEWIDTH, &w);
#  220|       if (!TIFFGetField(tif, TIFFTAG_COMPRESSION, &compression) ||

Error: GCC_ANALYZER_WARNING (CWE-401): [#def123]
tiff-4.7.0/tools/fax2ps.c:219:5: warning[-Wanalyzer-malloc-leak]: leak of ‘tmpfile()’
tiff-4.7.0/tools/fax2ps.c:342:5: enter_function: entry to ‘main’
tiff-4.7.0/tools/fax2ps.c:398:8: branch_false: following ‘false’ branch (when ‘npages == 0’)...
tiff-4.7.0/tools/fax2ps.c:400:8: branch_false: ...to here
tiff-4.7.0/tools/fax2ps.c:402:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2ps.c:423:14: branch_false: ...to here
tiff-4.7.0/tools/fax2ps.c:423:14: acquire_memory: allocated here
tiff-4.7.0/tools/fax2ps.c:424:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
tiff-4.7.0/tools/fax2ps.c:449:12: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2ps.c:451:13: branch_true: ...to here
tiff-4.7.0/tools/fax2ps.c:451:13: call_function: calling ‘fax2ps’ from ‘main’
#  217|   
#  218|       TIFFGetField(tif, TIFFTAG_IMAGELENGTH, &h);
#  219|->     TIFFGetField(tif, TIFFTAG_IMAGEWIDTH, &w);
#  220|       if (!TIFFGetField(tif, TIFFTAG_COMPRESSION, &compression) ||
#  221|           compression < COMPRESSION_CCITTRLE ||

Error: GCC_ANALYZER_WARNING (CWE-401): [#def124]
tiff-4.7.0/tools/fax2ps.c:220:10: warning[-Wanalyzer-malloc-leak]: leak of ‘tmpfile()’
tiff-4.7.0/tools/fax2ps.c:342:5: enter_function: entry to ‘main’
tiff-4.7.0/tools/fax2ps.c:398:8: branch_false: following ‘false’ branch (when ‘npages == 0’)...
tiff-4.7.0/tools/fax2ps.c:400:8: branch_false: ...to here
tiff-4.7.0/tools/fax2ps.c:402:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2ps.c:423:14: branch_false: ...to here
tiff-4.7.0/tools/fax2ps.c:423:14: acquire_memory: allocated here
tiff-4.7.0/tools/fax2ps.c:424:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
tiff-4.7.0/tools/fax2ps.c:449:12: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2ps.c:451:13: branch_true: ...to here
tiff-4.7.0/tools/fax2ps.c:451:13: call_function: calling ‘fax2ps’ from ‘main’
#  218|       TIFFGetField(tif, TIFFTAG_IMAGELENGTH, &h);
#  219|       TIFFGetField(tif, TIFFTAG_IMAGEWIDTH, &w);
#  220|->     if (!TIFFGetField(tif, TIFFTAG_COMPRESSION, &compression) ||
#  221|           compression < COMPRESSION_CCITTRLE ||
#  222|           compression > COMPRESSION_CCITT_T6)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def125]
tiff-4.7.0/tools/fax2ps.c:224:10: warning[-Wanalyzer-malloc-leak]: leak of ‘tmpfile()’
tiff-4.7.0/tools/fax2ps.c:342:5: enter_function: entry to ‘main’
tiff-4.7.0/tools/fax2ps.c:398:8: branch_false: following ‘false’ branch (when ‘npages == 0’)...
tiff-4.7.0/tools/fax2ps.c:400:8: branch_false: ...to here
tiff-4.7.0/tools/fax2ps.c:402:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2ps.c:423:14: branch_false: ...to here
tiff-4.7.0/tools/fax2ps.c:423:14: acquire_memory: allocated here
tiff-4.7.0/tools/fax2ps.c:424:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
tiff-4.7.0/tools/fax2ps.c:449:12: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2ps.c:451:13: branch_true: ...to here
tiff-4.7.0/tools/fax2ps.c:451:13: call_function: calling ‘fax2ps’ from ‘main’
#  222|           compression > COMPRESSION_CCITT_T6)
#  223|           return;
#  224|->     if (!TIFFGetField(tif, TIFFTAG_XRESOLUTION, &xres) || !xres)
#  225|       {
#  226|           TIFFWarning(TIFFFileName(tif), "No x-resolution, assuming %g dpi",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def126]
tiff-4.7.0/tools/fax2ps.c:226:9: warning[-Wanalyzer-malloc-leak]: leak of ‘tmpfile()’
tiff-4.7.0/tools/fax2ps.c:342:5: enter_function: entry to ‘main’
tiff-4.7.0/tools/fax2ps.c:398:8: branch_false: following ‘false’ branch (when ‘npages == 0’)...
tiff-4.7.0/tools/fax2ps.c:400:8: branch_false: ...to here
tiff-4.7.0/tools/fax2ps.c:402:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2ps.c:423:14: branch_false: ...to here
tiff-4.7.0/tools/fax2ps.c:423:14: acquire_memory: allocated here
tiff-4.7.0/tools/fax2ps.c:424:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
tiff-4.7.0/tools/fax2ps.c:449:12: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2ps.c:451:13: branch_true: ...to here
tiff-4.7.0/tools/fax2ps.c:451:13: call_function: calling ‘fax2ps’ from ‘main’
#  224|       if (!TIFFGetField(tif, TIFFTAG_XRESOLUTION, &xres) || !xres)
#  225|       {
#  226|->         TIFFWarning(TIFFFileName(tif), "No x-resolution, assuming %g dpi",
#  227|                       defxres);
#  228|           xres = defxres;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def127]
tiff-4.7.0/tools/fax2ps.c:230:10: warning[-Wanalyzer-malloc-leak]: leak of ‘tmpfile()’
tiff-4.7.0/tools/fax2ps.c:342:5: enter_function: entry to ‘main’
tiff-4.7.0/tools/fax2ps.c:398:8: branch_false: following ‘false’ branch (when ‘npages == 0’)...
tiff-4.7.0/tools/fax2ps.c:400:8: branch_false: ...to here
tiff-4.7.0/tools/fax2ps.c:402:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2ps.c:423:14: branch_false: ...to here
tiff-4.7.0/tools/fax2ps.c:423:14: acquire_memory: allocated here
tiff-4.7.0/tools/fax2ps.c:424:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
tiff-4.7.0/tools/fax2ps.c:449:12: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2ps.c:451:13: branch_true: ...to here
tiff-4.7.0/tools/fax2ps.c:451:13: call_function: calling ‘fax2ps’ from ‘main’
#  228|           xres = defxres;
#  229|       }
#  230|->     if (!TIFFGetField(tif, TIFFTAG_YRESOLUTION, &yres) || !yres)
#  231|       {
#  232|           TIFFWarning(TIFFFileName(tif), "No y-resolution, assuming %g lpi",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def128]
tiff-4.7.0/tools/fax2ps.c:232:9: warning[-Wanalyzer-malloc-leak]: leak of ‘tmpfile()’
tiff-4.7.0/tools/fax2ps.c:342:5: enter_function: entry to ‘main’
tiff-4.7.0/tools/fax2ps.c:398:8: branch_false: following ‘false’ branch (when ‘npages == 0’)...
tiff-4.7.0/tools/fax2ps.c:400:8: branch_false: ...to here
tiff-4.7.0/tools/fax2ps.c:402:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2ps.c:423:14: branch_false: ...to here
tiff-4.7.0/tools/fax2ps.c:423:14: acquire_memory: allocated here
tiff-4.7.0/tools/fax2ps.c:424:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
tiff-4.7.0/tools/fax2ps.c:449:12: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2ps.c:451:13: branch_true: ...to here
tiff-4.7.0/tools/fax2ps.c:451:13: call_function: calling ‘fax2ps’ from ‘main’
#  230|       if (!TIFFGetField(tif, TIFFTAG_YRESOLUTION, &yres) || !yres)
#  231|       {
#  232|->         TIFFWarning(TIFFFileName(tif), "No y-resolution, assuming %g lpi",
#  233|                       defyres);
#  234|           yres = defyres; /* XXX */

Error: CPPCHECK_WARNING (CWE-401): [#def129]
tiff-4.7.0/tools/fax2ps.c:367: error[memleakOnRealloc]: Common realloc mistake: 'pages' nulled but not freed upon failure
#  365|                   pageNumber = (uint16_t)atoi(optarg);
#  366|                   if (pages)
#  367|->                     pages = (uint16_t *)realloc(pages, (npages + 1) *
#  368|                                                              sizeof(uint16_t));
#  369|                   else

Error: GCC_ANALYZER_WARNING (CWE-401): [#def130]
tiff-4.7.0/tools/fax2ps.c:399:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pages’
tiff-4.7.0/tools/fax2ps.c:352:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
tiff-4.7.0/tools/fax2ps.c:353:9: branch_true: ...to here
tiff-4.7.0/tools/fax2ps.c:366:20: branch_false: following ‘false’ branch (when ‘pages’ is NULL)...
tiff-4.7.0/tools/fax2ps.c:370:41: branch_false: ...to here
tiff-4.7.0/tools/fax2ps.c:370:41: acquire_memory: allocated here
tiff-4.7.0/tools/fax2ps.c:371:20: branch_false: following ‘false’ branch (when ‘pages’ is non-NULL)...
tiff-4.7.0/tools/fax2ps.c:376:23: branch_false: ...to here
tiff-4.7.0/tools/fax2ps.c:352:12: branch_false: following ‘false’ branch (when ‘c == -1’)...
tiff-4.7.0/tools/fax2ps.c:398:8: branch_false: ...to here
tiff-4.7.0/tools/fax2ps.c:398:8: branch_true: following ‘true’ branch (when ‘npages != 0’)...
tiff-4.7.0/tools/fax2ps.c:399:9: branch_true: ...to here
tiff-4.7.0/tools/fax2ps.c:399:9: danger: ‘pages’ leaks here; was allocated at [(5)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/4)
#  397|           }
#  398|       if (npages > 0)
#  399|->         qsort(pages, npages, sizeof(uint16_t), pcompar);
#  400|       if (!dowarnings)
#  401|           TIFFSetWarningHandler(0);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def131]
tiff-4.7.0/tools/fax2ps.c:435:17: warning[-Wanalyzer-malloc-leak]: leak of ‘tmpfile()’
tiff-4.7.0/tools/fax2ps.c:398:8: branch_false: following ‘false’ branch (when ‘npages == 0’)...
tiff-4.7.0/tools/fax2ps.c:400:8: branch_false: ...to here
tiff-4.7.0/tools/fax2ps.c:402:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2ps.c:423:14: branch_false: ...to here
tiff-4.7.0/tools/fax2ps.c:423:14: acquire_memory: allocated here
tiff-4.7.0/tools/fax2ps.c:424:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
tiff-4.7.0/tools/fax2ps.c:433:16: branch_true: following ‘true’ branch (when ‘n > 0’)...
tiff-4.7.0/tools/fax2ps.c:435:17: branch_true: ...to here
tiff-4.7.0/tools/fax2ps.c:435:17: danger: ‘tmpfile()’ leaks here; was allocated at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
#  433|           while ((n = read(fileno(stdin), buf, sizeof(buf))) > 0)
#  434|           {
#  435|->             if (write(fileno(fd), buf, n) != n)
#  436|               {
#  437|                   fclose(fd);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def132]
tiff-4.7.0/tools/fax2ps.c:447:15: warning[-Wanalyzer-malloc-leak]: leak of ‘tmpfile()’
tiff-4.7.0/tools/fax2ps.c:398:8: branch_false: following ‘false’ branch (when ‘npages == 0’)...
tiff-4.7.0/tools/fax2ps.c:400:8: branch_false: ...to here
tiff-4.7.0/tools/fax2ps.c:402:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2ps.c:423:14: branch_false: ...to here
tiff-4.7.0/tools/fax2ps.c:423:14: acquire_memory: allocated here
tiff-4.7.0/tools/fax2ps.c:424:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
tiff-4.7.0/tools/fax2ps.c:447:15: danger: ‘tmpfile()’ leaks here; was allocated at [(5)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/4)
#  445|           tif = TIFFFdOpen(_get_osfhandle(fileno(fd)), "temp", "r");
#  446|   #else
#  447|->         tif = TIFFFdOpen(fileno(fd), "temp", "r");
#  448|   #endif
#  449|           if (tif)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def133]
tiff-4.7.0/tools/fax2tiff.c:310:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*<unknown>, "rb")’
tiff-4.7.0/tools/fax2tiff.c:234:8: branch_false: following ‘false’ branch (when ‘npages > 0’)...
tiff-4.7.0/tools/fax2tiff.c:237:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:239:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:250:8: branch_true: following ‘true’ branch (when ‘out’ is NULL)...
tiff-4.7.0/tools/fax2tiff.c:252:15: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:253:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:265:15: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:271:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:281:5: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:297:18: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2tiff.c:299:24: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:299:14: acquire_resource: opened here
tiff-4.7.0/tools/fax2tiff.c:300:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:308:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:310:9: danger: ‘fopen(*<unknown>, "rb")’ leaks here; was opened at [(13)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/12)
#  308|           client_data.fd = fileno(in);
#  309|   #endif
#  310|->         TIFFSetClientdata(faxTIFF, client_data.fh);
#  311|           TIFFSetFileName(faxTIFF, (const char *)argv[optind]);
#  312|           TIFFSetField(out, TIFFTAG_IMAGEWIDTH, xsize);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def134]
tiff-4.7.0/tools/fax2tiff.c:310:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*<unknown>, "rb")’
tiff-4.7.0/tools/fax2tiff.c:234:8: branch_false: following ‘false’ branch (when ‘npages > 0’)...
tiff-4.7.0/tools/fax2tiff.c:237:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:239:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:250:8: branch_true: following ‘true’ branch (when ‘out’ is NULL)...
tiff-4.7.0/tools/fax2tiff.c:252:15: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:253:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:265:15: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:271:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:281:5: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:297:18: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2tiff.c:299:24: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:299:14: acquire_memory: allocated here
tiff-4.7.0/tools/fax2tiff.c:300:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:308:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:310:9: danger: ‘fopen(*<unknown>, "rb")’ leaks here; was allocated at [(13)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/12)
#  308|           client_data.fd = fileno(in);
#  309|   #endif
#  310|->         TIFFSetClientdata(faxTIFF, client_data.fh);
#  311|           TIFFSetFileName(faxTIFF, (const char *)argv[optind]);
#  312|           TIFFSetField(out, TIFFTAG_IMAGEWIDTH, xsize);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def135]
tiff-4.7.0/tools/fax2tiff.c:311:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*<unknown>, "rb")’
tiff-4.7.0/tools/fax2tiff.c:234:8: branch_false: following ‘false’ branch (when ‘npages > 0’)...
tiff-4.7.0/tools/fax2tiff.c:237:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:239:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:250:8: branch_true: following ‘true’ branch (when ‘out’ is NULL)...
tiff-4.7.0/tools/fax2tiff.c:252:15: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:253:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:265:15: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:271:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:281:5: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:297:18: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2tiff.c:299:24: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:299:14: acquire_resource: opened here
tiff-4.7.0/tools/fax2tiff.c:300:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:308:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:311:9: danger: ‘fopen(*<unknown>, "rb")’ leaks here; was opened at [(13)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/12)
#  309|   #endif
#  310|           TIFFSetClientdata(faxTIFF, client_data.fh);
#  311|->         TIFFSetFileName(faxTIFF, (const char *)argv[optind]);
#  312|           TIFFSetField(out, TIFFTAG_IMAGEWIDTH, xsize);
#  313|           TIFFSetField(out, TIFFTAG_BITSPERSAMPLE, 1);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def136]
tiff-4.7.0/tools/fax2tiff.c:311:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*<unknown>, "rb")’
tiff-4.7.0/tools/fax2tiff.c:234:8: branch_false: following ‘false’ branch (when ‘npages > 0’)...
tiff-4.7.0/tools/fax2tiff.c:237:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:239:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:250:8: branch_true: following ‘true’ branch (when ‘out’ is NULL)...
tiff-4.7.0/tools/fax2tiff.c:252:15: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:253:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:265:15: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:271:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:281:5: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:297:18: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2tiff.c:299:24: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:299:14: acquire_memory: allocated here
tiff-4.7.0/tools/fax2tiff.c:300:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:308:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:311:9: danger: ‘fopen(*<unknown>, "rb")’ leaks here; was allocated at [(13)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/12)
#  309|   #endif
#  310|           TIFFSetClientdata(faxTIFF, client_data.fh);
#  311|->         TIFFSetFileName(faxTIFF, (const char *)argv[optind]);
#  312|           TIFFSetField(out, TIFFTAG_IMAGEWIDTH, xsize);
#  313|           TIFFSetField(out, TIFFTAG_BITSPERSAMPLE, 1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def137]
tiff-4.7.0/tools/fax2tiff.c:312:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*<unknown>, "rb")’
tiff-4.7.0/tools/fax2tiff.c:234:8: branch_false: following ‘false’ branch (when ‘npages > 0’)...
tiff-4.7.0/tools/fax2tiff.c:237:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:239:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:250:8: branch_true: following ‘true’ branch (when ‘out’ is NULL)...
tiff-4.7.0/tools/fax2tiff.c:252:15: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:253:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:265:15: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:271:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:281:5: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:297:18: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2tiff.c:299:24: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:299:14: acquire_resource: opened here
tiff-4.7.0/tools/fax2tiff.c:300:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:308:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:312:9: danger: ‘fopen(*<unknown>, "rb")’ leaks here; was opened at [(13)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/12)
#  310|           TIFFSetClientdata(faxTIFF, client_data.fh);
#  311|           TIFFSetFileName(faxTIFF, (const char *)argv[optind]);
#  312|->         TIFFSetField(out, TIFFTAG_IMAGEWIDTH, xsize);
#  313|           TIFFSetField(out, TIFFTAG_BITSPERSAMPLE, 1);
#  314|           TIFFSetField(out, TIFFTAG_COMPRESSION, compression_out);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def138]
tiff-4.7.0/tools/fax2tiff.c:312:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*<unknown>, "rb")’
tiff-4.7.0/tools/fax2tiff.c:234:8: branch_false: following ‘false’ branch (when ‘npages > 0’)...
tiff-4.7.0/tools/fax2tiff.c:237:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:239:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:250:8: branch_true: following ‘true’ branch (when ‘out’ is NULL)...
tiff-4.7.0/tools/fax2tiff.c:252:15: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:253:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:265:15: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:271:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:281:5: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:297:18: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2tiff.c:299:24: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:299:14: acquire_memory: allocated here
tiff-4.7.0/tools/fax2tiff.c:300:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:308:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:312:9: danger: ‘fopen(*<unknown>, "rb")’ leaks here; was allocated at [(13)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/12)
#  310|           TIFFSetClientdata(faxTIFF, client_data.fh);
#  311|           TIFFSetFileName(faxTIFF, (const char *)argv[optind]);
#  312|->         TIFFSetField(out, TIFFTAG_IMAGEWIDTH, xsize);
#  313|           TIFFSetField(out, TIFFTAG_BITSPERSAMPLE, 1);
#  314|           TIFFSetField(out, TIFFTAG_COMPRESSION, compression_out);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def139]
tiff-4.7.0/tools/fax2tiff.c:313:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*<unknown>, "rb")’
tiff-4.7.0/tools/fax2tiff.c:234:8: branch_false: following ‘false’ branch (when ‘npages > 0’)...
tiff-4.7.0/tools/fax2tiff.c:237:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:239:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:250:8: branch_true: following ‘true’ branch (when ‘out’ is NULL)...
tiff-4.7.0/tools/fax2tiff.c:252:15: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:253:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:265:15: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:271:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:281:5: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:297:18: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2tiff.c:299:24: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:299:14: acquire_resource: opened here
tiff-4.7.0/tools/fax2tiff.c:300:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:308:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:313:9: danger: ‘fopen(*<unknown>, "rb")’ leaks here; was opened at [(13)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/12)
#  311|           TIFFSetFileName(faxTIFF, (const char *)argv[optind]);
#  312|           TIFFSetField(out, TIFFTAG_IMAGEWIDTH, xsize);
#  313|->         TIFFSetField(out, TIFFTAG_BITSPERSAMPLE, 1);
#  314|           TIFFSetField(out, TIFFTAG_COMPRESSION, compression_out);
#  315|           TIFFSetField(out, TIFFTAG_PHOTOMETRIC, photometric_out);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def140]
tiff-4.7.0/tools/fax2tiff.c:313:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*<unknown>, "rb")’
tiff-4.7.0/tools/fax2tiff.c:234:8: branch_false: following ‘false’ branch (when ‘npages > 0’)...
tiff-4.7.0/tools/fax2tiff.c:237:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:239:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:250:8: branch_true: following ‘true’ branch (when ‘out’ is NULL)...
tiff-4.7.0/tools/fax2tiff.c:252:15: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:253:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:265:15: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:271:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:281:5: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:297:18: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2tiff.c:299:24: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:299:14: acquire_memory: allocated here
tiff-4.7.0/tools/fax2tiff.c:300:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:308:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:313:9: danger: ‘fopen(*<unknown>, "rb")’ leaks here; was allocated at [(13)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/12)
#  311|           TIFFSetFileName(faxTIFF, (const char *)argv[optind]);
#  312|           TIFFSetField(out, TIFFTAG_IMAGEWIDTH, xsize);
#  313|->         TIFFSetField(out, TIFFTAG_BITSPERSAMPLE, 1);
#  314|           TIFFSetField(out, TIFFTAG_COMPRESSION, compression_out);
#  315|           TIFFSetField(out, TIFFTAG_PHOTOMETRIC, photometric_out);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def141]
tiff-4.7.0/tools/fax2tiff.c:314:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*<unknown>, "rb")’
tiff-4.7.0/tools/fax2tiff.c:234:8: branch_false: following ‘false’ branch (when ‘npages > 0’)...
tiff-4.7.0/tools/fax2tiff.c:237:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:239:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:250:8: branch_true: following ‘true’ branch (when ‘out’ is NULL)...
tiff-4.7.0/tools/fax2tiff.c:252:15: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:253:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:265:15: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:271:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:281:5: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:297:18: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2tiff.c:299:24: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:299:14: acquire_resource: opened here
tiff-4.7.0/tools/fax2tiff.c:300:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:308:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:314:9: danger: ‘fopen(*<unknown>, "rb")’ leaks here; was opened at [(13)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/12)
#  312|           TIFFSetField(out, TIFFTAG_IMAGEWIDTH, xsize);
#  313|           TIFFSetField(out, TIFFTAG_BITSPERSAMPLE, 1);
#  314|->         TIFFSetField(out, TIFFTAG_COMPRESSION, compression_out);
#  315|           TIFFSetField(out, TIFFTAG_PHOTOMETRIC, photometric_out);
#  316|           TIFFSetField(out, TIFFTAG_ORIENTATION, ORIENTATION_TOPLEFT);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def142]
tiff-4.7.0/tools/fax2tiff.c:314:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*<unknown>, "rb")’
tiff-4.7.0/tools/fax2tiff.c:234:8: branch_false: following ‘false’ branch (when ‘npages > 0’)...
tiff-4.7.0/tools/fax2tiff.c:237:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:239:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:250:8: branch_true: following ‘true’ branch (when ‘out’ is NULL)...
tiff-4.7.0/tools/fax2tiff.c:252:15: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:253:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:265:15: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:271:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:281:5: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:297:18: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2tiff.c:299:24: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:299:14: acquire_memory: allocated here
tiff-4.7.0/tools/fax2tiff.c:300:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:308:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:314:9: danger: ‘fopen(*<unknown>, "rb")’ leaks here; was allocated at [(13)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/12)
#  312|           TIFFSetField(out, TIFFTAG_IMAGEWIDTH, xsize);
#  313|           TIFFSetField(out, TIFFTAG_BITSPERSAMPLE, 1);
#  314|->         TIFFSetField(out, TIFFTAG_COMPRESSION, compression_out);
#  315|           TIFFSetField(out, TIFFTAG_PHOTOMETRIC, photometric_out);
#  316|           TIFFSetField(out, TIFFTAG_ORIENTATION, ORIENTATION_TOPLEFT);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def143]
tiff-4.7.0/tools/fax2tiff.c:315:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*<unknown>, "rb")’
tiff-4.7.0/tools/fax2tiff.c:234:8: branch_false: following ‘false’ branch (when ‘npages > 0’)...
tiff-4.7.0/tools/fax2tiff.c:237:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:239:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:250:8: branch_true: following ‘true’ branch (when ‘out’ is NULL)...
tiff-4.7.0/tools/fax2tiff.c:252:15: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:253:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:265:15: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:271:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:281:5: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:297:18: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2tiff.c:299:24: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:299:14: acquire_resource: opened here
tiff-4.7.0/tools/fax2tiff.c:300:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:308:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:315:9: danger: ‘fopen(*<unknown>, "rb")’ leaks here; was opened at [(13)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/12)
#  313|           TIFFSetField(out, TIFFTAG_BITSPERSAMPLE, 1);
#  314|           TIFFSetField(out, TIFFTAG_COMPRESSION, compression_out);
#  315|->         TIFFSetField(out, TIFFTAG_PHOTOMETRIC, photometric_out);
#  316|           TIFFSetField(out, TIFFTAG_ORIENTATION, ORIENTATION_TOPLEFT);
#  317|           TIFFSetField(out, TIFFTAG_SAMPLESPERPIXEL, 1);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def144]
tiff-4.7.0/tools/fax2tiff.c:315:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*<unknown>, "rb")’
tiff-4.7.0/tools/fax2tiff.c:234:8: branch_false: following ‘false’ branch (when ‘npages > 0’)...
tiff-4.7.0/tools/fax2tiff.c:237:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:239:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:250:8: branch_true: following ‘true’ branch (when ‘out’ is NULL)...
tiff-4.7.0/tools/fax2tiff.c:252:15: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:253:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:265:15: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:271:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:281:5: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:297:18: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2tiff.c:299:24: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:299:14: acquire_memory: allocated here
tiff-4.7.0/tools/fax2tiff.c:300:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:308:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:315:9: danger: ‘fopen(*<unknown>, "rb")’ leaks here; was allocated at [(13)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/12)
#  313|           TIFFSetField(out, TIFFTAG_BITSPERSAMPLE, 1);
#  314|           TIFFSetField(out, TIFFTAG_COMPRESSION, compression_out);
#  315|->         TIFFSetField(out, TIFFTAG_PHOTOMETRIC, photometric_out);
#  316|           TIFFSetField(out, TIFFTAG_ORIENTATION, ORIENTATION_TOPLEFT);
#  317|           TIFFSetField(out, TIFFTAG_SAMPLESPERPIXEL, 1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def145]
tiff-4.7.0/tools/fax2tiff.c:316:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*<unknown>, "rb")’
tiff-4.7.0/tools/fax2tiff.c:234:8: branch_false: following ‘false’ branch (when ‘npages > 0’)...
tiff-4.7.0/tools/fax2tiff.c:237:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:239:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:250:8: branch_true: following ‘true’ branch (when ‘out’ is NULL)...
tiff-4.7.0/tools/fax2tiff.c:252:15: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:253:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:265:15: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:271:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:281:5: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:297:18: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2tiff.c:299:24: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:299:14: acquire_resource: opened here
tiff-4.7.0/tools/fax2tiff.c:300:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:308:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:316:9: danger: ‘fopen(*<unknown>, "rb")’ leaks here; was opened at [(13)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/12)
#  314|           TIFFSetField(out, TIFFTAG_COMPRESSION, compression_out);
#  315|           TIFFSetField(out, TIFFTAG_PHOTOMETRIC, photometric_out);
#  316|->         TIFFSetField(out, TIFFTAG_ORIENTATION, ORIENTATION_TOPLEFT);
#  317|           TIFFSetField(out, TIFFTAG_SAMPLESPERPIXEL, 1);
#  318|           switch (compression_out)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def146]
tiff-4.7.0/tools/fax2tiff.c:316:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*<unknown>, "rb")’
tiff-4.7.0/tools/fax2tiff.c:234:8: branch_false: following ‘false’ branch (when ‘npages > 0’)...
tiff-4.7.0/tools/fax2tiff.c:237:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:239:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:250:8: branch_true: following ‘true’ branch (when ‘out’ is NULL)...
tiff-4.7.0/tools/fax2tiff.c:252:15: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:253:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:265:15: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:271:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:281:5: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:297:18: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2tiff.c:299:24: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:299:14: acquire_memory: allocated here
tiff-4.7.0/tools/fax2tiff.c:300:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:308:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:316:9: danger: ‘fopen(*<unknown>, "rb")’ leaks here; was allocated at [(13)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/12)
#  314|           TIFFSetField(out, TIFFTAG_COMPRESSION, compression_out);
#  315|           TIFFSetField(out, TIFFTAG_PHOTOMETRIC, photometric_out);
#  316|->         TIFFSetField(out, TIFFTAG_ORIENTATION, ORIENTATION_TOPLEFT);
#  317|           TIFFSetField(out, TIFFTAG_SAMPLESPERPIXEL, 1);
#  318|           switch (compression_out)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def147]
tiff-4.7.0/tools/fax2tiff.c:317:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*<unknown>, "rb")’
tiff-4.7.0/tools/fax2tiff.c:234:8: branch_false: following ‘false’ branch (when ‘npages > 0’)...
tiff-4.7.0/tools/fax2tiff.c:237:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:239:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:250:8: branch_true: following ‘true’ branch (when ‘out’ is NULL)...
tiff-4.7.0/tools/fax2tiff.c:252:15: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:253:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:265:15: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:271:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:281:5: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:297:18: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2tiff.c:299:24: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:299:14: acquire_resource: opened here
tiff-4.7.0/tools/fax2tiff.c:300:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:308:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:317:9: danger: ‘fopen(*<unknown>, "rb")’ leaks here; was opened at [(13)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/12)
#  315|           TIFFSetField(out, TIFFTAG_PHOTOMETRIC, photometric_out);
#  316|           TIFFSetField(out, TIFFTAG_ORIENTATION, ORIENTATION_TOPLEFT);
#  317|->         TIFFSetField(out, TIFFTAG_SAMPLESPERPIXEL, 1);
#  318|           switch (compression_out)
#  319|           {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def148]
tiff-4.7.0/tools/fax2tiff.c:317:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*<unknown>, "rb")’
tiff-4.7.0/tools/fax2tiff.c:234:8: branch_false: following ‘false’ branch (when ‘npages > 0’)...
tiff-4.7.0/tools/fax2tiff.c:237:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:239:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:250:8: branch_true: following ‘true’ branch (when ‘out’ is NULL)...
tiff-4.7.0/tools/fax2tiff.c:252:15: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:253:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:265:15: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:271:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:281:5: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:297:18: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2tiff.c:299:24: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:299:14: acquire_memory: allocated here
tiff-4.7.0/tools/fax2tiff.c:300:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:308:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:317:9: danger: ‘fopen(*<unknown>, "rb")’ leaks here; was allocated at [(13)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/12)
#  315|           TIFFSetField(out, TIFFTAG_PHOTOMETRIC, photometric_out);
#  316|           TIFFSetField(out, TIFFTAG_ORIENTATION, ORIENTATION_TOPLEFT);
#  317|->         TIFFSetField(out, TIFFTAG_SAMPLESPERPIXEL, 1);
#  318|           switch (compression_out)
#  319|           {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def149]
tiff-4.7.0/tools/fax2tiff.c:322:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*<unknown>, "rb")’
tiff-4.7.0/tools/fax2tiff.c:234:8: branch_false: following ‘false’ branch (when ‘npages > 0’)...
tiff-4.7.0/tools/fax2tiff.c:237:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:239:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:250:8: branch_true: following ‘true’ branch (when ‘out’ is NULL)...
tiff-4.7.0/tools/fax2tiff.c:252:15: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:253:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:265:15: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:271:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:281:5: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:297:18: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2tiff.c:299:24: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:299:14: acquire_resource: opened here
tiff-4.7.0/tools/fax2tiff.c:300:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:308:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:322:17: danger: ‘fopen(*<unknown>, "rb")’ leaks here; was opened at [(13)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/12)
#  320|               /* g3 */
#  321|               case COMPRESSION_CCITTFAX3:
#  322|->                 TIFFSetField(out, TIFFTAG_GROUP3OPTIONS, group3options_out);
#  323|                   TIFFSetField(out, TIFFTAG_FAXMODE, mode);
#  324|                   rowsperstrip =

Error: GCC_ANALYZER_WARNING (CWE-401): [#def150]
tiff-4.7.0/tools/fax2tiff.c:322:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*<unknown>, "rb")’
tiff-4.7.0/tools/fax2tiff.c:234:8: branch_false: following ‘false’ branch (when ‘npages > 0’)...
tiff-4.7.0/tools/fax2tiff.c:237:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:239:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:250:8: branch_true: following ‘true’ branch (when ‘out’ is NULL)...
tiff-4.7.0/tools/fax2tiff.c:252:15: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:253:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:265:15: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:271:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:281:5: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:297:18: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2tiff.c:299:24: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:299:14: acquire_memory: allocated here
tiff-4.7.0/tools/fax2tiff.c:300:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:308:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:322:17: danger: ‘fopen(*<unknown>, "rb")’ leaks here; was allocated at [(13)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/12)
#  320|               /* g3 */
#  321|               case COMPRESSION_CCITTFAX3:
#  322|->                 TIFFSetField(out, TIFFTAG_GROUP3OPTIONS, group3options_out);
#  323|                   TIFFSetField(out, TIFFTAG_FAXMODE, mode);
#  324|                   rowsperstrip =

Error: GCC_ANALYZER_WARNING (CWE-775): [#def151]
tiff-4.7.0/tools/fax2tiff.c:323:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*<unknown>, "rb")’
tiff-4.7.0/tools/fax2tiff.c:234:8: branch_false: following ‘false’ branch (when ‘npages > 0’)...
tiff-4.7.0/tools/fax2tiff.c:237:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:239:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:250:8: branch_true: following ‘true’ branch (when ‘out’ is NULL)...
tiff-4.7.0/tools/fax2tiff.c:252:15: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:253:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:265:15: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:271:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:281:5: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:297:18: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2tiff.c:299:24: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:299:14: acquire_resource: opened here
tiff-4.7.0/tools/fax2tiff.c:300:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:308:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:323:17: danger: ‘fopen(*<unknown>, "rb")’ leaks here; was opened at [(13)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/12)
#  321|               case COMPRESSION_CCITTFAX3:
#  322|                   TIFFSetField(out, TIFFTAG_GROUP3OPTIONS, group3options_out);
#  323|->                 TIFFSetField(out, TIFFTAG_FAXMODE, mode);
#  324|                   rowsperstrip =
#  325|                       (defrowsperstrip) ? defrowsperstrip : (uint32_t)-1L;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def152]
tiff-4.7.0/tools/fax2tiff.c:323:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*<unknown>, "rb")’
tiff-4.7.0/tools/fax2tiff.c:234:8: branch_false: following ‘false’ branch (when ‘npages > 0’)...
tiff-4.7.0/tools/fax2tiff.c:237:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:239:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:250:8: branch_true: following ‘true’ branch (when ‘out’ is NULL)...
tiff-4.7.0/tools/fax2tiff.c:252:15: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:253:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:265:15: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:271:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:281:5: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:297:18: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2tiff.c:299:24: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:299:14: acquire_memory: allocated here
tiff-4.7.0/tools/fax2tiff.c:300:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:308:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:323:17: danger: ‘fopen(*<unknown>, "rb")’ leaks here; was allocated at [(13)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/12)
#  321|               case COMPRESSION_CCITTFAX3:
#  322|                   TIFFSetField(out, TIFFTAG_GROUP3OPTIONS, group3options_out);
#  323|->                 TIFFSetField(out, TIFFTAG_FAXMODE, mode);
#  324|                   rowsperstrip =
#  325|                       (defrowsperstrip) ? defrowsperstrip : (uint32_t)-1L;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def153]
tiff-4.7.0/tools/fax2tiff.c:340:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*<unknown>, "rb")’
tiff-4.7.0/tools/fax2tiff.c:111:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
tiff-4.7.0/tools/fax2tiff.c:113:9: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:111:12: branch_false: following ‘false’ branch (when ‘c == -1’)...
tiff-4.7.0/tools/fax2tiff.c:233:14: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:234:8: branch_false: following ‘false’ branch (when ‘npages > 0’)...
tiff-4.7.0/tools/fax2tiff.c:237:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:239:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:250:8: branch_true: following ‘true’ branch (when ‘out’ is NULL)...
tiff-4.7.0/tools/fax2tiff.c:252:15: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:253:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:265:15: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:271:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:281:5: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:297:18: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2tiff.c:299:24: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:299:14: acquire_resource: opened here
tiff-4.7.0/tools/fax2tiff.c:300:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:308:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:325:21: branch_false: following ‘false’ branch (when ‘defrowsperstrip == 0’)...
 branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:340:9: danger: ‘fopen(*<unknown>, "rb")’ leaks here; was opened at [(19)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/18)
#  338|                                                    : TIFFDefaultStripSize(out, 0);
#  339|           }
#  340|->         TIFFSetField(out, TIFFTAG_ROWSPERSTRIP, rowsperstrip);
#  341|           TIFFSetField(out, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG);
#  342|           TIFFSetField(out, TIFFTAG_FILLORDER, fillorder_out);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def154]
tiff-4.7.0/tools/fax2tiff.c:340:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*<unknown>, "rb")’
tiff-4.7.0/tools/fax2tiff.c:111:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
tiff-4.7.0/tools/fax2tiff.c:113:9: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:111:12: branch_false: following ‘false’ branch (when ‘c == -1’)...
tiff-4.7.0/tools/fax2tiff.c:233:14: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:234:8: branch_false: following ‘false’ branch (when ‘npages > 0’)...
tiff-4.7.0/tools/fax2tiff.c:237:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:239:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:250:8: branch_true: following ‘true’ branch (when ‘out’ is NULL)...
tiff-4.7.0/tools/fax2tiff.c:252:15: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:253:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:265:15: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:271:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:281:5: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:297:18: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2tiff.c:299:24: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:299:14: acquire_memory: allocated here
tiff-4.7.0/tools/fax2tiff.c:300:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:308:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:325:21: branch_false: following ‘false’ branch (when ‘defrowsperstrip == 0’)...
 branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:340:9: danger: ‘fopen(*<unknown>, "rb")’ leaks here; was allocated at [(19)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/18)
#  338|                                                    : TIFFDefaultStripSize(out, 0);
#  339|           }
#  340|->         TIFFSetField(out, TIFFTAG_ROWSPERSTRIP, rowsperstrip);
#  341|           TIFFSetField(out, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG);
#  342|           TIFFSetField(out, TIFFTAG_FILLORDER, fillorder_out);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def155]
tiff-4.7.0/tools/fax2tiff.c:341:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*<unknown>, "rb")’
tiff-4.7.0/tools/fax2tiff.c:111:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
tiff-4.7.0/tools/fax2tiff.c:113:9: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:111:12: branch_false: following ‘false’ branch (when ‘c == -1’)...
tiff-4.7.0/tools/fax2tiff.c:233:14: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:234:8: branch_false: following ‘false’ branch (when ‘npages > 0’)...
tiff-4.7.0/tools/fax2tiff.c:237:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:239:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:250:8: branch_true: following ‘true’ branch (when ‘out’ is NULL)...
tiff-4.7.0/tools/fax2tiff.c:252:15: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:253:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:265:15: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:271:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:281:5: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:297:18: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2tiff.c:299:24: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:299:14: acquire_resource: opened here
tiff-4.7.0/tools/fax2tiff.c:300:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:308:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:341:9: danger: ‘fopen(*<unknown>, "rb")’ leaks here; was opened at [(19)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/18)
#  339|           }
#  340|           TIFFSetField(out, TIFFTAG_ROWSPERSTRIP, rowsperstrip);
#  341|->         TIFFSetField(out, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG);
#  342|           TIFFSetField(out, TIFFTAG_FILLORDER, fillorder_out);
#  343|           TIFFSetField(out, TIFFTAG_SOFTWARE, "fax2tiff");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def156]
tiff-4.7.0/tools/fax2tiff.c:341:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*<unknown>, "rb")’
tiff-4.7.0/tools/fax2tiff.c:111:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
tiff-4.7.0/tools/fax2tiff.c:113:9: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:111:12: branch_false: following ‘false’ branch (when ‘c == -1’)...
tiff-4.7.0/tools/fax2tiff.c:233:14: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:234:8: branch_false: following ‘false’ branch (when ‘npages > 0’)...
tiff-4.7.0/tools/fax2tiff.c:237:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:239:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:250:8: branch_true: following ‘true’ branch (when ‘out’ is NULL)...
tiff-4.7.0/tools/fax2tiff.c:252:15: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:253:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:265:15: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:271:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:281:5: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:297:18: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2tiff.c:299:24: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:299:14: acquire_memory: allocated here
tiff-4.7.0/tools/fax2tiff.c:300:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:308:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:341:9: danger: ‘fopen(*<unknown>, "rb")’ leaks here; was allocated at [(19)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/18)
#  339|           }
#  340|           TIFFSetField(out, TIFFTAG_ROWSPERSTRIP, rowsperstrip);
#  341|->         TIFFSetField(out, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG);
#  342|           TIFFSetField(out, TIFFTAG_FILLORDER, fillorder_out);
#  343|           TIFFSetField(out, TIFFTAG_SOFTWARE, "fax2tiff");

Error: GCC_ANALYZER_WARNING (CWE-775): [#def157]
tiff-4.7.0/tools/fax2tiff.c:342:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*<unknown>, "rb")’
tiff-4.7.0/tools/fax2tiff.c:111:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
tiff-4.7.0/tools/fax2tiff.c:113:9: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:111:12: branch_false: following ‘false’ branch (when ‘c == -1’)...
tiff-4.7.0/tools/fax2tiff.c:233:14: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:234:8: branch_false: following ‘false’ branch (when ‘npages > 0’)...
tiff-4.7.0/tools/fax2tiff.c:237:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:239:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:250:8: branch_true: following ‘true’ branch (when ‘out’ is NULL)...
tiff-4.7.0/tools/fax2tiff.c:252:15: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:253:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:265:15: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:271:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:281:5: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:297:18: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2tiff.c:299:24: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:299:14: acquire_resource: opened here
tiff-4.7.0/tools/fax2tiff.c:300:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:308:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:342:9: danger: ‘fopen(*<unknown>, "rb")’ leaks here; was opened at [(19)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/18)
#  340|           TIFFSetField(out, TIFFTAG_ROWSPERSTRIP, rowsperstrip);
#  341|           TIFFSetField(out, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG);
#  342|->         TIFFSetField(out, TIFFTAG_FILLORDER, fillorder_out);
#  343|           TIFFSetField(out, TIFFTAG_SOFTWARE, "fax2tiff");
#  344|           TIFFSetField(out, TIFFTAG_XRESOLUTION, 204.0);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def158]
tiff-4.7.0/tools/fax2tiff.c:342:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*<unknown>, "rb")’
tiff-4.7.0/tools/fax2tiff.c:111:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
tiff-4.7.0/tools/fax2tiff.c:113:9: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:111:12: branch_false: following ‘false’ branch (when ‘c == -1’)...
tiff-4.7.0/tools/fax2tiff.c:233:14: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:234:8: branch_false: following ‘false’ branch (when ‘npages > 0’)...
tiff-4.7.0/tools/fax2tiff.c:237:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:239:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:250:8: branch_true: following ‘true’ branch (when ‘out’ is NULL)...
tiff-4.7.0/tools/fax2tiff.c:252:15: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:253:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:265:15: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:271:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:281:5: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:297:18: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2tiff.c:299:24: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:299:14: acquire_memory: allocated here
tiff-4.7.0/tools/fax2tiff.c:300:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:308:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:342:9: danger: ‘fopen(*<unknown>, "rb")’ leaks here; was allocated at [(19)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/18)
#  340|           TIFFSetField(out, TIFFTAG_ROWSPERSTRIP, rowsperstrip);
#  341|           TIFFSetField(out, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG);
#  342|->         TIFFSetField(out, TIFFTAG_FILLORDER, fillorder_out);
#  343|           TIFFSetField(out, TIFFTAG_SOFTWARE, "fax2tiff");
#  344|           TIFFSetField(out, TIFFTAG_XRESOLUTION, 204.0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def159]
tiff-4.7.0/tools/fax2tiff.c:343:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*<unknown>, "rb")’
tiff-4.7.0/tools/fax2tiff.c:111:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
tiff-4.7.0/tools/fax2tiff.c:113:9: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:111:12: branch_false: following ‘false’ branch (when ‘c == -1’)...
tiff-4.7.0/tools/fax2tiff.c:233:14: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:234:8: branch_false: following ‘false’ branch (when ‘npages > 0’)...
tiff-4.7.0/tools/fax2tiff.c:237:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:239:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:250:8: branch_true: following ‘true’ branch (when ‘out’ is NULL)...
tiff-4.7.0/tools/fax2tiff.c:252:15: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:253:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:265:15: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:271:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:281:5: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:297:18: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2tiff.c:299:24: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:299:14: acquire_resource: opened here
tiff-4.7.0/tools/fax2tiff.c:300:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:308:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:343:9: danger: ‘fopen(*<unknown>, "rb")’ leaks here; was opened at [(19)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/18)
#  341|           TIFFSetField(out, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG);
#  342|           TIFFSetField(out, TIFFTAG_FILLORDER, fillorder_out);
#  343|->         TIFFSetField(out, TIFFTAG_SOFTWARE, "fax2tiff");
#  344|           TIFFSetField(out, TIFFTAG_XRESOLUTION, 204.0);
#  345|           if (!stretch)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def160]
tiff-4.7.0/tools/fax2tiff.c:343:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*<unknown>, "rb")’
tiff-4.7.0/tools/fax2tiff.c:111:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
tiff-4.7.0/tools/fax2tiff.c:113:9: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:111:12: branch_false: following ‘false’ branch (when ‘c == -1’)...
tiff-4.7.0/tools/fax2tiff.c:233:14: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:234:8: branch_false: following ‘false’ branch (when ‘npages > 0’)...
tiff-4.7.0/tools/fax2tiff.c:237:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:239:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:250:8: branch_true: following ‘true’ branch (when ‘out’ is NULL)...
tiff-4.7.0/tools/fax2tiff.c:252:15: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:253:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:265:15: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:271:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:281:5: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:297:18: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2tiff.c:299:24: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:299:14: acquire_memory: allocated here
tiff-4.7.0/tools/fax2tiff.c:300:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:308:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:343:9: danger: ‘fopen(*<unknown>, "rb")’ leaks here; was allocated at [(19)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/18)
#  341|           TIFFSetField(out, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG);
#  342|           TIFFSetField(out, TIFFTAG_FILLORDER, fillorder_out);
#  343|->         TIFFSetField(out, TIFFTAG_SOFTWARE, "fax2tiff");
#  344|           TIFFSetField(out, TIFFTAG_XRESOLUTION, 204.0);
#  345|           if (!stretch)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def161]
tiff-4.7.0/tools/fax2tiff.c:344:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*<unknown>, "rb")’
tiff-4.7.0/tools/fax2tiff.c:111:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
tiff-4.7.0/tools/fax2tiff.c:113:9: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:111:12: branch_false: following ‘false’ branch (when ‘c == -1’)...
tiff-4.7.0/tools/fax2tiff.c:233:14: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:234:8: branch_false: following ‘false’ branch (when ‘npages > 0’)...
tiff-4.7.0/tools/fax2tiff.c:237:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:239:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:250:8: branch_true: following ‘true’ branch (when ‘out’ is NULL)...
tiff-4.7.0/tools/fax2tiff.c:252:15: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:253:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:265:15: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:271:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:281:5: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:297:18: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2tiff.c:299:24: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:299:14: acquire_resource: opened here
tiff-4.7.0/tools/fax2tiff.c:300:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:308:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:344:9: danger: ‘fopen(*<unknown>, "rb")’ leaks here; was opened at [(19)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/18)
#  342|           TIFFSetField(out, TIFFTAG_FILLORDER, fillorder_out);
#  343|           TIFFSetField(out, TIFFTAG_SOFTWARE, "fax2tiff");
#  344|->         TIFFSetField(out, TIFFTAG_XRESOLUTION, 204.0);
#  345|           if (!stretch)
#  346|           {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def162]
tiff-4.7.0/tools/fax2tiff.c:344:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*<unknown>, "rb")’
tiff-4.7.0/tools/fax2tiff.c:111:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
tiff-4.7.0/tools/fax2tiff.c:113:9: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:111:12: branch_false: following ‘false’ branch (when ‘c == -1’)...
tiff-4.7.0/tools/fax2tiff.c:233:14: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:234:8: branch_false: following ‘false’ branch (when ‘npages > 0’)...
tiff-4.7.0/tools/fax2tiff.c:237:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:239:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:250:8: branch_true: following ‘true’ branch (when ‘out’ is NULL)...
tiff-4.7.0/tools/fax2tiff.c:252:15: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:253:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:265:15: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:271:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:281:5: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:297:18: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2tiff.c:299:24: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:299:14: acquire_memory: allocated here
tiff-4.7.0/tools/fax2tiff.c:300:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:308:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:344:9: danger: ‘fopen(*<unknown>, "rb")’ leaks here; was allocated at [(19)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/18)
#  342|           TIFFSetField(out, TIFFTAG_FILLORDER, fillorder_out);
#  343|           TIFFSetField(out, TIFFTAG_SOFTWARE, "fax2tiff");
#  344|->         TIFFSetField(out, TIFFTAG_XRESOLUTION, 204.0);
#  345|           if (!stretch)
#  346|           {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def163]
tiff-4.7.0/tools/fax2tiff.c:347:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*<unknown>, "rb")’
tiff-4.7.0/tools/fax2tiff.c:111:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
tiff-4.7.0/tools/fax2tiff.c:113:9: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:111:12: branch_false: following ‘false’ branch (when ‘c == -1’)...
tiff-4.7.0/tools/fax2tiff.c:233:14: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:234:8: branch_false: following ‘false’ branch (when ‘npages > 0’)...
tiff-4.7.0/tools/fax2tiff.c:237:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:239:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:250:8: branch_true: following ‘true’ branch (when ‘out’ is NULL)...
tiff-4.7.0/tools/fax2tiff.c:252:15: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:253:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:265:15: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:271:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:281:5: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:297:18: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2tiff.c:299:24: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:299:14: acquire_resource: opened here
tiff-4.7.0/tools/fax2tiff.c:300:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:308:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:345:12: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2tiff.c:347:13: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:347:13: danger: ‘fopen(*<unknown>, "rb")’ leaks here; was opened at [(19)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/18)
#  345|           if (!stretch)
#  346|           {
#  347|->             TIFFGetField(faxTIFF, TIFFTAG_YRESOLUTION, &resY);
#  348|               TIFFSetField(out, TIFFTAG_YRESOLUTION, resY);
#  349|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def164]
tiff-4.7.0/tools/fax2tiff.c:347:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*<unknown>, "rb")’
tiff-4.7.0/tools/fax2tiff.c:111:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
tiff-4.7.0/tools/fax2tiff.c:113:9: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:111:12: branch_false: following ‘false’ branch (when ‘c == -1’)...
tiff-4.7.0/tools/fax2tiff.c:233:14: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:234:8: branch_false: following ‘false’ branch (when ‘npages > 0’)...
tiff-4.7.0/tools/fax2tiff.c:237:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:239:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:250:8: branch_true: following ‘true’ branch (when ‘out’ is NULL)...
tiff-4.7.0/tools/fax2tiff.c:252:15: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:253:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:265:15: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:271:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:281:5: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:297:18: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2tiff.c:299:24: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:299:14: acquire_memory: allocated here
tiff-4.7.0/tools/fax2tiff.c:300:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:308:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:345:12: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2tiff.c:347:13: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:347:13: danger: ‘fopen(*<unknown>, "rb")’ leaks here; was allocated at [(19)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/18)
#  345|           if (!stretch)
#  346|           {
#  347|->             TIFFGetField(faxTIFF, TIFFTAG_YRESOLUTION, &resY);
#  348|               TIFFSetField(out, TIFFTAG_YRESOLUTION, resY);
#  349|           }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def165]
tiff-4.7.0/tools/fax2tiff.c:348:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*<unknown>, "rb")’
tiff-4.7.0/tools/fax2tiff.c:111:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
tiff-4.7.0/tools/fax2tiff.c:113:9: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:111:12: branch_false: following ‘false’ branch (when ‘c == -1’)...
tiff-4.7.0/tools/fax2tiff.c:233:14: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:234:8: branch_false: following ‘false’ branch (when ‘npages > 0’)...
tiff-4.7.0/tools/fax2tiff.c:237:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:239:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:250:8: branch_true: following ‘true’ branch (when ‘out’ is NULL)...
tiff-4.7.0/tools/fax2tiff.c:252:15: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:253:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:265:15: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:271:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:281:5: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:297:18: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2tiff.c:299:24: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:299:14: acquire_resource: opened here
tiff-4.7.0/tools/fax2tiff.c:300:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:308:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:345:12: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2tiff.c:347:13: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:348:13: danger: ‘fopen(*<unknown>, "rb")’ leaks here; was opened at [(19)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/18)
#  346|           {
#  347|               TIFFGetField(faxTIFF, TIFFTAG_YRESOLUTION, &resY);
#  348|->             TIFFSetField(out, TIFFTAG_YRESOLUTION, resY);
#  349|           }
#  350|           else

Error: GCC_ANALYZER_WARNING (CWE-401): [#def166]
tiff-4.7.0/tools/fax2tiff.c:348:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*<unknown>, "rb")’
tiff-4.7.0/tools/fax2tiff.c:111:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
tiff-4.7.0/tools/fax2tiff.c:113:9: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:111:12: branch_false: following ‘false’ branch (when ‘c == -1’)...
tiff-4.7.0/tools/fax2tiff.c:233:14: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:234:8: branch_false: following ‘false’ branch (when ‘npages > 0’)...
tiff-4.7.0/tools/fax2tiff.c:237:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:239:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:250:8: branch_true: following ‘true’ branch (when ‘out’ is NULL)...
tiff-4.7.0/tools/fax2tiff.c:252:15: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:253:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:265:15: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:271:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:281:5: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:297:18: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2tiff.c:299:24: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:299:14: acquire_memory: allocated here
tiff-4.7.0/tools/fax2tiff.c:300:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:308:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:345:12: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2tiff.c:347:13: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:348:13: danger: ‘fopen(*<unknown>, "rb")’ leaks here; was allocated at [(19)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/18)
#  346|           {
#  347|               TIFFGetField(faxTIFF, TIFFTAG_YRESOLUTION, &resY);
#  348|->             TIFFSetField(out, TIFFTAG_YRESOLUTION, resY);
#  349|           }
#  350|           else

Error: GCC_ANALYZER_WARNING (CWE-775): [#def167]
tiff-4.7.0/tools/fax2tiff.c:351:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*<unknown>, "rb")’
tiff-4.7.0/tools/fax2tiff.c:111:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
tiff-4.7.0/tools/fax2tiff.c:113:9: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:111:12: branch_false: following ‘false’ branch (when ‘c == -1’)...
tiff-4.7.0/tools/fax2tiff.c:233:14: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:234:8: branch_false: following ‘false’ branch (when ‘npages > 0’)...
tiff-4.7.0/tools/fax2tiff.c:237:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:239:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:250:8: branch_true: following ‘true’ branch (when ‘out’ is NULL)...
tiff-4.7.0/tools/fax2tiff.c:252:15: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:253:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:265:15: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:271:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:281:5: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:297:18: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2tiff.c:299:24: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:299:14: acquire_resource: opened here
tiff-4.7.0/tools/fax2tiff.c:300:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:308:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:345:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:351:13: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:351:13: danger: ‘fopen(*<unknown>, "rb")’ leaks here; was opened at [(19)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/18)
#  349|           }
#  350|           else
#  351|->             TIFFSetField(out, TIFFTAG_YRESOLUTION, 196.);
#  352|           TIFFSetField(out, TIFFTAG_RESOLUTIONUNIT, RESUNIT_INCH);
#  353|           TIFFSetField(out, TIFFTAG_PAGENUMBER, pn, npages);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def168]
tiff-4.7.0/tools/fax2tiff.c:351:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*<unknown>, "rb")’
tiff-4.7.0/tools/fax2tiff.c:111:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
tiff-4.7.0/tools/fax2tiff.c:113:9: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:111:12: branch_false: following ‘false’ branch (when ‘c == -1’)...
tiff-4.7.0/tools/fax2tiff.c:233:14: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:234:8: branch_false: following ‘false’ branch (when ‘npages > 0’)...
tiff-4.7.0/tools/fax2tiff.c:237:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:239:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:250:8: branch_true: following ‘true’ branch (when ‘out’ is NULL)...
tiff-4.7.0/tools/fax2tiff.c:252:15: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:253:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:265:15: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:271:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:281:5: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:297:18: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2tiff.c:299:24: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:299:14: acquire_memory: allocated here
tiff-4.7.0/tools/fax2tiff.c:300:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:308:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:345:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:351:13: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:351:13: danger: ‘fopen(*<unknown>, "rb")’ leaks here; was allocated at [(19)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/18)
#  349|           }
#  350|           else
#  351|->             TIFFSetField(out, TIFFTAG_YRESOLUTION, 196.);
#  352|           TIFFSetField(out, TIFFTAG_RESOLUTIONUNIT, RESUNIT_INCH);
#  353|           TIFFSetField(out, TIFFTAG_PAGENUMBER, pn, npages);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def169]
tiff-4.7.0/tools/fax2tiff.c:352:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*<unknown>, "rb")’
tiff-4.7.0/tools/fax2tiff.c:111:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
tiff-4.7.0/tools/fax2tiff.c:113:9: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:111:12: branch_false: following ‘false’ branch (when ‘c == -1’)...
tiff-4.7.0/tools/fax2tiff.c:233:14: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:234:8: branch_false: following ‘false’ branch (when ‘npages > 0’)...
tiff-4.7.0/tools/fax2tiff.c:237:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:239:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:250:8: branch_true: following ‘true’ branch (when ‘out’ is NULL)...
tiff-4.7.0/tools/fax2tiff.c:252:15: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:253:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:265:15: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:271:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:281:5: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:297:18: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2tiff.c:299:24: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:299:14: acquire_resource: opened here
tiff-4.7.0/tools/fax2tiff.c:300:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:308:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:352:9: danger: ‘fopen(*<unknown>, "rb")’ leaks here; was opened at [(19)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/18)
#  350|           else
#  351|               TIFFSetField(out, TIFFTAG_YRESOLUTION, 196.);
#  352|->         TIFFSetField(out, TIFFTAG_RESOLUTIONUNIT, RESUNIT_INCH);
#  353|           TIFFSetField(out, TIFFTAG_PAGENUMBER, pn, npages);
#  354|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def170]
tiff-4.7.0/tools/fax2tiff.c:352:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*<unknown>, "rb")’
tiff-4.7.0/tools/fax2tiff.c:111:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
tiff-4.7.0/tools/fax2tiff.c:113:9: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:111:12: branch_false: following ‘false’ branch (when ‘c == -1’)...
tiff-4.7.0/tools/fax2tiff.c:233:14: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:234:8: branch_false: following ‘false’ branch (when ‘npages > 0’)...
tiff-4.7.0/tools/fax2tiff.c:237:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:239:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:250:8: branch_true: following ‘true’ branch (when ‘out’ is NULL)...
tiff-4.7.0/tools/fax2tiff.c:252:15: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:253:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:265:15: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:271:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:281:5: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:297:18: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2tiff.c:299:24: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:299:14: acquire_memory: allocated here
tiff-4.7.0/tools/fax2tiff.c:300:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:308:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:352:9: danger: ‘fopen(*<unknown>, "rb")’ leaks here; was allocated at [(19)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/18)
#  350|           else
#  351|               TIFFSetField(out, TIFFTAG_YRESOLUTION, 196.);
#  352|->         TIFFSetField(out, TIFFTAG_RESOLUTIONUNIT, RESUNIT_INCH);
#  353|           TIFFSetField(out, TIFFTAG_PAGENUMBER, pn, npages);
#  354|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def171]
tiff-4.7.0/tools/fax2tiff.c:353:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*<unknown>, "rb")’
tiff-4.7.0/tools/fax2tiff.c:111:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
tiff-4.7.0/tools/fax2tiff.c:113:9: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:111:12: branch_false: following ‘false’ branch (when ‘c == -1’)...
tiff-4.7.0/tools/fax2tiff.c:233:14: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:234:8: branch_false: following ‘false’ branch (when ‘npages > 0’)...
tiff-4.7.0/tools/fax2tiff.c:237:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:239:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:250:8: branch_true: following ‘true’ branch (when ‘out’ is NULL)...
tiff-4.7.0/tools/fax2tiff.c:252:15: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:253:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:265:15: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:271:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:281:5: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:297:18: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2tiff.c:299:24: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:299:14: acquire_resource: opened here
tiff-4.7.0/tools/fax2tiff.c:300:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:308:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:353:9: danger: ‘fopen(*<unknown>, "rb")’ leaks here; was opened at [(19)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/18)
#  351|               TIFFSetField(out, TIFFTAG_YRESOLUTION, 196.);
#  352|           TIFFSetField(out, TIFFTAG_RESOLUTIONUNIT, RESUNIT_INCH);
#  353|->         TIFFSetField(out, TIFFTAG_PAGENUMBER, pn, npages);
#  354|   
#  355|           if (!verbose)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def172]
tiff-4.7.0/tools/fax2tiff.c:353:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*<unknown>, "rb")’
tiff-4.7.0/tools/fax2tiff.c:111:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
tiff-4.7.0/tools/fax2tiff.c:113:9: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:111:12: branch_false: following ‘false’ branch (when ‘c == -1’)...
tiff-4.7.0/tools/fax2tiff.c:233:14: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:234:8: branch_false: following ‘false’ branch (when ‘npages > 0’)...
tiff-4.7.0/tools/fax2tiff.c:237:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:239:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:250:8: branch_true: following ‘true’ branch (when ‘out’ is NULL)...
tiff-4.7.0/tools/fax2tiff.c:252:15: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:253:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:265:15: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:271:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:281:5: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:297:18: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2tiff.c:299:24: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:299:14: acquire_memory: allocated here
tiff-4.7.0/tools/fax2tiff.c:300:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:308:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:353:9: danger: ‘fopen(*<unknown>, "rb")’ leaks here; was allocated at [(19)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/18)
#  351|               TIFFSetField(out, TIFFTAG_YRESOLUTION, 196.);
#  352|           TIFFSetField(out, TIFFTAG_RESOLUTIONUNIT, RESUNIT_INCH);
#  353|->         TIFFSetField(out, TIFFTAG_PAGENUMBER, pn, npages);
#  354|   
#  355|           if (!verbose)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def173]
tiff-4.7.0/tools/fax2tiff.c:356:24: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*<unknown>, "rb")’
tiff-4.7.0/tools/fax2tiff.c:111:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
tiff-4.7.0/tools/fax2tiff.c:113:9: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:111:12: branch_false: following ‘false’ branch (when ‘c == -1’)...
tiff-4.7.0/tools/fax2tiff.c:233:14: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:234:8: branch_false: following ‘false’ branch (when ‘npages > 0’)...
tiff-4.7.0/tools/fax2tiff.c:237:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:239:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:250:8: branch_true: following ‘true’ branch (when ‘out’ is NULL)...
tiff-4.7.0/tools/fax2tiff.c:252:15: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:253:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:265:15: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:271:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:281:5: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:297:18: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2tiff.c:299:24: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:299:14: acquire_resource: opened here
tiff-4.7.0/tools/fax2tiff.c:300:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:308:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:355:12: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2tiff.c:356:24: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:356:24: danger: ‘fopen(*<unknown>, "rb")’ leaks here; was opened at [(19)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/18)
#  354|   
#  355|           if (!verbose)
#  356|->             whandler = TIFFSetWarningHandler(NULL);
#  357|           rows = copyFaxFile(faxTIFF, out);
#  358|           fclose(in);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def174]
tiff-4.7.0/tools/fax2tiff.c:356:24: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*<unknown>, "rb")’
tiff-4.7.0/tools/fax2tiff.c:111:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
tiff-4.7.0/tools/fax2tiff.c:113:9: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:111:12: branch_false: following ‘false’ branch (when ‘c == -1’)...
tiff-4.7.0/tools/fax2tiff.c:233:14: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:234:8: branch_false: following ‘false’ branch (when ‘npages > 0’)...
tiff-4.7.0/tools/fax2tiff.c:237:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:239:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:250:8: branch_true: following ‘true’ branch (when ‘out’ is NULL)...
tiff-4.7.0/tools/fax2tiff.c:252:15: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:253:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:265:15: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:271:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:281:5: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:297:18: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2tiff.c:299:24: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:299:14: acquire_memory: allocated here
tiff-4.7.0/tools/fax2tiff.c:300:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:308:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:355:12: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2tiff.c:356:24: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:356:24: danger: ‘fopen(*<unknown>, "rb")’ leaks here; was allocated at [(19)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/18)
#  354|   
#  355|           if (!verbose)
#  356|->             whandler = TIFFSetWarningHandler(NULL);
#  357|           rows = copyFaxFile(faxTIFF, out);
#  358|           fclose(in);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def175]
tiff-4.7.0/tools/fax2tiff.c:359:12: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*<unknown>, "rb")’
tiff-4.7.0/tools/fax2tiff.c:82:5: enter_function: entry to ‘main’
tiff-4.7.0/tools/fax2tiff.c:111:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
tiff-4.7.0/tools/fax2tiff.c:113:9: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:111:12: branch_false: following ‘false’ branch (when ‘c == -1’)...
tiff-4.7.0/tools/fax2tiff.c:233:14: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:234:8: branch_false: following ‘false’ branch (when ‘npages > 0’)...
tiff-4.7.0/tools/fax2tiff.c:237:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:239:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:250:8: branch_true: following ‘true’ branch (when ‘out’ is NULL)...
tiff-4.7.0/tools/fax2tiff.c:252:15: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:253:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:265:15: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:271:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:281:5: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:297:18: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2tiff.c:299:24: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:299:14: acquire_resource: opened here
tiff-4.7.0/tools/fax2tiff.c:300:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:308:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:355:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:357:16: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:357:16: call_function: calling ‘copyFaxFile’ from ‘main’
#  357|           rows = copyFaxFile(faxTIFF, out);
#  358|           fclose(in);
#  359|->         if (!verbose)
#  360|               (void)TIFFSetWarningHandler(whandler);
#  361|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def176]
tiff-4.7.0/tools/fax2tiff.c:359:12: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*<unknown>, "rb")’
tiff-4.7.0/tools/fax2tiff.c:82:5: enter_function: entry to ‘main’
tiff-4.7.0/tools/fax2tiff.c:111:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
tiff-4.7.0/tools/fax2tiff.c:113:9: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:111:12: branch_false: following ‘false’ branch (when ‘c == -1’)...
tiff-4.7.0/tools/fax2tiff.c:233:14: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:234:8: branch_false: following ‘false’ branch (when ‘npages > 0’)...
tiff-4.7.0/tools/fax2tiff.c:237:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:239:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:250:8: branch_true: following ‘true’ branch (when ‘out’ is NULL)...
tiff-4.7.0/tools/fax2tiff.c:252:15: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:253:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:265:15: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:271:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:281:5: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:297:18: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/fax2tiff.c:299:24: branch_true: ...to here
tiff-4.7.0/tools/fax2tiff.c:299:14: acquire_memory: allocated here
tiff-4.7.0/tools/fax2tiff.c:300:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:308:26: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:355:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/fax2tiff.c:357:16: branch_false: ...to here
tiff-4.7.0/tools/fax2tiff.c:357:16: call_function: calling ‘copyFaxFile’ from ‘main’
#  357|           rows = copyFaxFile(faxTIFF, out);
#  358|           fclose(in);
#  359|->         if (!verbose)
#  360|               (void)TIFFSetWarningHandler(whandler);
#  361|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def177]
tiff-4.7.0/tools/ppm2tiff.c:253:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘in’
tiff-4.7.0/tools/ppm2tiff.c:198:8: branch_false: following ‘false’ branch (when ‘argc > 1’)...
 branch_false: ...to here
tiff-4.7.0/tools/ppm2tiff.c:224:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/ppm2tiff.c:234:9: branch_false: ...to here
tiff-4.7.0/tools/ppm2tiff.c:234:8: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/ppm2tiff.c:236:23: branch_true: ...to here
tiff-4.7.0/tools/ppm2tiff.c:237:14: acquire_resource: opened here
tiff-4.7.0/tools/ppm2tiff.c:238:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/ppm2tiff.c:253:9: branch_false: ...to here
tiff-4.7.0/tools/ppm2tiff.c:253:9: danger: ‘in’ leaks here; was opened at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#  251|       }
#  252|   
#  253|->     if (fgetc(in) != 'P')
#  254|           BadPPM(infile);
#  255|       switch (fgetc(in))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def178]
tiff-4.7.0/tools/ppm2tiff.c:253:9: warning[-Wanalyzer-malloc-leak]: leak of ‘in’
tiff-4.7.0/tools/ppm2tiff.c:198:8: branch_false: following ‘false’ branch (when ‘argc > 1’)...
 branch_false: ...to here
tiff-4.7.0/tools/ppm2tiff.c:224:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/ppm2tiff.c:234:9: branch_false: ...to here
tiff-4.7.0/tools/ppm2tiff.c:234:8: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/ppm2tiff.c:236:23: branch_true: ...to here
tiff-4.7.0/tools/ppm2tiff.c:237:14: acquire_memory: allocated here
tiff-4.7.0/tools/ppm2tiff.c:238:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/ppm2tiff.c:253:9: branch_false: ...to here
tiff-4.7.0/tools/ppm2tiff.c:253:9: danger: ‘in’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
#  251|       }
#  252|   
#  253|->     if (fgetc(in) != 'P')
#  254|           BadPPM(infile);
#  255|       switch (fgetc(in))

Error: GCC_ANALYZER_WARNING (CWE-775): [#def179]
tiff-4.7.0/tools/ppm2tiff.c:255:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘in’
tiff-4.7.0/tools/ppm2tiff.c:198:8: branch_false: following ‘false’ branch (when ‘argc > 1’)...
 branch_false: ...to here
tiff-4.7.0/tools/ppm2tiff.c:224:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/ppm2tiff.c:234:9: branch_false: ...to here
tiff-4.7.0/tools/ppm2tiff.c:234:8: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/ppm2tiff.c:236:23: branch_true: ...to here
tiff-4.7.0/tools/ppm2tiff.c:237:14: acquire_resource: opened here
tiff-4.7.0/tools/ppm2tiff.c:238:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/ppm2tiff.c:253:9: branch_false: ...to here
tiff-4.7.0/tools/ppm2tiff.c:253:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/ppm2tiff.c:255:13: branch_false: ...to here
tiff-4.7.0/tools/ppm2tiff.c:255:13: danger: ‘in’ leaks here; was opened at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
#  253|       if (fgetc(in) != 'P')
#  254|           BadPPM(infile);
#  255|->     switch (fgetc(in))
#  256|       {
#  257|           case '4': /* it's a PBM file */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def180]
tiff-4.7.0/tools/ppm2tiff.c:255:13: warning[-Wanalyzer-malloc-leak]: leak of ‘in’
tiff-4.7.0/tools/ppm2tiff.c:198:8: branch_false: following ‘false’ branch (when ‘argc > 1’)...
 branch_false: ...to here
tiff-4.7.0/tools/ppm2tiff.c:224:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/ppm2tiff.c:234:9: branch_false: ...to here
tiff-4.7.0/tools/ppm2tiff.c:234:8: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/ppm2tiff.c:236:23: branch_true: ...to here
tiff-4.7.0/tools/ppm2tiff.c:237:14: acquire_memory: allocated here
tiff-4.7.0/tools/ppm2tiff.c:238:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/ppm2tiff.c:253:9: branch_false: ...to here
tiff-4.7.0/tools/ppm2tiff.c:253:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/ppm2tiff.c:255:13: branch_false: ...to here
tiff-4.7.0/tools/ppm2tiff.c:255:13: danger: ‘in’ leaks here; was allocated at [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
#  253|       if (fgetc(in) != 'P')
#  254|           BadPPM(infile);
#  255|->     switch (fgetc(in))
#  256|       {
#  257|           case '4': /* it's a PBM file */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def181]
tiff-4.7.0/tools/ppm2tiff.c:284:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘in’
tiff-4.7.0/tools/ppm2tiff.c:198:8: branch_false: following ‘false’ branch (when ‘argc > 1’)...
 branch_false: ...to here
tiff-4.7.0/tools/ppm2tiff.c:224:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/ppm2tiff.c:234:9: branch_false: ...to here
tiff-4.7.0/tools/ppm2tiff.c:234:8: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/ppm2tiff.c:236:23: branch_true: ...to here
tiff-4.7.0/tools/ppm2tiff.c:237:14: acquire_resource: opened here
tiff-4.7.0/tools/ppm2tiff.c:238:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/ppm2tiff.c:253:9: branch_false: ...to here
tiff-4.7.0/tools/ppm2tiff.c:253:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/ppm2tiff.c:255:13: branch_false: ...to here
tiff-4.7.0/tools/ppm2tiff.c:282:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/ppm2tiff.c:284:13: branch_false: ...to here
tiff-4.7.0/tools/ppm2tiff.c:284:13: danger: ‘in’ leaks here; was opened at [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
#  282|           if (feof(in))
#  283|               BadPPM(infile);
#  284|->         c = fgetc(in);
#  285|           /* Skip whitespaces (blanks, TABs, CRs, LFs) */
#  286|           if (strchr(" \t\r\n", c))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def182]
tiff-4.7.0/tools/ppm2tiff.c:284:13: warning[-Wanalyzer-malloc-leak]: leak of ‘in’
tiff-4.7.0/tools/ppm2tiff.c:198:8: branch_false: following ‘false’ branch (when ‘argc > 1’)...
 branch_false: ...to here
tiff-4.7.0/tools/ppm2tiff.c:224:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/ppm2tiff.c:234:9: branch_false: ...to here
tiff-4.7.0/tools/ppm2tiff.c:234:8: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/ppm2tiff.c:236:23: branch_true: ...to here
tiff-4.7.0/tools/ppm2tiff.c:237:14: acquire_memory: allocated here
tiff-4.7.0/tools/ppm2tiff.c:238:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/ppm2tiff.c:253:9: branch_false: ...to here
tiff-4.7.0/tools/ppm2tiff.c:253:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/ppm2tiff.c:255:13: branch_false: ...to here
tiff-4.7.0/tools/ppm2tiff.c:282:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/ppm2tiff.c:284:13: branch_false: ...to here
tiff-4.7.0/tools/ppm2tiff.c:284:13: danger: ‘in’ leaks here; was allocated at [(7)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/6)
#  282|           if (feof(in))
#  283|               BadPPM(infile);
#  284|->         c = fgetc(in);
#  285|           /* Skip whitespaces (blanks, TABs, CRs, LFs) */
#  286|           if (strchr(" \t\r\n", c))

Error: GCC_ANALYZER_WARNING (CWE-775): [#def183]
tiff-4.7.0/tools/ppm2tiff.c:294:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘in’
tiff-4.7.0/tools/ppm2tiff.c:198:8: branch_false: following ‘false’ branch (when ‘argc > 1’)...
 branch_false: ...to here
tiff-4.7.0/tools/ppm2tiff.c:224:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/ppm2tiff.c:234:9: branch_false: ...to here
tiff-4.7.0/tools/ppm2tiff.c:234:8: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/ppm2tiff.c:236:23: branch_true: ...to here
tiff-4.7.0/tools/ppm2tiff.c:237:14: acquire_resource: opened here
tiff-4.7.0/tools/ppm2tiff.c:238:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/ppm2tiff.c:253:9: branch_false: ...to here
tiff-4.7.0/tools/ppm2tiff.c:253:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/ppm2tiff.c:255:13: branch_false: ...to here
tiff-4.7.0/tools/ppm2tiff.c:282:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/ppm2tiff.c:284:13: branch_false: ...to here
tiff-4.7.0/tools/ppm2tiff.c:286:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/ppm2tiff.c:290:12: branch_false: ...to here
tiff-4.7.0/tools/ppm2tiff.c:290:12: branch_true: following ‘true’ branch...
 branch_true: ...to here
tiff-4.7.0/tools/ppm2tiff.c:294:21: danger: ‘in’ leaks here; was opened at [(7)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/6)
#  292|               do
#  293|               {
#  294|->                 c = fgetc(in);
#  295|               } while (!(strchr("\r\n", c) || feof(in)));
#  296|               continue;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def184]
tiff-4.7.0/tools/ppm2tiff.c:294:21: warning[-Wanalyzer-malloc-leak]: leak of ‘in’
tiff-4.7.0/tools/ppm2tiff.c:198:8: branch_false: following ‘false’ branch (when ‘argc > 1’)...
 branch_false: ...to here
tiff-4.7.0/tools/ppm2tiff.c:224:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/ppm2tiff.c:234:9: branch_false: ...to here
tiff-4.7.0/tools/ppm2tiff.c:234:8: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/ppm2tiff.c:236:23: branch_true: ...to here
tiff-4.7.0/tools/ppm2tiff.c:237:14: acquire_memory: allocated here
tiff-4.7.0/tools/ppm2tiff.c:238:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/ppm2tiff.c:253:9: branch_false: ...to here
tiff-4.7.0/tools/ppm2tiff.c:253:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/ppm2tiff.c:255:13: branch_false: ...to here
tiff-4.7.0/tools/ppm2tiff.c:282:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/ppm2tiff.c:284:13: branch_false: ...to here
tiff-4.7.0/tools/ppm2tiff.c:286:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/ppm2tiff.c:290:12: branch_false: ...to here
tiff-4.7.0/tools/ppm2tiff.c:290:12: branch_true: following ‘true’ branch...
 branch_true: ...to here
tiff-4.7.0/tools/ppm2tiff.c:294:21: danger: ‘in’ leaks here; was allocated at [(7)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/6)
#  292|               do
#  293|               {
#  294|->                 c = fgetc(in);
#  295|               } while (!(strchr("\r\n", c) || feof(in)));
#  296|               continue;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def185]
tiff-4.7.0/tools/ppm2tiff.c:299:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘in’
tiff-4.7.0/tools/ppm2tiff.c:198:8: branch_false: following ‘false’ branch (when ‘argc > 1’)...
 branch_false: ...to here
tiff-4.7.0/tools/ppm2tiff.c:224:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/ppm2tiff.c:234:9: branch_false: ...to here
tiff-4.7.0/tools/ppm2tiff.c:234:8: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/ppm2tiff.c:236:23: branch_true: ...to here
tiff-4.7.0/tools/ppm2tiff.c:237:14: acquire_resource: opened here
tiff-4.7.0/tools/ppm2tiff.c:238:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/ppm2tiff.c:253:9: branch_false: ...to here
tiff-4.7.0/tools/ppm2tiff.c:253:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/ppm2tiff.c:255:13: branch_false: ...to here
tiff-4.7.0/tools/ppm2tiff.c:282:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/ppm2tiff.c:284:13: branch_false: ...to here
tiff-4.7.0/tools/ppm2tiff.c:286:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/ppm2tiff.c:290:12: branch_false: ...to here
tiff-4.7.0/tools/ppm2tiff.c:299:9: danger: ‘in’ leaks here; was opened at [(7)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/6)
#  297|           }
#  298|   
#  299|->         ungetc(c, in);
#  300|           break;
#  301|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def186]
tiff-4.7.0/tools/ppm2tiff.c:299:9: warning[-Wanalyzer-malloc-leak]: leak of ‘in’
tiff-4.7.0/tools/ppm2tiff.c:198:8: branch_false: following ‘false’ branch (when ‘argc > 1’)...
 branch_false: ...to here
tiff-4.7.0/tools/ppm2tiff.c:224:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/ppm2tiff.c:234:9: branch_false: ...to here
tiff-4.7.0/tools/ppm2tiff.c:234:8: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/ppm2tiff.c:236:23: branch_true: ...to here
tiff-4.7.0/tools/ppm2tiff.c:237:14: acquire_memory: allocated here
tiff-4.7.0/tools/ppm2tiff.c:238:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/ppm2tiff.c:253:9: branch_false: ...to here
tiff-4.7.0/tools/ppm2tiff.c:253:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/ppm2tiff.c:255:13: branch_false: ...to here
tiff-4.7.0/tools/ppm2tiff.c:282:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/ppm2tiff.c:284:13: branch_false: ...to here
tiff-4.7.0/tools/ppm2tiff.c:286:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/ppm2tiff.c:290:12: branch_false: ...to here
tiff-4.7.0/tools/ppm2tiff.c:299:9: danger: ‘in’ leaks here; was allocated at [(7)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/6)
#  297|           }
#  298|   
#  299|->         ungetc(c, in);
#  300|           break;
#  301|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def187]
tiff-4.7.0/tools/tiff2ps.c:3355:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ascii85_p’
tiff-4.7.0/tools/tiff2ps.c:2953:6: enter_function: entry to ‘PSDataBW’
tiff-4.7.0/tools/tiff2ps.c:2969:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/tiff2ps.c:2976:5: branch_false: ...to here
tiff-4.7.0/tools/tiff2ps.c:2979:8: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/tiff2ps.c:3002:9: branch_false: ...to here
tiff-4.7.0/tools/tiff2ps.c:3005:17: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/tiff2ps.c:3007:23: branch_true: ...to here
tiff-4.7.0/tools/tiff2ps.c:3008:12: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/tiff2ps.c:3014:13: branch_false: ...to here
tiff-4.7.0/tools/tiff2ps.c:3028:12: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/tiff2ps.c:3031:17: branch_true: ...to here
tiff-4.7.0/tools/tiff2ps.c:3042:25: call_function: calling ‘Ascii85EncodeBlock’ from ‘PSDataBW’
# 3353|               if (val32 == 0) /* Special case */
# 3354|               {
# 3355|->                 ascii85_p[ascii85_l] = 'z';
# 3356|                   rc = 1;
# 3357|               }

Error: CPPCHECK_WARNING (CWE-401): [#def188]
tiff-4.7.0/tools/tiffdump.c:259: error[memleakOnRealloc]: Common realloc mistake: 'visited_diroff' nulled but not freed upon failure
#  257|               else
#  258|               {
#  259|->                 visited_diroff =
#  260|                       (uint64_t *)realloc(visited_diroff, alloc_size);
#  261|               }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def189]
tiff-4.7.0/tools/tiffset.c:131:12: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*<unknown>, "rt")’
tiff-4.7.0/tools/tiffset.c:134:5: enter_function: entry to ‘main’
tiff-4.7.0/tools/tiffset.c:139:8: branch_false: following ‘false’ branch (when ‘argc > 1’)...
tiff-4.7.0/tools/tiffset.c:142:25: branch_false: ...to here
tiff-4.7.0/tools/tiffset.c:143:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
tiff-4.7.0/tools/tiffset.c:146:25: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/tiffset.c:148:24: branch_true: ...to here
tiff-4.7.0/tools/tiffset.c:425:17: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/tiffset.c:437:16: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/tiffset.c:440:17: branch_false: ...to here
tiff-4.7.0/tools/tiffset.c:440:16: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/tiffset.c:449:13: branch_false: ...to here
tiff-4.7.0/tools/tiffset.c:450:18: acquire_resource: opened here
tiff-4.7.0/tools/tiffset.c:451:16: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/tiffset.c:460:13: branch_false: ...to here
tiff-4.7.0/tools/tiffset.c:468:16: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/tiffset.c:477:28: branch_false: ...to here
tiff-4.7.0/tools/tiffset.c:477:28: call_function: calling ‘limitMalloc’ from ‘main’
#  129|           return NULL;
#  130|       }
#  131|->     return _TIFFmalloc(s);
#  132|   }
#  133|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def190]
tiff-4.7.0/tools/tiffset.c:131:12: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*<unknown>, "rt")’
tiff-4.7.0/tools/tiffset.c:134:5: enter_function: entry to ‘main’
tiff-4.7.0/tools/tiffset.c:139:8: branch_false: following ‘false’ branch (when ‘argc > 1’)...
tiff-4.7.0/tools/tiffset.c:142:25: branch_false: ...to here
tiff-4.7.0/tools/tiffset.c:143:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
tiff-4.7.0/tools/tiffset.c:146:25: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/tiffset.c:148:24: branch_true: ...to here
tiff-4.7.0/tools/tiffset.c:425:17: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/tiffset.c:437:16: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/tiffset.c:440:17: branch_false: ...to here
tiff-4.7.0/tools/tiffset.c:440:16: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/tiffset.c:449:13: branch_false: ...to here
tiff-4.7.0/tools/tiffset.c:450:18: acquire_memory: allocated here
tiff-4.7.0/tools/tiffset.c:451:16: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/tiffset.c:460:13: branch_false: ...to here
tiff-4.7.0/tools/tiffset.c:468:16: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/tiffset.c:477:28: branch_false: ...to here
tiff-4.7.0/tools/tiffset.c:477:28: call_function: calling ‘limitMalloc’ from ‘main’
#  129|           return NULL;
#  130|       }
#  131|->     return _TIFFmalloc(s);
#  132|   }
#  133|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def191]
tiff-4.7.0/tools/tiffset.c:460:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*<unknown>, "rt")’
tiff-4.7.0/tools/tiffset.c:139:8: branch_false: following ‘false’ branch (when ‘argc > 1’)...
tiff-4.7.0/tools/tiffset.c:142:25: branch_false: ...to here
tiff-4.7.0/tools/tiffset.c:143:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
tiff-4.7.0/tools/tiffset.c:146:25: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/tiffset.c:148:24: branch_true: ...to here
tiff-4.7.0/tools/tiffset.c:425:17: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/tiffset.c:437:16: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/tiffset.c:440:17: branch_false: ...to here
tiff-4.7.0/tools/tiffset.c:440:16: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/tiffset.c:449:13: branch_false: ...to here
tiff-4.7.0/tools/tiffset.c:450:18: acquire_resource: opened here
tiff-4.7.0/tools/tiffset.c:451:16: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/tiffset.c:460:13: branch_false: ...to here
tiff-4.7.0/tools/tiffset.c:460:13: danger: ‘fopen(*<unknown>, "rt")’ leaks here; was opened at [(13)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/12)
#  458|                * Maximum ASCII tag size is limited by uint32_t count.
#  459|                */
#  460|->             TIFFfseek(fp, 0L, SEEK_END);
#  461|               fsize = TIFFftell(fp) + 1;
#  462|               rewind(fp);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def192]
tiff-4.7.0/tools/tiffset.c:460:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*<unknown>, "rt")’
tiff-4.7.0/tools/tiffset.c:139:8: branch_false: following ‘false’ branch (when ‘argc > 1’)...
tiff-4.7.0/tools/tiffset.c:142:25: branch_false: ...to here
tiff-4.7.0/tools/tiffset.c:143:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
tiff-4.7.0/tools/tiffset.c:146:25: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/tiffset.c:148:24: branch_true: ...to here
tiff-4.7.0/tools/tiffset.c:425:17: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/tiffset.c:437:16: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/tiffset.c:440:17: branch_false: ...to here
tiff-4.7.0/tools/tiffset.c:440:16: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/tiffset.c:449:13: branch_false: ...to here
tiff-4.7.0/tools/tiffset.c:450:18: acquire_memory: allocated here
tiff-4.7.0/tools/tiffset.c:451:16: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/tiffset.c:460:13: branch_false: ...to here
tiff-4.7.0/tools/tiffset.c:460:13: danger: ‘fopen(*<unknown>, "rt")’ leaks here; was allocated at [(13)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/12)
#  458|                * Maximum ASCII tag size is limited by uint32_t count.
#  459|                */
#  460|->             TIFFfseek(fp, 0L, SEEK_END);
#  461|               fsize = TIFFftell(fp) + 1;
#  462|               rewind(fp);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def193]
tiff-4.7.0/tools/tiffset.c:461:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*<unknown>, "rt")’
tiff-4.7.0/tools/tiffset.c:139:8: branch_false: following ‘false’ branch (when ‘argc > 1’)...
tiff-4.7.0/tools/tiffset.c:142:25: branch_false: ...to here
tiff-4.7.0/tools/tiffset.c:143:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
tiff-4.7.0/tools/tiffset.c:146:25: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/tiffset.c:148:24: branch_true: ...to here
tiff-4.7.0/tools/tiffset.c:425:17: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/tiffset.c:437:16: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/tiffset.c:440:17: branch_false: ...to here
tiff-4.7.0/tools/tiffset.c:440:16: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/tiffset.c:449:13: branch_false: ...to here
tiff-4.7.0/tools/tiffset.c:450:18: acquire_resource: opened here
tiff-4.7.0/tools/tiffset.c:451:16: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/tiffset.c:460:13: branch_false: ...to here
tiff-4.7.0/tools/tiffset.c:461:21: danger: ‘fopen(*<unknown>, "rt")’ leaks here; was opened at [(13)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/12)
#  459|                */
#  460|               TIFFfseek(fp, 0L, SEEK_END);
#  461|->             fsize = TIFFftell(fp) + 1;
#  462|               rewind(fp);
#  463|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def194]
tiff-4.7.0/tools/tiffset.c:461:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*<unknown>, "rt")’
tiff-4.7.0/tools/tiffset.c:139:8: branch_false: following ‘false’ branch (when ‘argc > 1’)...
tiff-4.7.0/tools/tiffset.c:142:25: branch_false: ...to here
tiff-4.7.0/tools/tiffset.c:143:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
tiff-4.7.0/tools/tiffset.c:146:25: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/tiffset.c:148:24: branch_true: ...to here
tiff-4.7.0/tools/tiffset.c:425:17: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/tiffset.c:437:16: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/tiffset.c:440:17: branch_false: ...to here
tiff-4.7.0/tools/tiffset.c:440:16: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/tiffset.c:449:13: branch_false: ...to here
tiff-4.7.0/tools/tiffset.c:450:18: acquire_memory: allocated here
tiff-4.7.0/tools/tiffset.c:451:16: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/tiffset.c:460:13: branch_false: ...to here
tiff-4.7.0/tools/tiffset.c:461:21: danger: ‘fopen(*<unknown>, "rt")’ leaks here; was allocated at [(13)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/12)
#  459|                */
#  460|               TIFFfseek(fp, 0L, SEEK_END);
#  461|->             fsize = TIFFftell(fp) + 1;
#  462|               rewind(fp);
#  463|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def195]
tiff-4.7.0/tools/tiffset.c:462:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*<unknown>, "rt")’
tiff-4.7.0/tools/tiffset.c:139:8: branch_false: following ‘false’ branch (when ‘argc > 1’)...
tiff-4.7.0/tools/tiffset.c:142:25: branch_false: ...to here
tiff-4.7.0/tools/tiffset.c:143:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
tiff-4.7.0/tools/tiffset.c:146:25: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/tiffset.c:148:24: branch_true: ...to here
tiff-4.7.0/tools/tiffset.c:425:17: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/tiffset.c:437:16: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/tiffset.c:440:17: branch_false: ...to here
tiff-4.7.0/tools/tiffset.c:440:16: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/tiffset.c:449:13: branch_false: ...to here
tiff-4.7.0/tools/tiffset.c:450:18: acquire_resource: opened here
tiff-4.7.0/tools/tiffset.c:451:16: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/tiffset.c:460:13: branch_false: ...to here
tiff-4.7.0/tools/tiffset.c:462:13: danger: ‘fopen(*<unknown>, "rt")’ leaks here; was opened at [(13)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/12)
#  460|               TIFFfseek(fp, 0L, SEEK_END);
#  461|               fsize = TIFFftell(fp) + 1;
#  462|->             rewind(fp);
#  463|   
#  464|               /* for x32 tmsize_t is only int32_t. The - 1 is just here to make

Error: GCC_ANALYZER_WARNING (CWE-401): [#def196]
tiff-4.7.0/tools/tiffset.c:462:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*<unknown>, "rt")’
tiff-4.7.0/tools/tiffset.c:139:8: branch_false: following ‘false’ branch (when ‘argc > 1’)...
tiff-4.7.0/tools/tiffset.c:142:25: branch_false: ...to here
tiff-4.7.0/tools/tiffset.c:143:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
tiff-4.7.0/tools/tiffset.c:146:25: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/tiffset.c:148:24: branch_true: ...to here
tiff-4.7.0/tools/tiffset.c:425:17: branch_true: following ‘true’ branch...
tiff-4.7.0/tools/tiffset.c:437:16: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/tiffset.c:440:17: branch_false: ...to here
tiff-4.7.0/tools/tiffset.c:440:16: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/tiffset.c:449:13: branch_false: ...to here
tiff-4.7.0/tools/tiffset.c:450:18: acquire_memory: allocated here
tiff-4.7.0/tools/tiffset.c:451:16: branch_false: following ‘false’ branch...
tiff-4.7.0/tools/tiffset.c:460:13: branch_false: ...to here
tiff-4.7.0/tools/tiffset.c:462:13: danger: ‘fopen(*<unknown>, "rt")’ leaks here; was allocated at [(13)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/12)
#  460|               TIFFfseek(fp, 0L, SEEK_END);
#  461|               fsize = TIFFftell(fp) + 1;
#  462|->             rewind(fp);
#  463|   
#  464|               /* for x32 tmsize_t is only int32_t. The - 1 is just here to make

Scan Properties

analyzer-version-clippy1.90.0
analyzer-version-cppcheck2.18.3
analyzer-version-gcc15.2.1
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-225.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-gcc-latest-x86_64
project-namelibtiff-4.7.0-9.fc44
store-results-to/tmp/tmpzoq5xqnm/libtiff-4.7.0-9.fc44.tar.xz
time-created2025-10-28 19:13:08
time-finished2025-10-28 19:15:56
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpzoq5xqnm/libtiff-4.7.0-9.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpzoq5xqnm/libtiff-4.7.0-9.fc44.src.rpm'
tool-versioncsmock-3.8.3.20251027.143044.ge6b947b-1.el9