Error: GCC_ANALYZER_WARNING (CWE-401): [#def1] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:322:8: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>' # 320| while (0); # 321| # 322|-> if (tree->type == yajl_t_object) # 323| { # 324| size_t i; Error: GCC_ANALYZER_WARNING (CWE-401): [#def2] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c: scope_hint: In function 'make_runtime_spec_schema_config_windows' crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:602:32: warning[-Wanalyzer-malloc-leak]: leak of 'make_runtime_spec_schema_config_windows_resources(get_val(tree, "resources", 3), ctx, err)' # 600| return NULL; # 601| ret->memory = make_runtime_spec_schema_config_windows_resources_memory (get_val (tree, "memory", yajl_t_object), ctx, err); # 602|-> if (ret->memory == NULL && *err != 0) # 603| return NULL; # 604| ret->cpu = make_runtime_spec_schema_config_windows_resources_cpu (get_val (tree, "cpu", yajl_t_object), ctx, err); Error: GCC_ANALYZER_WARNING (CWE-401): [#def3] 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:214: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:214: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 )) Error: GCC_ANALYZER_WARNING (CWE-401): [#def4] crun-HEAD/src/libcrun/utils.h: scope_hint: In function 'libcrun_container_update' crun-HEAD/src/libcrun/utils.h:74:21: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc0(176)' crun-HEAD/src/libcrun/utils.h:57:40: note: in definition of macro 'UNLIKELY' crun-HEAD/src/libcrun/container.c:582:7: note: in expansion of macro 'crun_make_error' crun-HEAD/src/libcrun/container.c:1626:12: note: in expansion of macro 'crun_make_error' crun-HEAD/src/libcrun/utils.h:57:40: note: in definition of macro 'UNLIKELY' # 72| { # 73| void *res = calloc (1, size); # 74|-> if (UNLIKELY (res == NULL)) # 75| OOM (); # 76| return res;
| analyzer-version-clippy | 1.86.0 |
| analyzer-version-cppcheck | 2.17.1 |
| analyzer-version-gcc | 15.1.1 |
| analyzer-version-gcc-analyzer | 15.1.1 |
| analyzer-version-shellcheck | 0.10.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clippy | 1.86.0 |
| diffbase-analyzer-version-cppcheck | 2.17.1 |
| diffbase-analyzer-version-gcc | 15.1.1 |
| diffbase-analyzer-version-gcc-analyzer | 15.1.1 |
| diffbase-analyzer-version-shellcheck | 0.10.0 |
| diffbase-analyzer-version-unicontrol | 0.0.2 |
| diffbase-enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| diffbase-exit-code | 0 |
| diffbase-host | ip-172-16-1-201.us-west-2.compute.internal |
| diffbase-known-false-positives | /usr/share/csmock/known-false-positives.js |
| diffbase-known-false-positives-rpm | known-false-positives-0.0.0.20250516.152522.gc151e0d.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | crun-1.21-1.20250516214529248981.pr1750.105.g7621f953 |
| diffbase-store-results-to | /tmp/tmpcx3shtmt/crun-1.21-1.20250516214529248981.pr1750.105.g7621f953.tar.xz |
| diffbase-time-created | 2025-05-16 21:59:06 |
| diffbase-time-finished | 2025-05-16 22:04:15 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'clippy,shellcheck,gcc,cppcheck,unicontrol' '-o' '/tmp/tmpcx3shtmt/crun-1.21-1.20250516214529248981.pr1750.105.g7621f953.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpcx3shtmt/crun-1.21-1.20250516214529248981.pr1750.105.g7621f953.src.rpm' |
| diffbase-tool-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-201.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20250516.152522.gc151e0d.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | crun-1.21-1.20250516102901473004.main.102.g6946703c |
| store-results-to | /tmp/tmpzamu0gf_/crun-1.21-1.20250516102901473004.main.102.g6946703c.tar.xz |
| time-created | 2025-05-16 21:53:37 |
| time-finished | 2025-05-16 21:58:46 |
| title | Fixed findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'clippy,shellcheck,gcc,cppcheck,unicontrol' '-o' '/tmp/tmpzamu0gf_/crun-1.21-1.20250516102901473004.main.102.g6946703c.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpzamu0gf_/crun-1.21-1.20250516102901473004.main.102.g6946703c.src.rpm' |
| tool-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |