Fixed findings

List of Findings

Error: COMPILER_WARNING: [#def1]
gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-support.h: scope_hint: In function 'check_data.constprop'
gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-support.h:137:12: warning[-Wstringop-overflow=]: writing 1 byte into a region of size 0
#  137 |   buf[ret] = 0;
#      |            ^
gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-support.h:114:8: note: at offset [-2147483648, -1] into destination object 'buf' of size 513
#  114 |   char buf[BUF_SIZE + 1];
#      |        ^
#  135|     if ((ret = gpgme_data_read (dh, buf, BUF_SIZE)) < 0)
#  136|       fail_if_err (gpgme_err_code_from_errno (errno));
#  137|->   buf[ret] = 0;
#  138|     if (ret != expectedlen || strncmp (buf, expected, expectedlen))
#  139|       {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
gpgme-1.23.2-build/gpgme-1.23.2/tests/run-import.c: scope_hint: In function ‘main’
gpgme-1.23.2-build/gpgme-1.23.2/tests/run-import.c:115:23: warning[-Wanalyzer-malloc-leak]: leak of ‘import_filter’
#  113|               show_usage (1);
#  114|             import_filter = strdup (*argv);
#  115|->           argc--; argv++;
#  116|           }
#  117|         else if (!strcmp (*argv, "--key-origin"))

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.82.0
diffbase-analyzer-version-cppcheck2.16.0
diffbase-analyzer-version-gcc14.2.1
diffbase-analyzer-version-gcc-analyzer15.0.0
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-232.us-west-2.compute.internal
diffbase-mock-configfedora-rawhide-gcc-latest-x86_64
diffbase-project-namegpgme-1.24.0-1.fc42
diffbase-store-results-to/tmp/tmp1_0knd0h/gpgme-1.24.0-1.fc42.tar.xz
diffbase-time-created2024-11-13 00:09:36
diffbase-time-finished2024-11-13 00:17:07
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmp1_0knd0h/gpgme-1.24.0-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp1_0knd0h/gpgme-1.24.0-1.fc42.src.rpm'
diffbase-tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-232.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namegpgme-1.23.2-5.fc41
store-results-to/tmp/tmpvp7d1e07/gpgme-1.23.2-5.fc41.tar.xz
time-created2024-11-13 00:03:06
time-finished2024-11-13 00:09:07
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpvp7d1e07/gpgme-1.23.2-5.fc41.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpvp7d1e07/gpgme-1.23.2-5.fc41.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9