libwebp-1.4.0-1.fc41

List of Defects

Error: CPPCHECK_WARNING: [#def1]
libwebp-1.4.0-build/libwebp-1.4.0/examples/anim_diff.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2]
libwebp-1.4.0-build/libwebp-1.4.0/examples/anim_dump.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def3]
libwebp-1.4.0-build/libwebp-1.4.0/examples/anim_util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def4]
libwebp-1.4.0-build/libwebp-1.4.0/examples/cwebp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def5]
libwebp-1.4.0-build/libwebp-1.4.0/examples/cwebp.c:383: warning[uninitvar]: Uninitialized variable: buf
#  381|       val >>= 8;
#  382|     }
#  383|->   return (fwrite(buf, num, 1, out) == 1);
#  384|   }
#  385|   

Error: CPPCHECK_WARNING: [#def6]
libwebp-1.4.0-build/libwebp-1.4.0/examples/dwebp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def7]
libwebp-1.4.0-build/libwebp-1.4.0/examples/dwebp.c:173:5: warning[deadcode.DeadStores]: Value stored to 'tmp' is never read
#  171|       output_buffer->u.YUVA.v_stride = uv_stride;
#  172|       output_buffer->u.YUVA.v_size = uv_stride * (h + 1) / 2;
#  173|->     tmp += output_buffer->u.YUVA.v_size;
#  174|       assert(tmp <= external_buffer + total_size);
#  175|     }

Error: CPPCHECK_WARNING: [#def8]
libwebp-1.4.0-build/libwebp-1.4.0/examples/example_util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def9]
libwebp-1.4.0-build/libwebp-1.4.0/examples/gif2webp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def10]
libwebp-1.4.0-build/libwebp-1.4.0/examples/gifdec.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def11]
libwebp-1.4.0-build/libwebp-1.4.0/examples/img2webp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def12]
libwebp-1.4.0-build/libwebp-1.4.0/examples/vwebp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def13]
libwebp-1.4.0-build/libwebp-1.4.0/examples/webpinfo.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def14]
libwebp-1.4.0-build/libwebp-1.4.0/examples/webpmux.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def15]
libwebp-1.4.0-build/libwebp-1.4.0/examples/webpmux.c:193:16: warning[deadcode.DeadStores]: Value stored to 'err' during its initialization is never read
#  191|     uint32_t flag;
#  192|   
#  193|->   WebPMuxError err = WebPMuxGetCanvasSize(mux, &width, &height);
#  194|     assert(err == WEBP_MUX_OK);  // As WebPMuxCreate() was successful earlier.
#  195|     printf("Canvas size: %d x %d\n", width, height);

Error: CLANG_WARNING: [#def16]
libwebp-1.4.0-build/libwebp-1.4.0/examples/webpmux.c:220:5: warning[deadcode.DeadStores]: Value stored to 'err' is never read
#  218|   
#  219|       WebPMuxAnimParams params;
#  220|->     err = WebPMuxGetAnimationParams(mux, &params);
#  221|       assert(err == WEBP_MUX_OK);
#  222|       printf("Background color : 0x%.8X  Loop Count : %d\n",

Error: CLANG_WARNING: [#def17]
libwebp-1.4.0-build/libwebp-1.4.0/examples/webpmux.c:225:5: warning[deadcode.DeadStores]: Value stored to 'err' is never read
#  223|              params.bgcolor, params.loop_count);
#  224|   
#  225|->     err = WebPMuxNumChunks(mux, id, &nFrames);
#  226|       assert(err == WEBP_MUX_OK);
#  227|   

Error: CLANG_WARNING: [#def18]
libwebp-1.4.0-build/libwebp-1.4.0/examples/webpmux.c:267:5: warning[deadcode.DeadStores]: Value stored to 'err' is never read
#  265|     if (flag & ICCP_FLAG) {
#  266|       WebPData icc_profile;
#  267|->     err = WebPMuxGetChunk(mux, "ICCP", &icc_profile);
#  268|       assert(err == WEBP_MUX_OK);
#  269|       printf("Size of the ICC profile data: %d\n", (int)icc_profile.size);

Error: CLANG_WARNING: [#def19]
libwebp-1.4.0-build/libwebp-1.4.0/examples/webpmux.c:274:5: warning[deadcode.DeadStores]: Value stored to 'err' is never read
#  272|     if (flag & EXIF_FLAG) {
#  273|       WebPData exif;
#  274|->     err = WebPMuxGetChunk(mux, "EXIF", &exif);
#  275|       assert(err == WEBP_MUX_OK);
#  276|       printf("Size of the EXIF metadata: %d\n", (int)exif.size);

Error: CLANG_WARNING: [#def20]
libwebp-1.4.0-build/libwebp-1.4.0/examples/webpmux.c:281:5: warning[deadcode.DeadStores]: Value stored to 'err' is never read
#  279|     if (flag & XMP_FLAG) {
#  280|       WebPData xmp;
#  281|->     err = WebPMuxGetChunk(mux, "XMP ", &xmp);
#  282|       assert(err == WEBP_MUX_OK);
#  283|       printf("Size of the XMP metadata: %d\n", (int)xmp.size);

Error: CPPCHECK_WARNING: [#def21]
libwebp-1.4.0-build/libwebp-1.4.0/extras/extras.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def22]
libwebp-1.4.0-build/libwebp-1.4.0/extras/get_disto.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def23]
libwebp-1.4.0-build/libwebp-1.4.0/extras/quality_estimate.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def24]
libwebp-1.4.0-build/libwebp-1.4.0/extras/webp_quality.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def25]
libwebp-1.4.0-build/libwebp-1.4.0/imageio/image_dec.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def26]
libwebp-1.4.0-build/libwebp-1.4.0/imageio/image_enc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def27]
libwebp-1.4.0-build/libwebp-1.4.0/imageio/image_enc.c: scope_hint: In function ‘WebPSaveImage’
libwebp-1.4.0-build/libwebp-1.4.0/imageio/image_enc.c:634:20: warning[-Wanalyzer-file-leak]: leak of FILE ‘<unknown>’
libwebp-1.4.0-build/libwebp-1.4.0/imageio/image_enc.c:38: included_from: Included from here.
libwebp-1.4.0-build/libwebp-1.4.0/imageio/image_enc.c:601:25: note: in expansion of macro ‘WFOPEN’
libwebp-1.4.0-build/libwebp-1.4.0/imageio/image_enc.c:601:25: note: in expansion of macro ‘WFOPEN’
#  632|       ok &= WebPWriteAlphaPlane(fout, buffer);
#  633|     }
#  634|->   if (fout != NULL && fout != stdout) {
#  635|       fclose(fout);
#  636|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def28]
libwebp-1.4.0-build/libwebp-1.4.0/imageio/image_enc.c:634:20: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libwebp-1.4.0-build/libwebp-1.4.0/imageio/image_enc.c:601:25: note: in expansion of macro ‘WFOPEN’
libwebp-1.4.0-build/libwebp-1.4.0/imageio/image_enc.c:601:25: note: in expansion of macro ‘WFOPEN’
#  632|       ok &= WebPWriteAlphaPlane(fout, buffer);
#  633|     }
#  634|->   if (fout != NULL && fout != stdout) {
#  635|       fclose(fout);
#  636|     }

