Fixed defects

List of Defects

Error: CPPCHECK_WARNING: [#def1]
aom-3.8.2-build/aom-3.8.2/aom/src/aom_image.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-457): [#def2]
aom-3.8.2-build/aom-3.8.2/aom_dsp/bitwriter.c: scope_hint: In function ‘aom_stop_encode.isra’
aom-3.8.2-build/aom-3.8.2/aom_dsp/bitwriter.c:27:3: warning[-Wmaybe-uninitialized]: ‘bytes’ may be used uninitialized
#   27 |   memcpy(w->buffer, data, bytes);
#      |   ^
aom-3.8.2-build/aom-3.8.2/aom_dsp/bitwriter.c:23:12: note: ‘bytes’ was declared here
#   23 |   uint32_t bytes;
#      |            ^
#   25|     data = od_ec_enc_done(&w->ec, &bytes);
#   26|     nb_bits = od_ec_enc_tell(&w->ec);
#   27|->   memcpy(w->buffer, data, bytes);
#   28|     w->pos = bytes;
#   29|     od_ec_enc_clear(&w->ec);

Error: CPPCHECK_WARNING: [#def3]
aom-3.8.2-build/aom-3.8.2/aom_dsp/x86/highbd_convolve_avx2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def4]
aom-3.8.2-build/aom-3.8.2/aom_dsp/x86/highbd_convolve_ssse3.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def5]
aom-3.8.2-build/aom-3.8.2/aom_dsp/x86/intrapred_avx2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def6]
aom-3.8.2-build/aom-3.8.2/aom_dsp/x86/intrapred_sse4.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def7]
aom-3.8.2-build/aom-3.8.2/av1/common/x86/av1_convolve_scale_sse4.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def8]
aom-3.8.2-build/aom-3.8.2/av1/common/x86/highbd_convolve_2d_avx2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def9]
aom-3.8.2-build/aom-3.8.2/av1/common/x86/highbd_convolve_2d_sse4.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def10]
aom-3.8.2-build/aom-3.8.2/av1/common/x86/highbd_convolve_2d_ssse3.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def11]
aom-3.8.2-build/aom-3.8.2/av1/common/x86/highbd_jnt_convolve_avx2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def12]
aom-3.8.2-build/aom-3.8.2/av1/common/x86/jnt_convolve_avx2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def13]
aom-3.8.2-build/aom-3.8.2/av1/common/x86/jnt_convolve_sse2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def14]
aom-3.8.2-build/aom-3.8.2/av1/common/x86/jnt_convolve_ssse3.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def15]
aom-3.8.2-build/aom-3.8.2/av1/encoder/cnn.c: scope_hint: In function ‘av1_cnn_activate_c’
aom-3.8.2-build/aom-3.8.2/av1/encoder/cnn.c:329:37: warning[-Wanalyzer-jump-through-null]: jump through null pointer
aom-3.8.2-build/aom-3.8.2/av1/common/av1_common_int.h:16: included_from: Included from here.
aom-3.8.2-build/aom-3.8.2/av1/encoder/cnn.c:17: included_from: Included from here.
aom-3.8.2-build/aom-3.8.2/av1/encoder/cnn.c:1190:18: note: in expansion of macro ‘av1_cnn_predict’
aom-3.8.2-build/aom-3.8.2/av1/encoder/cnn.c:1017:7: note: in expansion of macro ‘av1_cnn_activate’
aom-3.8.2-build/aom-3.8.2/av1/encoder/cnn.c:1017:7: note: in expansion of macro ‘av1_cnn_activate’
#  327|       for (int i = 0; i < height; ++i)
#  328|         for (int j = 0; j < width; ++j)
#  329|->         output[c][i * stride + j] = activation(output[c][i * stride + j]);
#  330|     }
#  331|   }

Error: CLANG_WARNING: [#def16]
aom-3.8.2-build/aom-3.8.2/av1/encoder/pass2_strategy.c:32: included_from: Included from here.
aom-3.8.2-build/aom-3.8.2/av1/encoder/encoder.h:41: included_from: Included from here.
aom-3.8.2-build/aom-3.8.2/av1/encoder/firstpass.h:554:11: warning[core.NullDereference]: Access to field 'frame_avg_wavelet_energy' results in a dereference of a null pointer (loaded from variable 'fp_stats')
#  552|       const FIRSTPASS_STATS *fp_stats) {
#  553|     assert(fp_stats != NULL);
#  554|->   return (fp_stats->frame_avg_wavelet_energy < 0);
#  555|   }
#  556|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def17]
aom-3.8.2-build/aom-3.8.2/av1/encoder/reconinter_enc.c: scope_hint: In function ‘build_obmc_prediction’
aom-3.8.2-build/aom-3.8.2/av1/encoder/reconinter_enc.c:209:37: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘conv_params.fwd_offset’
aom-3.8.2-build/aom-3.8.2/av1/common/scale.h:15: included_from: Included from here.
aom-3.8.2-build/aom-3.8.2/av1/encoder/reconinter_enc.c: scope_hint: In function ‘build_obmc_prediction’
#  207|                             xd->block_ref_scale_factors[0], pre_buf,
#  208|                             above_mbmi->interp_filters);
#  209|->     inter_pred_params.conv_params = get_conv_params(0, j, xd->bd);
#  210|   
#  211|       av1_enc_build_one_inter_predictor(pd->dst.buf, pd->dst.stride, &mv,

Error: CPPCHECK_WARNING: [#def18]
aom-3.8.2-build/aom-3.8.2/av1/encoder/x86/av1_k_means_avx2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def19]
aom-3.8.2-build/aom-3.8.2/av1/encoder/x86/av1_k_means_sse2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def20]
aom-3.8.2-build/aom-3.8.2/examples/scalable_encoder.c:219:6: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(infile0_arg, "rb")’
aom-3.8.2-build/aom-3.8.2/examples/scalable_encoder.c:209:7: note: in expansion of macro ‘aom_codec_enc_init’
#  217|       die_codec(&codec, "Failed to set num of tile groups to 3");
#  218|   
#  219|->   if (aom_codec_control(&codec, AOME_SET_NUMBER_SPATIAL_LAYERS, 2))
#  220|       die_codec(&codec, "Failed to set number of spatial layers to 2");
#  221|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def21]
aom-3.8.2-build/aom-3.8.2/examples/scalable_encoder.c:219:6: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(infile1_arg, "rb")’
aom-3.8.2-build/aom-3.8.2/examples/scalable_encoder.c:209:7: note: in expansion of macro ‘aom_codec_enc_init’
#  217|       die_codec(&codec, "Failed to set num of tile groups to 3");
#  218|   
#  219|->   if (aom_codec_control(&codec, AOME_SET_NUMBER_SPATIAL_LAYERS, 2))
#  220|       die_codec(&codec, "Failed to set number of spatial layers to 2");
#  221|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def22]
aom-3.8.2-build/aom-3.8.2/examples/scalable_encoder.c:228:49: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(infile1_arg, "rb")’
aom-3.8.2-build/aom-3.8.2/examples/scalable_encoder.c:209:7: note: in expansion of macro ‘aom_codec_enc_init’
#  226|       // configure and encode base layer
#  227|   
#  228|->     if (keyframe_interval > 0 && frames_encoded % keyframe_interval == 0)
#  229|         flags |= AOM_EFLAG_FORCE_KF;
#  230|       else

