Error: GCC_ANALYZER_WARNING (CWE-401): [#def1] composefs-1.0.6-build/composefs-1.0.6/libcomposefs/lcfs-writer-erofs.c: scope_hint: In function ‘lcfs_build_node_from_image’ composefs-1.0.6-build/composefs-1.0.6/libcomposefs/lcfs-writer-erofs.c:1727:12: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(16)’ composefs-1.0.6-build/composefs-1.0.6/libcomposefs/lcfs-writer-erofs.c:39: included_from: Included from here. composefs-1.0.6-build/composefs-1.0.6/libcomposefs/lcfs-internal.h:29: included_from: Included from here. composefs-1.0.6-build/composefs-1.0.6/libcomposefs/lcfs-writer-erofs.c:21: included_from: Included from here. composefs-1.0.6-build/composefs-1.0.6/libcomposefs/lcfs-writer-erofs.c:1996:13: note: in expansion of macro ‘lcfs_u32_from_file’ composefs-1.0.6-build/composefs-1.0.6/libcomposefs/lcfs-writer-erofs.c:2001:13: note: in expansion of macro ‘lcfs_u32_from_file’ composefs-1.0.6-build/composefs-1.0.6/libcomposefs/lcfs-writer-erofs.c:2008:13: note: in expansion of macro ‘lcfs_u32_from_file’ composefs-1.0.6-build/composefs-1.0.6/libcomposefs/lcfs-writer-erofs.c:2015:17: note: in expansion of macro ‘lcfs_u32_from_file’ # 1725| new_ht_entry->nid = nid; # 1726| new_ht_entry->node = node; # 1727|-> if (hash_insert(data->node_hash, new_ht_entry) == NULL) { # 1728| lcfs_node_unref(node); # 1729| errno = ENOMEM; Error: GCC_ANALYZER_WARNING (CWE-401): [#def2] composefs-1.0.6-build/composefs-1.0.6/libcomposefs/lcfs-writer.c: scope_hint: In function ‘lcfs_node_set_xattr_internal’ composefs-1.0.6-build/composefs-1.0.6/libcomposefs/lcfs-writer.c:1719:12: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’ composefs-1.0.6-build/composefs-1.0.6/libcomposefs/lcfs-writer.c:41: included_from: Included from here. composefs-1.0.6-build/composefs-1.0.6/libcomposefs/lcfs-writer.c:23: included_from: Included from here. composefs-1.0.6-build/composefs-1.0.6/libcomposefs/lcfs-writer.c: scope_hint: In function ‘lcfs_node_set_xattr_internal’ # 1717| xattrs = realloc(node->xattrs, # 1718| (node->n_xattrs + 1) * sizeof(struct lcfs_xattr_s)); # 1719|-> if (xattrs == NULL) { # 1720| errno = ENOMEM; # 1721| return -1; Error: CPPCHECK_WARNING (CWE-401): [#def3] composefs-1.0.6-build/composefs-1.0.6/libcomposefs/lcfs-writer.c:1764: error[memleak]: Memory leak: dup # 1762| if (index >= node->n_xattrs) { # 1763| errno = EINVAL; # 1764|-> return -1; # 1765| } # 1766| Error: CPPCHECK_WARNING (CWE-401): [#def4] composefs-1.0.6-build/composefs-1.0.6/libcomposefs/lcfs-writer.c:1770: error[memleak]: Memory leak: dup # 1768| free(xattr->key); # 1769| xattr->key = steal_pointer(&dup); # 1770|-> return 0; # 1771| } Error: GCC_ANALYZER_WARNING (CWE-401): [#def5] composefs-1.0.6-build/composefs-1.0.6/tools/composefs-info.c: scope_hint: In function ‘get_objects’ composefs-1.0.6-build/composefs-1.0.6/tools/composefs-info.c:303:1: warning[-Wanalyzer-malloc-leak]: leak of ‘dup’ # 301| get_objects(child, data, basedir_fd); # 302| } # 303|-> } # 304| # 305| static size_t str_ht_hash(const void *entry, size_t table_size)
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-181.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | composefs-1.0.6-1.fc42 |
store-results-to | /tmp/tmp530sa0eq/composefs-1.0.6-1.fc42.tar.xz |
time-created | 2024-11-12 23:22:14 |
time-finished | 2024-11-12 23:23:37 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmp530sa0eq/composefs-1.0.6-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp530sa0eq/composefs-1.0.6-1.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |