Newly introduced findings

List of Findings

Error: COMPILER_WARNING (CWE-686): [#def1]
libvorbis-1.3.7/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-0583tP/CheckFunctionExists.c:7:3: warning[-Wbuiltin-declaration-mismatch]: conflicting types for built-in function ‘floor’; expected ‘double(double)’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def2]
libvorbis-1.3.7/test/write_read.c:53:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "wb")’
libvorbis-1.3.7/test/write_read.c:44:15: acquire_resource: opened here
libvorbis-1.3.7/test/write_read.c:44:6: branch_false: following ‘false’ branch...
libvorbis-1.3.7/test/write_read.c:51:3: branch_false: ...to here
libvorbis-1.3.7/test/write_read.c:53:9: danger: ‘fopen(filename, "wb")’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   51|     vorbis_info_init (&vi);
#   52|   
#   53|->   ret = vorbis_encode_init_vbr (&vi,ch,srate,q);
#   54|     if (ret) {
#   55|       printf ("vorbis_encode_init_vbr return %d\n", ret) ;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
libvorbis-1.3.7/test/write_read.c:53:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "wb")’
libvorbis-1.3.7/test/write_read.c:44:15: acquire_memory: allocated here
libvorbis-1.3.7/test/write_read.c:44:6: branch_false: following ‘false’ branch...
libvorbis-1.3.7/test/write_read.c:51:3: branch_false: ...to here
libvorbis-1.3.7/test/write_read.c:53:9: danger: ‘fopen(filename, "wb")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   51|     vorbis_info_init (&vi);
#   52|   
#   53|->   ret = vorbis_encode_init_vbr (&vi,ch,srate,q);
#   54|     if (ret) {
#   55|       printf ("vorbis_encode_init_vbr return %d\n", ret) ;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def4]
libvorbis-1.3.7/test/write_read.c:163:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "rb")’
libvorbis-1.3.7/test/write_read.c:151:15: acquire_resource: opened here
libvorbis-1.3.7/test/write_read.c:151:6: branch_false: following ‘false’ branch...
libvorbis-1.3.7/test/write_read.c:156:3: branch_false: ...to here
libvorbis-1.3.7/test/write_read.c:165:7: branch_true: following ‘true’ branch...
libvorbis-1.3.7/test/write_read.c:166:9: branch_true: ...to here
libvorbis-1.3.7/test/write_read.c:163:5: danger: ‘fopen(filename, "rb")’ leaks here; was opened at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  161|       buffer = ogg_sync_buffer (&oy,8192);
#  162|       bytes = fread (buffer,1,8192,file);
#  163|->     ogg_sync_wrote (&oy,bytes);
#  164|   
#  165|       if(ogg_sync_pageout (&oy,&og) != 1) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def5]
libvorbis-1.3.7/test/write_read.c:163:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "rb")’
libvorbis-1.3.7/test/write_read.c:151:15: acquire_memory: allocated here
libvorbis-1.3.7/test/write_read.c:151:6: branch_false: following ‘false’ branch...
libvorbis-1.3.7/test/write_read.c:156:3: branch_false: ...to here
libvorbis-1.3.7/test/write_read.c:165:7: branch_true: following ‘true’ branch...
libvorbis-1.3.7/test/write_read.c:166:9: branch_true: ...to here
libvorbis-1.3.7/test/write_read.c:163:5: danger: ‘fopen(filename, "rb")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  161|       buffer = ogg_sync_buffer (&oy,8192);
#  162|       bytes = fread (buffer,1,8192,file);
#  163|->     ogg_sync_wrote (&oy,bytes);
#  164|   
#  165|       if(ogg_sync_pageout (&oy,&og) != 1) {

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-9.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-namelibvorbis-1.3.7-14.fc44
diffbase-store-results-to/tmp/tmpallr06_c/libvorbis-1.3.7-14.fc44.tar.xz
diffbase-time-created2026-06-01 14:48:54
diffbase-time-finished2026-06-01 14:50:35
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmpallr06_c/libvorbis-1.3.7-14.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpallr06_c/libvorbis-1.3.7-14.fc44.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-9.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-namelibvorbis-1.3.7-20.fc45
store-results-to/tmp/tmp2dk9nhm8/libvorbis-1.3.7-20.fc45.tar.xz
time-created2026-06-01 14:50:56
time-finished2026-06-01 14:52:24
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmp2dk9nhm8/libvorbis-1.3.7-20.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp2dk9nhm8/libvorbis-1.3.7-20.fc45.src.rpm'
tool-versioncsmock-3.8.5.20260529.133039.g6f3b5c6-1.el9