Error: GCC_ANALYZER_WARNING (CWE-775): [#def23]
aom-3.8.2-build/aom-3.8.2/examples/scalable_encoder.c:228:49: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(outfile_arg, "wb")’
aom-3.8.2-build/aom-3.8.2/examples/scalable_encoder.c:209:7: note: in expansion of macro ‘aom_codec_enc_init’
#  226|       // configure and encode base layer
#  227|   
#  228|->     if (keyframe_interval > 0 && frames_encoded % keyframe_interval == 0)
#  229|         flags |= AOM_EFLAG_FORCE_KF;
#  230|       else

Error: GCC_ANALYZER_WARNING (CWE-401): [#def24]
aom-3.8.2-build/aom-3.8.2/examples/scalable_encoder.c:228:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(infile1_arg, "rb")’
aom-3.8.2-build/aom-3.8.2/examples/scalable_encoder.c:209:7: note: in expansion of macro ‘aom_codec_enc_init’
#  226|       // configure and encode base layer
#  227|   
#  228|->     if (keyframe_interval > 0 && frames_encoded % keyframe_interval == 0)
#  229|         flags |= AOM_EFLAG_FORCE_KF;
#  230|       else

Error: GCC_ANALYZER_WARNING (CWE-401): [#def25]
aom-3.8.2-build/aom-3.8.2/examples/scalable_encoder.c:228:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(outfile_arg, "wb")’
aom-3.8.2-build/aom-3.8.2/examples/scalable_encoder.c:209:7: note: in expansion of macro ‘aom_codec_enc_init’
#  226|       // configure and encode base layer
#  227|   
#  228|->     if (keyframe_interval > 0 && frames_encoded % keyframe_interval == 0)
#  229|         flags |= AOM_EFLAG_FORCE_KF;
#  230|       else

Error: GCC_ANALYZER_WARNING (CWE-775): [#def26]
aom-3.8.2-build/aom-3.8.2/examples/scalable_encoder.c:279:3: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(outfile_arg, "wb")’
aom-3.8.2-build/aom-3.8.2/examples/scalable_encoder.c:209:7: note: in expansion of macro ‘aom_codec_enc_init’
#  277|     fclose(infile0);
#  278|     fclose(infile1);
#  279|->   printf("Processed %d frames.\n", frame_count / 2);
#  280|   
#  281|     aom_img_free(&raw0);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def27]
aom-3.8.2-build/aom-3.8.2/examples/scalable_encoder.c:279:3: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(outfile_arg, "wb")’
aom-3.8.2-build/aom-3.8.2/examples/scalable_encoder.c:209:7: note: in expansion of macro ‘aom_codec_enc_init’
#  277|     fclose(infile0);
#  278|     fclose(infile1);
#  279|->   printf("Processed %d frames.\n", frame_count / 2);
#  280|   
#  281|     aom_img_free(&raw0);

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
diffbase-analyzer-version-clang18.1.7
diffbase-analyzer-version-cppcheck2.14.2
diffbase-analyzer-version-gcc14.1.1
diffbase-analyzer-version-gcc-analyzer14.1.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-enabled-pluginsclang, cppcheck, gcc, shellcheck
diffbase-exit-code0
diffbase-hostip-172-16-1-225.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-nameaom-3.9.0-1.fc41
diffbase-store-results-to/tmp/tmp2ked_wxd/aom-3.9.0-1.fc41.tar.xz
diffbase-time-created2024-07-03 12:05:19
diffbase-time-finished2024-07-03 12:14:32
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp2ked_wxd/aom-3.9.0-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp2ked_wxd/aom-3.9.0-1.fc41.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-225.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-nameaom-3.8.2-1.fc40
store-results-to/tmp/tmpii5ohins/aom-3.8.2-1.fc40.tar.xz
time-created2024-07-03 11:55:43
time-finished2024-07-03 12:05:08
titleFixed defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpii5ohins/aom-3.8.2-1.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpii5ohins/aom-3.8.2-1.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9