Fixed defects

List of Defects

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1]
alsa-lib-1.2.11-build/alsa-lib-1.2.11/src/topology/save.c: scope_hint: In function 'tplg_save_printf'
alsa-lib-1.2.11-build/alsa-lib-1.2.11/src/topology/save.c:96:9: warning[-Wanalyzer-null-argument]: use of NULL 'buf.printf_buf' where non-null expected
alsa-lib-1.2.11-build/alsa-lib-1.2.11/include/local.h:32: included_from: Included from here.
alsa-lib-1.2.11-build/alsa-lib-1.2.11/src/topology/tplg_local.h:13: included_from: Included from here.
alsa-lib-1.2.11-build/alsa-lib-1.2.11/src/topology/save.c:18: included_from: Included from here.
alsa-lib-1.2.11-build/alsa-lib-1.2.11/include/local.h:222: included_from: Included from here.
alsa-lib-1.2.11-build/alsa-lib-1.2.11/src/topology/save.c:439:17: note: in expansion of macro 'list_for_each'
alsa-lib-1.2.11-build/alsa-lib-1.2.11/src/topology/save.c:85:39: note: in expansion of macro 'NEXT_CHUNK'
<built-in>: note: argument 2 of '__builtin_strcpy' must be non-null
#   94|   	if (pl > 0)
#   95|   		strcpy(s + l, pfx);
#   96|-> 	strcpy(s + l + pl, dst->printf_buf);
#   97|   	dst->dst = s;
#   98|   	dst->dst_len = t - 1;

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-clang18.1.7
diffbase-analyzer-version-cppcheck2.14.2
diffbase-analyzer-version-gcc14.1.1
diffbase-analyzer-version-gcc-analyzer14.1.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-enabled-pluginsclang, cppcheck, gcc, shellcheck
diffbase-exit-code0
diffbase-hostip-172-16-1-99.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namealsa-lib-1.2.12-1.fc41
diffbase-store-results-to/tmp/tmpe_hnaw2o/alsa-lib-1.2.12-1.fc41.tar.xz
diffbase-time-created2024-07-03 12:00:54
diffbase-time-finished2024-07-03 12:04:24
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpe_hnaw2o/alsa-lib-1.2.12-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpe_hnaw2o/alsa-lib-1.2.12-1.fc41.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-99.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namealsa-lib-1.2.11-2.fc40
store-results-to/tmp/tmpdh9cjvcu/alsa-lib-1.2.11-2.fc40.tar.xz
time-created2024-07-03 11:56:48
time-finished2024-07-03 12:00:43
titleFixed defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpdh9cjvcu/alsa-lib-1.2.11-2.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpdh9cjvcu/alsa-lib-1.2.11-2.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9