Fixed findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-471): [#def1]
nettle-3.10.1/mini-gmp.c:1328:11: warning[-Wanalyzer-write-to-const]: write to ‘const’ object ‘dummy_limb’
nettle-3.10.1/eccdata.c:1404:1: enter_function: entry to ‘main’
nettle-3.10.1/eccdata.c:1408:6: branch_false: following ‘false’ branch (when ‘argc > 3’)...
nettle-3.10.1/eccdata.c:1414:3: branch_false: ...to here
nettle-3.10.1/eccdata.c:1414:3: call_function: calling ‘ecc_curve_init’ from ‘main’
# 1326|         if (shift == 0)
# 1327|   	{
# 1328|-> 	  rp[rn++] = sp[j];
# 1329|   	  shift += bits;
# 1330|   	}

Error: GCC_ANALYZER_WARNING (CWE-471): [#def2]
nettle-3.10.1/mini-gmp.c:1333:11: warning[-Wanalyzer-write-to-const]: write to ‘const’ object ‘dummy_limb’
nettle-3.10.1/eccdata.c:1404:1: enter_function: entry to ‘main’
nettle-3.10.1/eccdata.c:1408:6: branch_false: following ‘false’ branch (when ‘argc > 3’)...
nettle-3.10.1/eccdata.c:1414:3: branch_false: ...to here
nettle-3.10.1/eccdata.c:1414:3: call_function: calling ‘ecc_curve_init’ from ‘main’
# 1331|         else
# 1332|   	{
# 1333|-> 	  rp[rn-1] |= (mp_limb_t) sp[j] << shift;
# 1334|   	  shift += bits;
# 1335|   	  if (shift >= GMP_LIMB_BITS)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def3]
nettle-3.10.1/umac64.c:139:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘&tag’
nettle-3.10.1/umac64.c:97:3: branch_true: following ‘true’ branch (when ‘length != 0’)...
nettle-3.10.1/umac64.c:98:3: branch_true: ...to here
nettle-3.10.1/umac64.c:98:3: branch_true: following ‘true’ branch (when ‘length <= 8’)...
nettle-3.10.1/umac64.c:100:7: branch_true: ...to here
nettle-3.10.1/umac64.c:112:3: branch_true: following ‘true’ branch...
nettle-3.10.1/umac64.c:113:10: branch_true: ...to here
nettle-3.10.1/umac64.c:139:3: danger: use of uninitialized value ‘&tag’ here
#  137|     tag[1] = pad[1] ^ ctx->l3_key2[1] ^ _nettle_umac_l3 (ctx->l3_key1 + 8,
#  138|   						       ctx->l2_state + 2);
#  139|->   memcpy (digest, tag, length);
#  140|   
#  141|     /* Reinitialize */

Scan Properties

analyzer-version-clippy1.97.1
analyzer-version-cppcheck2.21.1
analyzer-version-gcc16.1.1
analyzer-version-gcc-analyzer16.1.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.97.1
diffbase-analyzer-version-cppcheck2.21.1
diffbase-analyzer-version-gcc16.1.1
diffbase-analyzer-version-gcc-analyzer16.1.1
diffbase-analyzer-version-shellcheck0.11.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-38.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namenettle-4.0-5.fc45
diffbase-store-results-to/tmp/tmpizz7wrcw/nettle-4.0-5.fc45.tar.xz
diffbase-time-created2026-08-03 18:38:39
diffbase-time-finished2026-08-03 18:40:17
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpizz7wrcw/nettle-4.0-5.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpizz7wrcw/nettle-4.0-5.fc45.src.rpm'
diffbase-tool-versioncsmock-3.8.7.20260803.142340.gb75b18e-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-38.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namenettle-3.10.1-3.fc44
store-results-to/tmp/tmpnhmjzfcm/nettle-3.10.1-3.fc44.tar.xz
time-created2026-08-03 18:35:55
time-finished2026-08-03 18:38:25
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpnhmjzfcm/nettle-3.10.1-3.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpnhmjzfcm/nettle-3.10.1-3.fc44.src.rpm'
tool-versioncsmock-3.8.7.20260803.142340.gb75b18e-1.el9