Fixed findings

List of Findings

Error: CPPCHECK_WARNING (CWE-823): [#def1]
libvpx-1.15.0/vp9/encoder/vp9_encoder.h:1479: error[arrayIndexOutOfBounds]: Array 'vp9_level_defs[14]' accessed at index 254, which is out of bounds.
# 1477|     const uint32_t pic_breadth = VPXMAX(width, height);
# 1478|     for (i = LEVEL_1; i < LEVEL_MAX; ++i) {
# 1479|->     if (vp9_level_defs[i].max_luma_picture_size >= pic_size &&
# 1480|           vp9_level_defs[i].max_luma_picture_breadth >= pic_breadth) {
# 1481|         return get_msb(vp9_level_defs[i].max_col_tiles);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def2]
libvpx-1.15.0/vp9/encoder/vp9_firstpass.c:1853:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libvpx-1.15.0/vp9/encoder/vp9_firstpass.c:3677:6: enter_function: entry to ‘vp9_rc_get_second_pass_params’
libvpx-1.15.0/vp9/encoder/vp9_firstpass.c:3695:6: branch_false: following ‘false’ branch...
libvpx-1.15.0/vp9/encoder/vp9_firstpass.c:3698:7: branch_false: ...to here
libvpx-1.15.0/vp9/encoder/vp9_firstpass.c:3706:6: branch_false: following ‘false’ branch...
libvpx-1.15.0/vp9/encoder/vp9_firstpass.c:3730:3: branch_false: ...to here
libvpx-1.15.0/vp9/encoder/vp9_firstpass.c:3766:14: call_function: inlined call to ‘input_stats’ from ‘vp9_rc_get_second_pass_params’
libvpx-1.15.0/vp9/encoder/vp9_firstpass.c:3777:5: call_function: calling ‘find_next_key_frame’ from ‘vp9_rc_get_second_pass_params’
libvpx-1.15.0/vp9/encoder/vp9_firstpass.c:3777:5: return_function: returning to ‘vp9_rc_get_second_pass_params’ from ‘find_next_key_frame’
libvpx-1.15.0/vp9/encoder/vp9_firstpass.c:3783:6: branch_true: following ‘true’ branch...
libvpx-1.15.0/vp9/encoder/vp9_firstpass.c:3784:5: branch_true: ...to here
libvpx-1.15.0/vp9/encoder/vp9_firstpass.c:3784:5: call_function: calling ‘define_gf_group’ from ‘vp9_rc_get_second_pass_params’
# 1851|       const FIRSTPASS_STATS *stats =
# 1852|           fps_get_frame_stats(first_pass_info, show_idx + j);
# 1853|->     if (stats->pcnt_inter - stats->pcnt_motion < 0.999) break;
# 1854|     }
# 1855|   

Scan Properties

analyzer-version-clippy1.95.0
analyzer-version-cppcheck2.20.0
analyzer-version-gcc16.1.1
analyzer-version-gcc-analyzer16.1.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.95.0
diffbase-analyzer-version-cppcheck2.20.0
diffbase-analyzer-version-gcc16.1.1
diffbase-analyzer-version-gcc-analyzer16.1.1
diffbase-analyzer-version-shellcheck0.11.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-156.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namelibvpx-1.16.0-2.fc45
diffbase-store-results-to/tmp/tmppr8f2slg/libvpx-1.16.0-2.fc45.tar.xz
diffbase-time-created2026-06-01 14:55:35
diffbase-time-finished2026-06-01 15:01:12
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmppr8f2slg/libvpx-1.16.0-2.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmppr8f2slg/libvpx-1.16.0-2.fc45.src.rpm'
diffbase-tool-versioncsmock-3.8.5.20260529.133039.g6f3b5c6-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-156.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namelibvpx-1.15.0-5.fc44
store-results-to/tmp/tmp3e1wdfih/libvpx-1.15.0-5.fc44.tar.xz
time-created2026-06-01 14:49:04
time-finished2026-06-01 14:55:05
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmp3e1wdfih/libvpx-1.15.0-5.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp3e1wdfih/libvpx-1.15.0-5.fc44.src.rpm'
tool-versioncsmock-3.8.5.20260529.133039.g6f3b5c6-1.el9