Error: COMPILER_WARNING (CWE-476): [#def1] attr-2.5.2/libattr/attr_copy_fd.c: scope_hint: In function 'attr_copy_fd' attr-2.5.2/libattr/attr_copy_fd.c:128:24: warning[-Wnonnull]: argument 3 is null but the corresponding size argument 4 value is [1, 9223372036854775807] # 128 | size = fgetxattr (src_fd, name, value, size); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ attr-2.5.2/libattr/attr_copy_fd.c:25: included_from: Included from here. /usr/include/sys/xattr.h:73:16: note: in a call to function 'fgetxattr' declared with attribute 'access (write_only, 3, 4)' # 73 | extern ssize_t fgetxattr (int __fd, const char *__name, void *__value, # | ^~~~~~~~~ # 126| ret = -1; # 127| } # 128|-> size = fgetxattr (src_fd, name, value, size); # 129| if (size < 0) { # 130| const char *qpath = quote (ctx, src_path); Error: COMPILER_WARNING (CWE-476): [#def2] attr-2.5.2/libattr/attr_copy_file.c: scope_hint: In function 'attr_copy_file' attr-2.5.2/libattr/attr_copy_file.c:126:24: warning[-Wnonnull]: argument 3 is null but the corresponding size argument 4 value is [1, 9223372036854775807] # 126 | size = lgetxattr (src_path, name, value, size); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ attr-2.5.2/libattr/attr_copy_file.c:25: included_from: Included from here. /usr/include/sys/xattr.h:67:16: note: in a call to function 'lgetxattr' declared with attribute 'access (write_only, 3, 4)' # 67 | extern ssize_t lgetxattr (const char *__path, const char *__name, # | ^~~~~~~~~ # 124| ret = -1; # 125| } # 126|-> size = lgetxattr (src_path, name, value, size); # 127| if (size < 0) { # 128| const char *qpath = quote (ctx, src_path); Error: COMPILER_WARNING: [#def3] attr-2.5.2/libattr/libattr.c: scope_hint: In function 'attr_list' attr-2.5.2/libattr/libattr.c:279:9: warning[-Wstringop-truncation]: 'strncpy' specified bound depends on the length of the source argument # 279 | strncpy(aentp->a_name, name, size - sizeof(aentp->a_valuelen)); # | ^ attr-2.5.2/libattr/libattr.c:269:28: note: length computed here # 269 | int size = roundup(strlen(name) + 1 + sizeof(aentp->a_valuelen), 8); # | ^~~~~~~~~~~~ # 277| aentp = (attrlist_ent_t *)&buffer[ *end_offset ]; # 278| aentp->a_valuelen = valuelen; # 279|-> strncpy(aentp->a_name, name, size - sizeof(aentp->a_valuelen)); # 280| # 281| *start_offset += sizeof(alist->al_offset);
| analyzer-version-clippy | 1.97.1 |
| analyzer-version-cppcheck | 2.21.1 |
| analyzer-version-gcc | 16.1.1 |
| analyzer-version-gcc-analyzer | 16.1.1 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clippy | 1.97.1 |
| diffbase-analyzer-version-cppcheck | 2.21.1 |
| diffbase-analyzer-version-gcc | 16.1.1 |
| diffbase-analyzer-version-gcc-analyzer | 16.1.1 |
| diffbase-analyzer-version-shellcheck | 0.11.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-23.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.20260524.213755.g3c6d0be.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | attr-2.6.0-2.fc45 |
| diffbase-store-results-to | /tmp/tmp6bmy0and/attr-2.6.0-2.fc45.tar.xz |
| diffbase-time-created | 2026-08-03 13:22:28 |
| diffbase-time-finished | 2026-08-03 13:23:40 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmp6bmy0and/attr-2.6.0-2.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp6bmy0and/attr-2.6.0-2.fc45.src.rpm' |
| diffbase-tool-version | csmock-3.8.7.HEAD-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-23.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.20260524.213755.g3c6d0be.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | attr-2.5.2-8.fc44 |
| store-results-to | /tmp/tmpwhdg4l1u/attr-2.5.2-8.fc44.tar.xz |
| time-created | 2026-08-03 13:20:05 |
| time-finished | 2026-08-03 13:22:13 |
| title | Fixed findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpwhdg4l1u/attr-2.5.2-8.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpwhdg4l1u/attr-2.5.2-8.fc44.src.rpm' |
| tool-version | csmock-3.8.7.HEAD-1.el9 |