Error: CPPCHECK_WARNING: [#def29]
libwebp-1.4.0-build/libwebp-1.4.0/imageio/imageio_util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def30]
libwebp-1.4.0-build/libwebp-1.4.0/imageio/imageio_util.c: scope_hint: In function ‘ImgIoUtilWriteFile’
libwebp-1.4.0-build/libwebp-1.4.0/imageio/imageio_util.c:134:6: warning[-Wanalyzer-file-leak]: leak of FILE ‘<unknown>’
libwebp-1.4.0-build/libwebp-1.4.0/imageio/imageio_util.c:21: included_from: Included from here.
libwebp-1.4.0-build/libwebp-1.4.0/imageio/imageio_util.c:127:54: note: in expansion of macro ‘WFOPEN’
libwebp-1.4.0-build/libwebp-1.4.0/imageio/imageio_util.c:127:54: note: in expansion of macro ‘WFOPEN’
#  132|     }
#  133|     ok = (fwrite(data, data_size, 1, out) == 1);
#  134|->   if (out != stdout) fclose(out);
#  135|     return ok;
#  136|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def31]
libwebp-1.4.0-build/libwebp-1.4.0/imageio/imageio_util.c:134:6: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libwebp-1.4.0-build/libwebp-1.4.0/imageio/imageio_util.c:127:54: note: in expansion of macro ‘WFOPEN’
libwebp-1.4.0-build/libwebp-1.4.0/imageio/imageio_util.c:127:54: note: in expansion of macro ‘WFOPEN’
#  132|     }
#  133|     ok = (fwrite(data, data_size, 1, out) == 1);
#  134|->   if (out != stdout) fclose(out);
#  135|     return ok;
#  136|   }

Error: CPPCHECK_WARNING: [#def32]
libwebp-1.4.0-build/libwebp-1.4.0/imageio/jpegdec.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def33]
libwebp-1.4.0-build/libwebp-1.4.0/imageio/jpegdec.c:277: error[uninitvar]: Uninitialized variable: dinfo
#  275|     ctx.data_size = data_size;
#  276|   
#  277|->   memset((j_decompress_ptr)&dinfo, 0, sizeof(dinfo));   // for setjmp safety
#  278|     dinfo.err = jpeg_std_error(&jerr.pub);
#  279|     jerr.pub.error_exit = my_error_exit;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def34]
libwebp-1.4.0-build/libwebp-1.4.0/imageio/jpegdec.c: scope_hint: In function ‘ReadJPEG’
libwebp-1.4.0-build/libwebp-1.4.0/imageio/jpegdec.c:312:11: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc((long unsigned int)height * (long unsigned int)stride)’
libwebp-1.4.0-build/libwebp-1.4.0/imageio/jpegdec.c:23: included_from: Included from here.
libwebp-1.4.0-build/libwebp-1.4.0/imageio/jpegdec.c:21: included_from: Included from here.
#  310|   
#  311|     rgb = (uint8_t*)malloc((size_t)stride * height);
#  312|->   if (rgb == NULL) {
#  313|       goto Error;
#  314|     }

Error: CPPCHECK_WARNING: [#def35]
libwebp-1.4.0-build/libwebp-1.4.0/imageio/pngdec.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def36]
libwebp-1.4.0-build/libwebp-1.4.0/imageio/pngdec.c: scope_hint: In function ‘ReadPNG’
libwebp-1.4.0-build/libwebp-1.4.0/imageio/pngdec.c:326:11: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc((long unsigned int)stride * (long unsigned int)height)’
/usr/include/libpng16/pngconf.h:51: included_from: Included from here.
/usr/include/libpng16/png.h:335: included_from: Included from here.
libwebp-1.4.0-build/libwebp-1.4.0/imageio/pngdec.c:24: included_from: Included from here.
#  324|   
#  325|     rgb = (uint8_t*)malloc((size_t)stride * height);
#  326|->   if (rgb == NULL) goto Error;
#  327|     for (p = 0; p < num_passes; ++p) {
#  328|       png_bytep row = rgb;

Error: CPPCHECK_WARNING: [#def37]
libwebp-1.4.0-build/libwebp-1.4.0/imageio/pnmdec.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def38]
libwebp-1.4.0-build/libwebp-1.4.0/imageio/pnmdec.c:123:14: warning[core.uninitialized.ArraySubscript]: Array subscript is undefined
#  121|         for (i = 0; i < (int)strlen(out); ++i) {
#  122|           // isprint() might trigger a "char-subscripts" warning if given a char.
#  123|->         if (!isprint((int)out[i])) out[i] = ' ';
#  124|         }
#  125|         fprintf(stderr, "PAM header error: unrecognized entry [%s]\n", out);

Error: CPPCHECK_WARNING: [#def39]
libwebp-1.4.0-build/libwebp-1.4.0/imageio/webpdec.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def40]
libwebp-1.4.0-build/libwebp-1.4.0/sharpyuv/sharpyuv.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def41]
libwebp-1.4.0-build/libwebp-1.4.0/sharpyuv/sharpyuv_cpu.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def42]
libwebp-1.4.0-build/libwebp-1.4.0/src/dec/alpha_dec.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def43]
libwebp-1.4.0-build/libwebp-1.4.0/src/dec/buffer_dec.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def44]
libwebp-1.4.0-build/libwebp-1.4.0/src/dec/frame_dec.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def45]
libwebp-1.4.0-build/libwebp-1.4.0/src/dec/frame_dec.c:771:3: warning[deadcode.DeadStores]: Value stored to 'mem' is never read
#  769|     // alpha plane
#  770|     dec->alpha_plane_ = alpha_size ? mem : NULL;
#  771|->   mem += alpha_size;
#  772|     assert(mem <= (uint8_t*)dec->mem_ + dec->mem_size_);
#  773|   

Error: CPPCHECK_WARNING: [#def46]
libwebp-1.4.0-build/libwebp-1.4.0/src/dec/idec_dec.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def47]
libwebp-1.4.0-build/libwebp-1.4.0/src/dec/idec_dec.c:201:3: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  199|   
#  200|     assert(mem->buf_ != NULL);
#  201|->   memcpy(mem->buf_ + mem->end_, data, data_size);
#  202|     mem->end_ += data_size;
#  203|     assert(mem->end_ <= mem->buf_size_);

Error: CPPCHECK_WARNING: [#def48]
libwebp-1.4.0-build/libwebp-1.4.0/src/dec/io_dec.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def49]
libwebp-1.4.0-build/libwebp-1.4.0/src/dec/tree_dec.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def50]
libwebp-1.4.0-build/libwebp-1.4.0/src/dec/vp8_dec.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def51]
libwebp-1.4.0-build/libwebp-1.4.0/src/dec/vp8l_dec.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def52]
libwebp-1.4.0-build/libwebp-1.4.0/src/dec/webp_dec.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def53]
libwebp-1.4.0-build/libwebp-1.4.0/src/demux/demux.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def54]
libwebp-1.4.0-build/libwebp-1.4.0/src/dsp/cpu.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def55]
libwebp-1.4.0-build/libwebp-1.4.0/src/dsp/lossless.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def56]
libwebp-1.4.0-build/libwebp-1.4.0/src/dsp/lossless_enc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def57]
libwebp-1.4.0-build/libwebp-1.4.0/src/dsp/upsampling.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def58]
libwebp-1.4.0-build/libwebp-1.4.0/src/enc/alpha_enc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def59]
libwebp-1.4.0-build/libwebp-1.4.0/src/enc/analysis_enc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def60]
libwebp-1.4.0-build/libwebp-1.4.0/src/enc/analysis_enc.c:180:23: warning[core.uninitialized.Assign]: The left expression of the compound assignment is an uninitialized value. The computed value will also be garbage
#  178|           map[a] = n;
#  179|           // accumulate contribution into best centroid
#  180|->         dist_accum[n] += a * alphas[a];
#  181|           accum[n] += alphas[a];
#  182|         }

Error: CPPCHECK_WARNING (CWE-369): [#def61]
libwebp-1.4.0-build/libwebp-1.4.0/src/enc/analysis_enc.c:198: error[zerodiv]: Division by zero.
#  196|         }
#  197|       }
#  198|->     weighted_average = (weighted_average + total_weight / 2) / total_weight;
#  199|       if (displaced < 5) break;   // no need to keep on looping...
#  200|     }

Error: CPPCHECK_WARNING: [#def62]
libwebp-1.4.0-build/libwebp-1.4.0/src/enc/backward_references_cost_enc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def63]
libwebp-1.4.0-build/libwebp-1.4.0/src/enc/backward_references_enc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def64]
libwebp-1.4.0-build/libwebp-1.4.0/src/enc/backward_references_enc.c:800:7: warning[core.NullDereference]: Array access (via field 'blue_') results in a null pointer dereference
#  798|         int key = VP8LHashPix(pix, 32 - cache_bits_max);
#  799|         // Do not use the color cache for cache_bits = 0.
#  800|->       ++histos[0]->blue_[b];
#  801|         ++histos[0]->literal_[g];
#  802|         ++histos[0]->red_[r];

Error: CPPCHECK_WARNING: [#def65]
libwebp-1.4.0-build/libwebp-1.4.0/src/enc/config_enc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def66]
libwebp-1.4.0-build/libwebp-1.4.0/src/enc/cost_enc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def67]
libwebp-1.4.0-build/libwebp-1.4.0/src/enc/filter_enc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def68]
libwebp-1.4.0-build/libwebp-1.4.0/src/enc/frame_enc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def69]
libwebp-1.4.0-build/libwebp-1.4.0/src/enc/frame_enc.c:698: warning[uninitvar]: Uninitialized variable: it->enc_
#  696|   
#  697|   static int PostLoopFinalize(VP8EncIterator* const it, int ok) {
#  698|->   VP8Encoder* const enc = it->enc_;
#  699|     if (ok) {      // Finalize the partitions, check for extra errors.
#  700|       int p;

Error: CLANG_WARNING: [#def70]
libwebp-1.4.0-build/libwebp-1.4.0/src/enc/frame_enc.c:698:3: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
#  696|   
#  697|   static int PostLoopFinalize(VP8EncIterator* const it, int ok) {
#  698|->   VP8Encoder* const enc = it->enc_;
#  699|     if (ok) {      // Finalize the partitions, check for extra errors.
#  700|       int p;

Error: CPPCHECK_WARNING: [#def71]
libwebp-1.4.0-build/libwebp-1.4.0/src/enc/histogram_enc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def72]
libwebp-1.4.0-build/libwebp-1.4.0/src/enc/picture_csp_enc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def73]
libwebp-1.4.0-build/libwebp-1.4.0/src/enc/picture_enc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def74]
libwebp-1.4.0-build/libwebp-1.4.0/src/enc/picture_psnr_enc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def75]
libwebp-1.4.0-build/libwebp-1.4.0/src/enc/picture_rescale_enc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def76]
libwebp-1.4.0-build/libwebp-1.4.0/src/enc/picture_tools_enc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def77]
libwebp-1.4.0-build/libwebp-1.4.0/src/enc/predictor_enc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def78]
libwebp-1.4.0-build/libwebp-1.4.0/src/enc/quant_enc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def79]
libwebp-1.4.0-build/libwebp-1.4.0/src/enc/syntax_enc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def80]
libwebp-1.4.0-build/libwebp-1.4.0/src/enc/token_enc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def81]
libwebp-1.4.0-build/libwebp-1.4.0/src/enc/tree_enc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def82]
libwebp-1.4.0-build/libwebp-1.4.0/src/enc/vp8l_enc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def83]
libwebp-1.4.0-build/libwebp-1.4.0/src/enc/webp_enc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def84]
libwebp-1.4.0-build/libwebp-1.4.0/src/enc/webp_enc.c:228:3: warning[deadcode.DeadStores]: Value stored to 'mem' is never read
#  226|     mem += 2 * top_stride;
#  227|     enc->top_derr_ = top_derr_size ? (DError*)mem : NULL;
#  228|->   mem += top_derr_size;
#  229|     assert(mem <= (uint8_t*)enc + size);
#  230|   

