Fixed findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:375:8: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
#  373|       while (0);
#  374|   
#  375|->     if (tree->type == yajl_t_object)
#  376|         {
#  377|           size_t i;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
crun-HEAD/libocispec/src/ocispec/json_common.h:9: included_from: Included from here.
crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.h:7: included_from: Included from here.
crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:8: included_from: Included from here.
crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:155:49: warning[-Wanalyzer-malloc-leak]: leak of 'make_runtime_spec_schema_config_linux_resources_block_io(get_val(tree, "blockIO", 3), ctx,  err)'
crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:180:29: note: in expansion of macro 'YAJL_IS_ARRAY'
crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:267:28: note: in expansion of macro 'YAJL_GET_ARRAY'
crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:180:29: note: in expansion of macro 'YAJL_IS_ARRAY'
crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:267:28: note: in expansion of macro 'YAJL_GET_ARRAY'
#  153|   #define YAJL_IS_DOUBLE(v) (YAJL_IS_NUMBER(v) && ((v)->u.number.flags & YAJL_NUMBER_DOUBLE_VALID))
#  154|   #define YAJL_IS_OBJECT(v) (((v) != NULL) && ((v)->type == yajl_t_object))
#  155|-> #define YAJL_IS_ARRAY(v)  (((v) != NULL) && ((v)->type == yajl_t_array ))
#  156|   #define YAJL_IS_TRUE(v)   (((v) != NULL) && ((v)->type == yajl_t_true  ))
#  157|   #define YAJL_IS_FALSE(v)  (((v) != NULL) && ((v)->type == yajl_t_false ))

Scan Properties

analyzer-version-clippy1.86.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.1.1
analyzer-version-gcc-analyzer15.1.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.86.0
diffbase-analyzer-version-cppcheck2.17.1
diffbase-analyzer-version-gcc15.1.1
diffbase-analyzer-version-gcc-analyzer15.1.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-157.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.20250516.152522.gc151e0d.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namecrun-1.21-1.20250521103557479410.pr1750.112.g07374bb6
diffbase-store-results-to/tmp/tmp18dtlxe5/crun-1.21-1.20250521103557479410.pr1750.112.g07374bb6.tar.xz
diffbase-time-created2025-05-21 10:49:44
diffbase-time-finished2025-05-21 10:54:32
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'clippy,shellcheck,gcc,cppcheck,unicontrol' '-o' '/tmp/tmp18dtlxe5/crun-1.21-1.20250521103557479410.pr1750.112.g07374bb6.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmp18dtlxe5/crun-1.21-1.20250521103557479410.pr1750.112.g07374bb6.src.rpm'
diffbase-tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-157.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250516.152522.gc151e0d.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namecrun-1.21-1.20250519140954534136.main.107.gb81374d6
store-results-to/tmp/tmp6m47lce8/crun-1.21-1.20250519140954534136.main.107.gb81374d6.tar.xz
time-created2025-05-21 10:44:14
time-finished2025-05-21 10:49:20
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'clippy,shellcheck,gcc,cppcheck,unicontrol' '-o' '/tmp/tmp6m47lce8/crun-1.21-1.20250519140954534136.main.107.gb81374d6.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmp6m47lce8/crun-1.21-1.20250519140954534136.main.107.gb81374d6.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9