Error: CPPCHECK_WARNING: [#def85]
libwebp-1.4.0-build/libwebp-1.4.0/src/mux/anim_encode.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def86]
libwebp-1.4.0-build/libwebp-1.4.0/src/mux/muxedit.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def87]
libwebp-1.4.0-build/libwebp-1.4.0/src/mux/muxedit.c:398:7: warning[core.NullDereference]: Access to field 'size' results in a dereference of a null pointer (loaded from variable 'data')
#  396|     assert(frame_chunk->tag_ == kChunks[IDX_ANMF].tag);
#  397|     assert(frame_chunk != NULL);
#  398|->   if (data->size != expected_data_size) return WEBP_MUX_INVALID_ARGUMENT;
#  399|   
#  400|     *x_offset = 2 * GetLE24(data->bytes + 0);

Error: CLANG_WARNING: [#def88]
libwebp-1.4.0-build/libwebp-1.4.0/src/mux/muxedit.c:641:3: warning[deadcode.DeadStores]: Value stored to 'dst' is never read
#  639|     dst = ChunkListEmit(mux->exif_, dst);
#  640|     dst = ChunkListEmit(mux->xmp_, dst);
#  641|->   dst = ChunkListEmit(mux->unknown_, dst);
#  642|     assert(dst == data + size);
#  643|   

Error: CPPCHECK_WARNING: [#def89]
libwebp-1.4.0-build/libwebp-1.4.0/src/mux/muxinternal.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def90]
libwebp-1.4.0-build/libwebp-1.4.0/src/mux/muxinternal.c: scope_hint: In function ‘MuxImageCount’
libwebp-1.4.0-build/libwebp-1.4.0/src/mux/muxinternal.c:265:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libwebp-1.4.0-build/libwebp-1.4.0/src/mux/muxinternal.c: scope_hint: In function ‘MuxImageCount’
#  263|         ++count;  // Special case: count all images.
#  264|       } else {
#  265|->       const WebPChunk* const wpi_chunk = *GetChunkListFromId(current, id);
#  266|         if (wpi_chunk != NULL) {
#  267|           const WebPChunkId wpi_chunk_id = ChunkGetIdFromTag(wpi_chunk->tag_);

Error: CPPCHECK_WARNING: [#def91]
libwebp-1.4.0-build/libwebp-1.4.0/src/mux/muxread.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def92]
libwebp-1.4.0-build/libwebp-1.4.0/src/mux/muxread.c:419:3: warning[deadcode.DeadStores]: Value stored to 'dst' is never read
#  417|   
#  418|     // Bitstream.
#  419|->   dst = ChunkListEmit(wpi->img_, dst);
#  420|     assert(dst == data + size);
#  421|   

Error: CPPCHECK_WARNING (CWE-758): [#def93]
libwebp-1.4.0-build/libwebp-1.4.0/src/utils/bit_reader_inl_utils.h:149: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#  147|       const range_t split = br->range_ >> 1;
#  148|       const range_t value = (range_t)(br->value_ >> pos);
#  149|->     const int32_t mask = (int32_t)(split - value) >> 31;  // -1 or 0
#  150|       br->bits_ -= 1;
#  151|       br->range_ += (range_t)mask;

Error: CPPCHECK_WARNING: [#def94]
libwebp-1.4.0-build/libwebp-1.4.0/src/utils/bit_writer_utils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def95]
libwebp-1.4.0-build/libwebp-1.4.0/src/dec/vp8l_dec.c:19: included_from: Included from here.
libwebp-1.4.0-build/libwebp-1.4.0/src/dec/vp8li_dec.h:21: included_from: Included from here.
libwebp-1.4.0-build/libwebp-1.4.0/src/utils/color_cache_utils.h:44:10: warning[core.NullDereference]: Access to field 'colors_' results in a dereference of a null pointer (loaded from variable 'cc')
#   42|       const VP8LColorCache* const cc, uint32_t key) {
#   43|     assert((key >> cc->hash_bits_) == 0u);
#   44|->   return cc->colors_[key];
#   45|   }
#   46|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def96]
libwebp-1.4.0-build/libwebp-1.4.0/src/utils/color_cache_utils.h:44:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libwebp-1.4.0-build/libwebp-1.4.0/src/dec/vp8l_dec.c: scope_hint: In function ‘DecodeImageData’
libwebp-1.4.0-build/libwebp-1.4.0/src/dec/vp8l_dec.c: scope_hint: In function ‘DecodeImageData’
libwebp-1.4.0-build/libwebp-1.4.0/src/dec/vp8l_dec.c: scope_hint: In function ‘DecodeImageData’
#   42|       const VP8LColorCache* const cc, uint32_t key) {
#   43|     assert((key >> cc->hash_bits_) == 0u);
#   44|->   return cc->colors_[key];
#   45|   }
#   46|   

Error: CLANG_WARNING: [#def97]
libwebp-1.4.0-build/libwebp-1.4.0/src/utils/color_cache_utils.h:55:37: warning[core.NullDereference]: Access to field 'hash_shift_' results in a dereference of a null pointer (loaded from variable 'cc')
#   53|   static WEBP_INLINE void VP8LColorCacheInsert(const VP8LColorCache* const cc,
#   54|                                                uint32_t argb) {
#   55|->   const int key = VP8LHashPix(argb, cc->hash_shift_);
#   56|     cc->colors_[key] = argb;
#   57|   }

Error: CPPCHECK_WARNING: [#def98]
libwebp-1.4.0-build/libwebp-1.4.0/src/utils/filters_utils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def99]
libwebp-1.4.0-build/libwebp-1.4.0/src/utils/huffman_encode_utils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def100]
libwebp-1.4.0-build/libwebp-1.4.0/src/utils/huffman_utils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def101]
libwebp-1.4.0-build/libwebp-1.4.0/src/utils/palette.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def102]
libwebp-1.4.0-build/libwebp-1.4.0/src/utils/quant_levels_dec_utils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def103]
libwebp-1.4.0-build/libwebp-1.4.0/src/utils/quant_levels_utils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def104]
libwebp-1.4.0-build/libwebp-1.4.0/src/utils/thread_utils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def105]
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-1164): [#def106]
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c:337:12: warning[-Wunused-function]: ‘SWIG_JavaArrayInSchar’ defined but not used
#  337 | static int SWIG_JavaArrayInSchar (JNIEnv *jenv, jbyte **jarr, signed char **carr, jbyteArray input) {
#      |            ^~~~~~~~~~~~~~~~~~~~~
#  335|   
#  336|   /* signed char[] support */
#  337|-> static int SWIG_JavaArrayInSchar (JNIEnv *jenv, jbyte **jarr, signed char **carr, jbyteArray input) {
#  338|     int i;
#  339|     jsize sz;

Error: COMPILER_WARNING (CWE-1164): [#def107]
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c:358:13: warning[-Wunused-function]: ‘SWIG_JavaArrayArgoutSchar’ defined but not used
#  358 | static void SWIG_JavaArrayArgoutSchar (JNIEnv *jenv, jbyte *jarr, signed char *carr, jbyteArray input) {
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
#  356|   }
#  357|   
#  358|-> static void SWIG_JavaArrayArgoutSchar (JNIEnv *jenv, jbyte *jarr, signed char *carr, jbyteArray input) {
#  359|     int i;
#  360|     jsize sz = (*jenv)->GetArrayLength(jenv, input);

Error: COMPILER_WARNING (CWE-1164): [#def108]
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c:366:19: warning[-Wunused-function]: ‘SWIG_JavaArrayOutSchar’ defined but not used
#  366 | static jbyteArray SWIG_JavaArrayOutSchar (JNIEnv *jenv, signed char *result, jsize sz) {
#      |                   ^~~~~~~~~~~~~~~~~~~~~~
#  364|   }
#  365|   
#  366|-> static jbyteArray SWIG_JavaArrayOutSchar (JNIEnv *jenv, signed char *result, jsize sz) {
#  367|     jbyte *arr;
#  368|     int i;

Error: COMPILER_WARNING (CWE-1164): [#def109]
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c:383:12: warning[-Wunused-function]: ‘SWIG_JavaArrayInUchar’ defined but not used
#  383 | static int SWIG_JavaArrayInUchar (JNIEnv *jenv, jshort **jarr, unsigned char **carr, jshortArray input) {
#      |            ^~~~~~~~~~~~~~~~~~~~~
#  381|   
#  382|   /* unsigned char[] support */
#  383|-> static int SWIG_JavaArrayInUchar (JNIEnv *jenv, jshort **jarr, unsigned char **carr, jshortArray input) {
#  384|     int i;
#  385|     jsize sz;

Error: COMPILER_WARNING (CWE-1164): [#def110]
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c:404:13: warning[-Wunused-function]: ‘SWIG_JavaArrayArgoutUchar’ defined but not used
#  404 | static void SWIG_JavaArrayArgoutUchar (JNIEnv *jenv, jshort *jarr, unsigned char *carr, jshortArray input) {
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
#  402|   }
#  403|   
#  404|-> static void SWIG_JavaArrayArgoutUchar (JNIEnv *jenv, jshort *jarr, unsigned char *carr, jshortArray input) {
#  405|     int i;
#  406|     jsize sz = (*jenv)->GetArrayLength(jenv, input);

Error: COMPILER_WARNING (CWE-1164): [#def111]
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c:412:20: warning[-Wunused-function]: ‘SWIG_JavaArrayOutUchar’ defined but not used
#  412 | static jshortArray SWIG_JavaArrayOutUchar (JNIEnv *jenv, unsigned char *result, jsize sz) {
#      |                    ^~~~~~~~~~~~~~~~~~~~~~
#  410|   }
#  411|   
#  412|-> static jshortArray SWIG_JavaArrayOutUchar (JNIEnv *jenv, unsigned char *result, jsize sz) {
#  413|     jshort *arr;
#  414|     int i;

Error: COMPILER_WARNING (CWE-1164): [#def112]
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c:429:12: warning[-Wunused-function]: ‘SWIG_JavaArrayInShort’ defined but not used
#  429 | static int SWIG_JavaArrayInShort (JNIEnv *jenv, jshort **jarr, short **carr, jshortArray input) {
#      |            ^~~~~~~~~~~~~~~~~~~~~
#  427|   
#  428|   /* short[] support */
#  429|-> static int SWIG_JavaArrayInShort (JNIEnv *jenv, jshort **jarr, short **carr, jshortArray input) {
#  430|     int i;
#  431|     jsize sz;

Error: COMPILER_WARNING (CWE-1164): [#def113]
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c:450:13: warning[-Wunused-function]: ‘SWIG_JavaArrayArgoutShort’ defined but not used
#  450 | static void SWIG_JavaArrayArgoutShort (JNIEnv *jenv, jshort *jarr, short *carr, jshortArray input) {
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
#  448|   }
#  449|   
#  450|-> static void SWIG_JavaArrayArgoutShort (JNIEnv *jenv, jshort *jarr, short *carr, jshortArray input) {
#  451|     int i;
#  452|     jsize sz = (*jenv)->GetArrayLength(jenv, input);

Error: COMPILER_WARNING (CWE-1164): [#def114]
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c:458:20: warning[-Wunused-function]: ‘SWIG_JavaArrayOutShort’ defined but not used
#  458 | static jshortArray SWIG_JavaArrayOutShort (JNIEnv *jenv, short *result, jsize sz) {
#      |                    ^~~~~~~~~~~~~~~~~~~~~~
#  456|   }
#  457|   
#  458|-> static jshortArray SWIG_JavaArrayOutShort (JNIEnv *jenv, short *result, jsize sz) {
#  459|     jshort *arr;
#  460|     int i;

Error: COMPILER_WARNING (CWE-1164): [#def115]
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c:475:12: warning[-Wunused-function]: ‘SWIG_JavaArrayInUshort’ defined but not used
#  475 | static int SWIG_JavaArrayInUshort (JNIEnv *jenv, jint **jarr, unsigned short **carr, jintArray input) {
#      |            ^~~~~~~~~~~~~~~~~~~~~~
#  473|   
#  474|   /* unsigned short[] support */
#  475|-> static int SWIG_JavaArrayInUshort (JNIEnv *jenv, jint **jarr, unsigned short **carr, jintArray input) {
#  476|     int i;
#  477|     jsize sz;

Error: COMPILER_WARNING (CWE-1164): [#def116]
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c:496:13: warning[-Wunused-function]: ‘SWIG_JavaArrayArgoutUshort’ defined but not used
#  496 | static void SWIG_JavaArrayArgoutUshort (JNIEnv *jenv, jint *jarr, unsigned short *carr, jintArray input) {
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  494|   }
#  495|   
#  496|-> static void SWIG_JavaArrayArgoutUshort (JNIEnv *jenv, jint *jarr, unsigned short *carr, jintArray input) {
#  497|     int i;
#  498|     jsize sz = (*jenv)->GetArrayLength(jenv, input);

Error: COMPILER_WARNING (CWE-1164): [#def117]
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c:504:18: warning[-Wunused-function]: ‘SWIG_JavaArrayOutUshort’ defined but not used
#  504 | static jintArray SWIG_JavaArrayOutUshort (JNIEnv *jenv, unsigned short *result, jsize sz) {
#      |                  ^~~~~~~~~~~~~~~~~~~~~~~
#  502|   }
#  503|   
#  504|-> static jintArray SWIG_JavaArrayOutUshort (JNIEnv *jenv, unsigned short *result, jsize sz) {
#  505|     jint *arr;
#  506|     int i;

Error: COMPILER_WARNING (CWE-1164): [#def118]
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c:521:12: warning[-Wunused-function]: ‘SWIG_JavaArrayInInt’ defined but not used
#  521 | static int SWIG_JavaArrayInInt (JNIEnv *jenv, jint **jarr, int **carr, jintArray input) {
#      |            ^~~~~~~~~~~~~~~~~~~
#  519|   
#  520|   /* int[] support */
#  521|-> static int SWIG_JavaArrayInInt (JNIEnv *jenv, jint **jarr, int **carr, jintArray input) {
#  522|     int i;
#  523|     jsize sz;

Error: COMPILER_WARNING (CWE-1164): [#def119]
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c:542:13: warning[-Wunused-function]: ‘SWIG_JavaArrayArgoutInt’ defined but not used
#  542 | static void SWIG_JavaArrayArgoutInt (JNIEnv *jenv, jint *jarr, int *carr, jintArray input) {
#      |             ^~~~~~~~~~~~~~~~~~~~~~~
#  540|   }
#  541|   
#  542|-> static void SWIG_JavaArrayArgoutInt (JNIEnv *jenv, jint *jarr, int *carr, jintArray input) {
#  543|     int i;
#  544|     jsize sz = (*jenv)->GetArrayLength(jenv, input);

Error: COMPILER_WARNING (CWE-1164): [#def120]
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c:550:18: warning[-Wunused-function]: ‘SWIG_JavaArrayOutInt’ defined but not used
#  550 | static jintArray SWIG_JavaArrayOutInt (JNIEnv *jenv, int *result, jsize sz) {
#      |                  ^~~~~~~~~~~~~~~~~~~~
#  548|   }
#  549|   
#  550|-> static jintArray SWIG_JavaArrayOutInt (JNIEnv *jenv, int *result, jsize sz) {
#  551|     jint *arr;
#  552|     int i;

Error: COMPILER_WARNING (CWE-1164): [#def121]
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c:567:12: warning[-Wunused-function]: ‘SWIG_JavaArrayInUint’ defined but not used
#  567 | static int SWIG_JavaArrayInUint (JNIEnv *jenv, jlong **jarr, unsigned int **carr, jlongArray input) {
#      |            ^~~~~~~~~~~~~~~~~~~~
#  565|   
#  566|   /* unsigned int[] support */
#  567|-> static int SWIG_JavaArrayInUint (JNIEnv *jenv, jlong **jarr, unsigned int **carr, jlongArray input) {
#  568|     int i;
#  569|     jsize sz;

Error: COMPILER_WARNING (CWE-1164): [#def122]
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c:588:13: warning[-Wunused-function]: ‘SWIG_JavaArrayArgoutUint’ defined but not used
#  588 | static void SWIG_JavaArrayArgoutUint (JNIEnv *jenv, jlong *jarr, unsigned int *carr, jlongArray input) {
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~
#  586|   }
#  587|   
#  588|-> static void SWIG_JavaArrayArgoutUint (JNIEnv *jenv, jlong *jarr, unsigned int *carr, jlongArray input) {
#  589|     int i;
#  590|     jsize sz = (*jenv)->GetArrayLength(jenv, input);

Error: COMPILER_WARNING (CWE-1164): [#def123]
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c:596:19: warning[-Wunused-function]: ‘SWIG_JavaArrayOutUint’ defined but not used
#  596 | static jlongArray SWIG_JavaArrayOutUint (JNIEnv *jenv, unsigned int *result, jsize sz) {
#      |                   ^~~~~~~~~~~~~~~~~~~~~
#  594|   }
#  595|   
#  596|-> static jlongArray SWIG_JavaArrayOutUint (JNIEnv *jenv, unsigned int *result, jsize sz) {
#  597|     jlong *arr;
#  598|     int i;

Error: COMPILER_WARNING (CWE-1164): [#def124]
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c:613:12: warning[-Wunused-function]: ‘SWIG_JavaArrayInLong’ defined but not used
#  613 | static int SWIG_JavaArrayInLong (JNIEnv *jenv, jint **jarr, long **carr, jintArray input) {
#      |            ^~~~~~~~~~~~~~~~~~~~
#  611|   
#  612|   /* long[] support */
#  613|-> static int SWIG_JavaArrayInLong (JNIEnv *jenv, jint **jarr, long **carr, jintArray input) {
#  614|     int i;
#  615|     jsize sz;

Error: COMPILER_WARNING (CWE-1164): [#def125]
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c:634:13: warning[-Wunused-function]: ‘SWIG_JavaArrayArgoutLong’ defined but not used
#  634 | static void SWIG_JavaArrayArgoutLong (JNIEnv *jenv, jint *jarr, long *carr, jintArray input) {
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~
#  632|   }
#  633|   
#  634|-> static void SWIG_JavaArrayArgoutLong (JNIEnv *jenv, jint *jarr, long *carr, jintArray input) {
#  635|     int i;
#  636|     jsize sz = (*jenv)->GetArrayLength(jenv, input);

Error: COMPILER_WARNING (CWE-1164): [#def126]
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c:642:18: warning[-Wunused-function]: ‘SWIG_JavaArrayOutLong’ defined but not used
#  642 | static jintArray SWIG_JavaArrayOutLong (JNIEnv *jenv, long *result, jsize sz) {
#      |                  ^~~~~~~~~~~~~~~~~~~~~
#  640|   }
#  641|   
#  642|-> static jintArray SWIG_JavaArrayOutLong (JNIEnv *jenv, long *result, jsize sz) {
#  643|     jint *arr;
#  644|     int i;

Error: COMPILER_WARNING (CWE-1164): [#def127]
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c:659:12: warning[-Wunused-function]: ‘SWIG_JavaArrayInUlong’ defined but not used
#  659 | static int SWIG_JavaArrayInUlong (JNIEnv *jenv, jlong **jarr, unsigned long **carr, jlongArray input) {
#      |            ^~~~~~~~~~~~~~~~~~~~~
#  657|   
#  658|   /* unsigned long[] support */
#  659|-> static int SWIG_JavaArrayInUlong (JNIEnv *jenv, jlong **jarr, unsigned long **carr, jlongArray input) {
#  660|     int i;
#  661|     jsize sz;

Error: COMPILER_WARNING (CWE-1164): [#def128]
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c:680:13: warning[-Wunused-function]: ‘SWIG_JavaArrayArgoutUlong’ defined but not used
#  680 | static void SWIG_JavaArrayArgoutUlong (JNIEnv *jenv, jlong *jarr, unsigned long *carr, jlongArray input) {
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
#  678|   }
#  679|   
#  680|-> static void SWIG_JavaArrayArgoutUlong (JNIEnv *jenv, jlong *jarr, unsigned long *carr, jlongArray input) {
#  681|     int i;
#  682|     jsize sz = (*jenv)->GetArrayLength(jenv, input);

Error: COMPILER_WARNING (CWE-1164): [#def129]
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c:688:19: warning[-Wunused-function]: ‘SWIG_JavaArrayOutUlong’ defined but not used
#  688 | static jlongArray SWIG_JavaArrayOutUlong (JNIEnv *jenv, unsigned long *result, jsize sz) {
#      |                   ^~~~~~~~~~~~~~~~~~~~~~
#  686|   }
#  687|   
#  688|-> static jlongArray SWIG_JavaArrayOutUlong (JNIEnv *jenv, unsigned long *result, jsize sz) {
#  689|     jlong *arr;
#  690|     int i;

Error: COMPILER_WARNING (CWE-1164): [#def130]
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c:705:12: warning[-Wunused-function]: ‘SWIG_JavaArrayInLonglong’ defined but not used
#  705 | static int SWIG_JavaArrayInLonglong (JNIEnv *jenv, jlong **jarr, long long **carr, jlongArray input) {
#      |            ^~~~~~~~~~~~~~~~~~~~~~~~
#  703|   
#  704|   /* long long[] support */
#  705|-> static int SWIG_JavaArrayInLonglong (JNIEnv *jenv, jlong **jarr, long long **carr, jlongArray input) {
#  706|     int i;
#  707|     jsize sz;

Error: COMPILER_WARNING (CWE-1164): [#def131]
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c:726:13: warning[-Wunused-function]: ‘SWIG_JavaArrayArgoutLonglong’ defined but not used
#  726 | static void SWIG_JavaArrayArgoutLonglong (JNIEnv *jenv, jlong *jarr, long long *carr, jlongArray input) {
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  724|   }
#  725|   
#  726|-> static void SWIG_JavaArrayArgoutLonglong (JNIEnv *jenv, jlong *jarr, long long *carr, jlongArray input) {
#  727|     int i;
#  728|     jsize sz = (*jenv)->GetArrayLength(jenv, input);

Error: COMPILER_WARNING (CWE-1164): [#def132]
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c:734:19: warning[-Wunused-function]: ‘SWIG_JavaArrayOutLonglong’ defined but not used
#  734 | static jlongArray SWIG_JavaArrayOutLonglong (JNIEnv *jenv, long long *result, jsize sz) {
#      |                   ^~~~~~~~~~~~~~~~~~~~~~~~~
#  732|   }
#  733|   
#  734|-> static jlongArray SWIG_JavaArrayOutLonglong (JNIEnv *jenv, long long *result, jsize sz) {
#  735|     jlong *arr;
#  736|     int i;

Error: COMPILER_WARNING (CWE-1164): [#def133]
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c:751:12: warning[-Wunused-function]: ‘SWIG_JavaArrayInFloat’ defined but not used
#  751 | static int SWIG_JavaArrayInFloat (JNIEnv *jenv, jfloat **jarr, float **carr, jfloatArray input) {
#      |            ^~~~~~~~~~~~~~~~~~~~~
#  749|   
#  750|   /* float[] support */
#  751|-> static int SWIG_JavaArrayInFloat (JNIEnv *jenv, jfloat **jarr, float **carr, jfloatArray input) {
#  752|     int i;
#  753|     jsize sz;

Error: COMPILER_WARNING (CWE-1164): [#def134]
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c:772:13: warning[-Wunused-function]: ‘SWIG_JavaArrayArgoutFloat’ defined but not used
#  772 | static void SWIG_JavaArrayArgoutFloat (JNIEnv *jenv, jfloat *jarr, float *carr, jfloatArray input) {
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
#  770|   }
#  771|   
#  772|-> static void SWIG_JavaArrayArgoutFloat (JNIEnv *jenv, jfloat *jarr, float *carr, jfloatArray input) {
#  773|     int i;
#  774|     jsize sz = (*jenv)->GetArrayLength(jenv, input);

Error: COMPILER_WARNING (CWE-1164): [#def135]
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c:780:20: warning[-Wunused-function]: ‘SWIG_JavaArrayOutFloat’ defined but not used
#  780 | static jfloatArray SWIG_JavaArrayOutFloat (JNIEnv *jenv, float *result, jsize sz) {
#      |                    ^~~~~~~~~~~~~~~~~~~~~~
#  778|   }
#  779|   
#  780|-> static jfloatArray SWIG_JavaArrayOutFloat (JNIEnv *jenv, float *result, jsize sz) {
#  781|     jfloat *arr;
#  782|     int i;

Error: COMPILER_WARNING (CWE-1164): [#def136]
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c:797:12: warning[-Wunused-function]: ‘SWIG_JavaArrayInDouble’ defined but not used
#  797 | static int SWIG_JavaArrayInDouble (JNIEnv *jenv, jdouble **jarr, double **carr, jdoubleArray input) {
#      |            ^~~~~~~~~~~~~~~~~~~~~~
#  795|   
#  796|   /* double[] support */
#  797|-> static int SWIG_JavaArrayInDouble (JNIEnv *jenv, jdouble **jarr, double **carr, jdoubleArray input) {
#  798|     int i;
#  799|     jsize sz;

Error: COMPILER_WARNING (CWE-1164): [#def137]
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c:818:13: warning[-Wunused-function]: ‘SWIG_JavaArrayArgoutDouble’ defined but not used
#  818 | static void SWIG_JavaArrayArgoutDouble (JNIEnv *jenv, jdouble *jarr, double *carr, jdoubleArray input) {
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  816|   }
#  817|   
#  818|-> static void SWIG_JavaArrayArgoutDouble (JNIEnv *jenv, jdouble *jarr, double *carr, jdoubleArray input) {
#  819|     int i;
#  820|     jsize sz = (*jenv)->GetArrayLength(jenv, input);

Error: COMPILER_WARNING (CWE-1164): [#def138]
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c:826:21: warning[-Wunused-function]: ‘SWIG_JavaArrayOutDouble’ defined but not used
#  826 | static jdoubleArray SWIG_JavaArrayOutDouble (JNIEnv *jenv, double *result, jsize sz) {
#      |                     ^~~~~~~~~~~~~~~~~~~~~~~
#  824|   }
#  825|   
#  826|-> static jdoubleArray SWIG_JavaArrayOutDouble (JNIEnv *jenv, double *result, jsize sz) {
#  827|     jdouble *arr;
#  828|     int i;

Error: CLANG_WARNING: [#def139]
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c:879:13: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
#  877|     jsize sz = (*jenv)->GetArrayLength(jenv, input);
#  878|     for (i=0; i<sz; i++)
#  879|->     jarr[i] = (jbyte)carr[i];
#  880|     (*jenv)->ReleaseByteArrayElements(jenv, input, jarr, 0);
#  881|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def140]
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c: scope_hint: In function ‘Java_com_google_webp_libwebpJNI_WebPDecodeBGRA’
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c:1359:78: warning[-Wanalyzer-malloc-leak]: leak of ‘arg1’
# 1357|     (void)jenv;
# 1358|     (void)jcls;
# 1359|->   if (!SWIG_JavaArrayInUint8(jenv, &jarr1, (uint8_t **)&arg1, jarg1)) return 0; 
# 1360|     arg2 = (size_t)jarg2; 
# 1361|     {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def141]
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c: scope_hint: In function ‘Java_com_google_webp_libwebpJNI_wrap_1WebPEncodeRGB’
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c:1432:78: warning[-Wanalyzer-malloc-leak]: leak of ‘arg1’
# 1430|     (void)jenv;
# 1431|     (void)jcls;
# 1432|->   if (!SWIG_JavaArrayInUint8(jenv, &jarr1, (uint8_t **)&arg1, jarg1)) return 0; 
# 1433|     arg2 = (int *)&jarg2; 
# 1434|     arg3 = (int *)&jarg3; 

Error: GCC_ANALYZER_WARNING (CWE-401): [#def142]
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c: scope_hint: In function ‘Java_com_google_webp_libwebpJNI_wrap_1WebPEncodeBGR’
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c:1483:78: warning[-Wanalyzer-malloc-leak]: leak of ‘arg1’
# 1481|     (void)jenv;
# 1482|     (void)jcls;
# 1483|->   if (!SWIG_JavaArrayInUint8(jenv, &jarr1, (uint8_t **)&arg1, jarg1)) return 0; 
# 1484|     arg2 = (int *)&jarg2; 
# 1485|     arg3 = (int *)&jarg3; 

Error: GCC_ANALYZER_WARNING (CWE-401): [#def143]
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c: scope_hint: In function ‘Java_com_google_webp_libwebpJNI_wrap_1WebPEncodeRGBA’
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c:1534:78: warning[-Wanalyzer-malloc-leak]: leak of ‘arg1’
# 1532|     (void)jenv;
# 1533|     (void)jcls;
# 1534|->   if (!SWIG_JavaArrayInUint8(jenv, &jarr1, (uint8_t **)&arg1, jarg1)) return 0; 
# 1535|     arg2 = (int *)&jarg2; 
# 1536|     arg3 = (int *)&jarg3; 

Error: GCC_ANALYZER_WARNING (CWE-401): [#def144]
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c: scope_hint: In function ‘Java_com_google_webp_libwebpJNI_wrap_1WebPEncodeBGRA’
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c:1585:78: warning[-Wanalyzer-malloc-leak]: leak of ‘arg1’
# 1583|     (void)jenv;
# 1584|     (void)jcls;
# 1585|->   if (!SWIG_JavaArrayInUint8(jenv, &jarr1, (uint8_t **)&arg1, jarg1)) return 0; 
# 1586|     arg2 = (int *)&jarg2; 
# 1587|     arg3 = (int *)&jarg3; 

Error: GCC_ANALYZER_WARNING (CWE-401): [#def145]
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c: scope_hint: In function ‘Java_com_google_webp_libwebpJNI_wrap_1WebPEncodeLosslessRGB’
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c:1635:78: warning[-Wanalyzer-malloc-leak]: leak of ‘arg1’
# 1633|     (void)jenv;
# 1634|     (void)jcls;
# 1635|->   if (!SWIG_JavaArrayInUint8(jenv, &jarr1, (uint8_t **)&arg1, jarg1)) return 0; 
# 1636|     arg2 = (int *)&jarg2; 
# 1637|     arg3 = (int *)&jarg3; 

Error: GCC_ANALYZER_WARNING (CWE-401): [#def146]
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c: scope_hint: In function ‘Java_com_google_webp_libwebpJNI_wrap_1WebPEncodeLosslessBGR’
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c:1684:78: warning[-Wanalyzer-malloc-leak]: leak of ‘arg1’
# 1682|     (void)jenv;
# 1683|     (void)jcls;
# 1684|->   if (!SWIG_JavaArrayInUint8(jenv, &jarr1, (uint8_t **)&arg1, jarg1)) return 0; 
# 1685|     arg2 = (int *)&jarg2; 
# 1686|     arg3 = (int *)&jarg3; 

Error: GCC_ANALYZER_WARNING (CWE-401): [#def147]
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c: scope_hint: In function ‘Java_com_google_webp_libwebpJNI_wrap_1WebPEncodeLosslessRGBA’
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c:1733:78: warning[-Wanalyzer-malloc-leak]: leak of ‘arg1’
# 1731|     (void)jenv;
# 1732|     (void)jcls;
# 1733|->   if (!SWIG_JavaArrayInUint8(jenv, &jarr1, (uint8_t **)&arg1, jarg1)) return 0; 
# 1734|     arg2 = (int *)&jarg2; 
# 1735|     arg3 = (int *)&jarg3; 

Error: GCC_ANALYZER_WARNING (CWE-401): [#def148]
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c: scope_hint: In function ‘Java_com_google_webp_libwebpJNI_wrap_1WebPEncodeLosslessBGRA’
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c:1782:78: warning[-Wanalyzer-malloc-leak]: leak of ‘arg1’
# 1780|     (void)jenv;
# 1781|     (void)jcls;
# 1782|->   if (!SWIG_JavaArrayInUint8(jenv, &jarr1, (uint8_t **)&arg1, jarg1)) return 0; 
# 1783|     arg2 = (int *)&jarg2; 
# 1784|     arg3 = (int *)&jarg3; 

Error: CLANG_WARNING: [#def149]
libwebp-1.4.0-build/libwebp-1.4.0/swig/libwebp_java_wrap.c:1787:7: warning[unix.Malloc]: Potential leak of memory pointed to by 'arg1'
# 1785|     {
# 1786|       if (!jarg4) {
# 1787|->       SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "array null");
# 1788|         return 0;
# 1789|       }

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-154.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namelibwebp-1.4.0-1.fc41
store-results-to/tmp/tmp3tta3_86/libwebp-1.4.0-1.fc41.tar.xz
time-created2024-07-03 16:05:54
time-finished2024-07-03 16:09:19
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp3tta3_86/libwebp-1.4.0-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp3tta3_86/libwebp-1.4.0-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9