jss-5.10.0~alpha1-1.20260319170624677752.master.78.gc527e376
List of Findings
Error: CPPCHECK_WARNING (CWE-401): [#def1]
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/PK11Finder.c:1969: error[memleak]: Memory leak: derCert
Error: GCC_ANALYZER_WARNING (CWE-476): [#def2]
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/PK11Finder.c: scope_hint: In function ‘Java_org_mozilla_jss_CryptoManager_importDERCertNative’
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/PK11Finder.c:1976:19: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘derCert’
cc1: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics
Error: CPPCHECK_WARNING (CWE-401): [#def3]
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/PK11Finder.c:1978: error[memleak]: Memory leak: derCert
Error: CPPCHECK_WARNING (CWE-476): [#def4]
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/crypto/JSSOAEPParameterSpec.c:114: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: oaep_params
Error: GCC_ANALYZER_WARNING (CWE-476): [#def5]
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/crypto/JSSOAEPParameterSpec.c: scope_hint: In function ‘Java_org_mozilla_jss_crypto_JSSOAEPParameterSpec_acquireNativeResources’
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/crypto/JSSOAEPParameterSpec.c:114:26: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘oaep_params’
cc1: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics
Error: CPPCHECK_WARNING (CWE-476): [#def6]
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/crypto/JSSOAEPParameterSpec.c:115: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: oaep_params
Error: CPPCHECK_WARNING (CWE-476): [#def7]
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/crypto/JSSOAEPParameterSpec.c:116: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: oaep_params
Error: CPPCHECK_WARNING (CWE-476): [#def8]
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/crypto/JSSOAEPParameterSpec.c:117: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: oaep_params
Error: CPPCHECK_WARNING (CWE-476): [#def9]
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/crypto/JSSOAEPParameterSpec.c:118: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: oaep_params
Error: GCC_ANALYZER_WARNING (CWE-476): [#def10]
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c: scope_hint: In function ‘kbkdf_WrapDataParam’
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:85:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘param’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def11]
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:101:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘param’ where non-null expected
/usr/include/nss3/secport.h:42: included_from: Included from here.
/usr/include/nss3/seccomon.h:27: included_from: Included from here.
/usr/include/nss3/nss.h:34: included_from: Included from here.
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:1: included_from: Included from here.
/usr/include/string.h:65:14: note: argument 1 of ‘memset’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def12]
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c: scope_hint: In function ‘Java_org_mozilla_jss_crypto_KBKDFDerivedKey_acquireNativeResourcesInternal’
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:515:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘attrs’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def13]
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c: scope_hint: In function ‘kbkdf_GetDataParameters’
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:701:32: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘data_params’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def14]
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c: scope_hint: In function ‘kbkdf_GetAdditionalDerivedKeys’
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:749:36: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘additional_keys’
Error: CPPCHECK_WARNING (CWE-476): [#def15]
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:828: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: kdf_params
Error: GCC_ANALYZER_WARNING (CWE-476): [#def16]
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c: scope_hint: In function ‘Java_org_mozilla_jss_crypto_KBKDFCounterParams_acquireNativeResourcesInternal’
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:828:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘kdf_params’
Error: CPPCHECK_WARNING (CWE-476): [#def17]
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:829: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: kdf_params
Error: CPPCHECK_WARNING (CWE-476): [#def18]
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:830: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: kdf_params
Error: CPPCHECK_WARNING (CWE-476): [#def19]
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:831: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: kdf_params
Error: CPPCHECK_WARNING (CWE-476): [#def20]
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:832: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: kdf_params
Error: CPPCHECK_WARNING (CWE-476): [#def21]
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:943: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: kdf_params
Error: GCC_ANALYZER_WARNING (CWE-476): [#def22]
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c: scope_hint: In function ‘Java_org_mozilla_jss_crypto_KBKDFFeedbackParams_acquireNativeResourcesInternal’
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:943:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘kdf_params’
cc1: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics
Error: CPPCHECK_WARNING (CWE-476): [#def23]
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:944: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: kdf_params
Error: CPPCHECK_WARNING (CWE-476): [#def24]
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:945: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: kdf_params
Error: CPPCHECK_WARNING (CWE-476): [#def25]
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:946: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: kdf_params
Error: CPPCHECK_WARNING (CWE-476): [#def26]
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:947: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: kdf_params
Error: CPPCHECK_WARNING (CWE-476): [#def27]
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:948: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: kdf_params
Error: CPPCHECK_WARNING (CWE-476): [#def28]
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:949: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: kdf_params
Error: CPPCHECK_WARNING (CWE-682): [#def29]
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/nss/PR.c:177: error[nullPointerArithmeticOutOfMemory]: If memory allocation fails: pointer addition with NULL pointer.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def30]
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/pkcs11/PK11Cert.c: scope_hint: In function ‘JSS_PK11_findCertAndSlotFromNickname’
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/pkcs11/PK11Cert.c:307:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘colon’
/usr/include/nss3/seccomon.h:27: included_from: Included from here.
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/pkcs11/PK11Cert.c:9: included_from: Included from here.
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/pkcs11/PK11Cert.c:304:9: note: in expansion of macro ‘PORT_Strchr’
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/pkcs11/PK11Cert.c:304:9: note: in expansion of macro ‘PORT_Strchr’
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/pkcs11/PK11Cert.c:306:23: note: in expansion of macro ‘PORT_Strchr’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def31]
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/pkcs11/PK11Cert.c: scope_hint: In function ‘JSS_PK11_findCertsAndSlotFromNickname’
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/pkcs11/PK11Cert.c:347:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘colon’
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/pkcs11/PK11Cert.c:343:9: note: in expansion of macro ‘PORT_Strchr’
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/pkcs11/PK11Cert.c:343:9: note: in expansion of macro ‘PORT_Strchr’
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/pkcs11/PK11Cert.c:345:23: note: in expansion of macro ‘PORT_Strchr’
cc1: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics
Error: GCC_ANALYZER_WARNING (CWE-457): [#def32]
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/pkcs11/PK11KeyPairGenerator.c: scope_hint: In function ‘Java_org_mozilla_jss_pkcs11_PK11KeyPairGenerator_generateMLDSAKeyPair’
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/pkcs11/PK11KeyPairGenerator.c:463:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘keyPair’
Error: COMPILER_WARNING (CWE-457): [#def33]
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/pkcs11/PK11KeyPairGenerator.c: scope_hint: In function ‘Java_org_mozilla_jss_pkcs11_PK11KeyPairGenerator_generateMLDSAKeyPair’
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/pkcs11/PK11KeyPairGenerator.c:463:12: warning[-Wmaybe-uninitialized]: ‘keyPair’ may be used uninitialized
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/pkcs11/PK11KeyPairGenerator.c:454:13: note: ‘keyPair’ was declared here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def34]
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/pkcs11/PK11KeyPairGenerator.c: scope_hint: In function ‘Java_org_mozilla_jss_pkcs11_PK11KeyPairGenerator_generateMLDSAKeyPairWithOpFlags’
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/pkcs11/PK11KeyPairGenerator.c:507:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘keyPair’
cc1: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics
Error: COMPILER_WARNING (CWE-457): [#def35]
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/pkcs11/PK11KeyPairGenerator.c: scope_hint: In function ‘Java_org_mozilla_jss_pkcs11_PK11KeyPairGenerator_generateMLDSAKeyPairWithOpFlags’
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/pkcs11/PK11KeyPairGenerator.c:507:12: warning[-Wmaybe-uninitialized]: ‘keyPair’ may be used uninitialized
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/pkcs11/PK11KeyPairGenerator.c:496:13: note: ‘keyPair’ was declared here
cc1: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics
Error: GCC_ANALYZER_WARNING (CWE-401): [#def36]
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/pkcs11/attrs/CKAttribute.c: scope_hint: In function ‘Java_org_mozilla_jss_pkcs11_attrs_CKAKeyType_acquireNativeResources’
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/pkcs11/attrs/CKAttribute.c:28:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ptr’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def37]
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/pkcs11/attrs/CKAttribute.c: scope_hint: In function ‘JSS_PK11_WrapAttribute’
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/pkcs11/attrs/CKAttribute.c:36:16: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘attr’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def38]
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/pkcs11/attrs/CKAttribute.c:52:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘attr’ where non-null expected
/usr/include/nss3/secport.h:42: included_from: Included from here.
/usr/include/nss3/seccomon.h:27: included_from: Included from here.
/usr/include/nss3/nss.h:34: included_from: Included from here.
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/pkcs11/attrs/CKAttribute.c:2: included_from: Included from here.
/usr/include/string.h:65:14: note: argument 1 of ‘memset’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def39]
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/pkcs11/attrs/CKAttribute.c: scope_hint: In function ‘Java_org_mozilla_jss_pkcs11_attrs_CKAClass_acquireNativeResources’
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/pkcs11/attrs/CKAttribute.c:104:10: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ptr’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def40]
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/pkcs11/attrs/CKAttribute.c: scope_hint: In function ‘Java_org_mozilla_jss_pkcs11_attrs_CKAKeyType_acquireNativeResources’
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/pkcs11/attrs/CKAttribute.c:162:10: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ptr’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def41]
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/pkcs11/attrs/CKAttribute.c: scope_hint: In function ‘Java_org_mozilla_jss_pkcs11_attrs_CKAValueLen_acquireNativeResources’
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/pkcs11/attrs/CKAttribute.c:241:10: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ptr’
cc1: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics
Error: GCC_ANALYZER_WARNING (CWE-688): [#def42]
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/ssl/javax/BufferPRFD.c: scope_hint: In function ‘newBufferPRFileDesc’
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/ssl/javax/BufferPRFD.c:348:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘calloc(16, 1)’ where non-null expected
/usr/include/nspr4/nspr.h:26: included_from: Included from here.
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/ssl/javax/BufferPRFD.c:1: included_from: Included from here.
/usr/include/nspr4/prmem.h:65:38: note: in expansion of macro ‘PR_MALLOC’
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/ssl/javax/BufferPRFD.c:339:22: note: in expansion of macro ‘PR_NEW’
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/ssl/javax/BufferPRFD.c:7: included_from: Included from here.
/usr/include/string.h:47:14: note: argument 1 of ‘memcpy’ must be non-null
cc1: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics
Error: CPPCHECK_WARNING (CWE-476): [#def43]
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/ssl/javax/j_buffer.c:9: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
Error: GCC_ANALYZER_WARNING (CWE-476): [#def44]
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/ssl/javax/j_buffer.c: scope_hint: In function ‘jb_alloc’
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/ssl/javax/j_buffer.c:9:19: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buf’
cc1: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics
Error: CPPCHECK_WARNING (CWE-476): [#def45]
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/ssl/javax/j_buffer.c:11: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
Error: CPPCHECK_WARNING (CWE-476): [#def46]
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/ssl/javax/j_buffer.c:15: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
Error: CPPCHECK_WARNING (CWE-476): [#def47]
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/ssl/javax/j_buffer.c:16: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
Error: GCC_ANALYZER_WARNING (CWE-688): [#def48]
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/util/jssutil.c: scope_hint: In function ‘JSS_FromByteArray’
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/util/jssutil.c:709:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*data’ where non-null expected
/usr/include/nss3/secport.h:42: included_from: Included from here.
/usr/include/nss3/seccomon.h:27: included_from: Included from here.
jss-5.10.0~alpha1/native/src/main/native/org/mozilla/jss/util/jssutil.c:8: included_from: Included from here.
/usr/include/string.h:47:14: note: argument 1 of ‘memcpy’ must be non-null
cc1: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics
Error: CPPCHECK_WARNING (CWE-476): [#def49]
jss-5.10.0~alpha1/native/src/test/native/org/mozilla/jss/tests/TestBufferPRFDSSL.c:361: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
Error: GCC_ANALYZER_WARNING (CWE-688): [#def50]
jss-5.10.0~alpha1/native/src/test/native/org/mozilla/jss/tests/TestBufferPRFDSSL.c: scope_hint: In function ‘main’
jss-5.10.0~alpha1/native/src/test/native/org/mozilla/jss/tests/TestBufferPRFDSSL.c:361:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘buf’ where non-null expected
jss-5.10.0~alpha1/redhat-linux-build/include/jss/BufferPRFD.h:7: included_from: Included from here.
jss-5.10.0~alpha1/native/src/test/native/org/mozilla/jss/tests/TestBufferPRFDSSL.c:11: included_from: Included from here.
/usr/include/string.h:47:14: note: argument 1 of ‘memcpy’ must be non-null
cc1: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics
Error: CPPCHECK_WARNING (CWE-476): [#def51]
jss-5.10.0~alpha1/native/src/test/native/org/mozilla/jss/tests/TestBufferPRFDSSL.c:362: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
Error: COMPILER_WARNING (CWE-674): [#def52]
jss-5.10.0~alpha1/symkey/src/main/native/org/mozilla/jss/symkey/SessionKey.cpp: scope_hint: In function ‘JSS_PK11_wrapSymKey(JNIEnv_*, PK11SymKeyStr**)’
jss-5.10.0~alpha1/symkey/src/main/native/org/mozilla/jss/symkey/SessionKey.cpp:120:1: warning[-Winfinite-recursion]: infinite recursion detected
jss-5.10.0~alpha1/symkey/src/main/native/org/mozilla/jss/symkey/SessionKey.cpp:124:31: note: recursive call
Error: COMPILER_WARNING: [#def53]
jss-5.10.0~alpha1/symkey/src/main/native/org/mozilla/jss/symkey/SessionKey.cpp: scope_hint: In function ‘Java_org_mozilla_jss_symkey_SessionKey_ComputeSessionKeySCP02’
jss-5.10.0~alpha1/symkey/src/main/native/org/mozilla/jss/symkey/SessionKey.cpp:857:16: warning[-Wstringop-truncation]: ‘strncpy’ specified bound 135 equals destination size
Error: COMPILER_WARNING: [#def54]
jss-5.10.0~alpha1/symkey/src/main/native/org/mozilla/jss/symkey/SessionKey.cpp: scope_hint: In function ‘Java_org_mozilla_jss_symkey_SessionKey_ComputeSessionKey’
jss-5.10.0~alpha1/symkey/src/main/native/org/mozilla/jss/symkey/SessionKey.cpp:1317:16: warning[-Wstringop-truncation]: ‘strncpy’ specified bound 135 equals destination size
Error: COMPILER_WARNING: [#def55]
jss-5.10.0~alpha1/symkey/src/main/native/org/mozilla/jss/symkey/SessionKey.cpp: scope_hint: In function ‘Java_org_mozilla_jss_symkey_SessionKey_ComputeEncSessionKey’
jss-5.10.0~alpha1/symkey/src/main/native/org/mozilla/jss/symkey/SessionKey.cpp:1718:16: warning[-Wstringop-truncation]: ‘strncpy’ specified bound 135 equals destination size
Error: COMPILER_WARNING: [#def56]
jss-5.10.0~alpha1/symkey/src/main/native/org/mozilla/jss/symkey/SymKey.cpp: scope_hint: In function ‘_jstring* Java_org_mozilla_jss_symkey_SessionKey_DeleteKey(JNIEnv*, jclass, jstring, jstring)’
jss-5.10.0~alpha1/symkey/src/main/native/org/mozilla/jss/symkey/SymKey.cpp:298:17: warning[-Wunused-but-set-variable=]: variable ‘count’ set but not used
Error: CPPCHECK_WARNING (CWE-476): [#def57]
jss-5.10.0~alpha1/symkey/src/main/native/org/mozilla/jss/symkey/SymKey.cpp:313: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: CPPCHECK_WARNING (CWE-476): [#def58]
jss-5.10.0~alpha1/symkey/src/main/native/org/mozilla/jss/symkey/SymKey.cpp:401: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: COMPILER_WARNING: [#def59]
jss-5.10.0~alpha1/symkey/src/main/native/org/mozilla/jss/symkey/SymKey.cpp: scope_hint: In function ‘_jstring* Java_org_mozilla_jss_symkey_SessionKey_ListSymmetricKeys(JNIEnv*, jclass, jstring)’
jss-5.10.0~alpha1/symkey/src/main/native/org/mozilla/jss/symkey/SymKey.cpp:427:14: warning[-Wunused-but-set-variable=]: variable ‘count’ set but not used
Error: CPPCHECK_WARNING (CWE-476): [#def60]
jss-5.10.0~alpha1/symkey/src/main/native/org/mozilla/jss/symkey/SymKey.cpp:433: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: CPPCHECK_WARNING (CWE-476): [#def61]
jss-5.10.0~alpha1/symkey/src/main/native/org/mozilla/jss/symkey/SymKey.cpp:434: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: CPPCHECK_WARNING (CWE-476): [#def62]
jss-5.10.0~alpha1/symkey/src/main/native/org/mozilla/jss/symkey/SymKey.cpp:435: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: CPPCHECK_WARNING (CWE-476): [#def63]
jss-5.10.0~alpha1/symkey/src/main/native/org/mozilla/jss/symkey/SymKey.cpp:436: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: CPPCHECK_WARNING (CWE-476): [#def64]
jss-5.10.0~alpha1/symkey/src/main/native/org/mozilla/jss/symkey/SymKey.cpp:553: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: keyData
Error: COMPILER_WARNING: [#def65]
jss-5.10.0~alpha1/symkey/src/main/native/org/mozilla/jss/symkey/SymKey.cpp: scope_hint: In function ‘GetSharedSecretKeyName(char*)’
jss-5.10.0~alpha1/symkey/src/main/native/org/mozilla/jss/symkey/SymKey.cpp:1087:19: warning[-Wstringop-truncation]: ‘strncpy’ specified bound 135 equals destination size
Error: COMPILER_WARNING (CWE-697): [#def66]
jss-5.10.0~alpha1/symkey/src/main/native/org/mozilla/jss/symkey/SymKey.cpp: scope_hint: In function ‘_jbyteArray* Java_org_mozilla_jss_symkey_SessionKey_DiversifyKey(JNIEnv*, jclass, jstring, jstring, jstring, jstring, jbyteArray, jbyteArray, jbyte, jboolean, jbyteArray, jbyteArray, jbyteArray, jstring, jstring, jbyte)’
jss-5.10.0~alpha1/symkey/src/main/native/org/mozilla/jss/symkey/SymKey.cpp:1457:30: warning[-Waddress]: the address of ‘fullNewMasterKeyName’ will never be NULL
jss-5.10.0~alpha1/symkey/src/main/native/org/mozilla/jss/symkey/SymKey.cpp:1133:10: note: ‘fullNewMasterKeyName’ declared here
Error: COMPILER_WARNING: [#def67]
jss-5.10.0~alpha1/tools/src/main/native/p7tool/p7tool.c: scope_hint: In function ‘DecodeAndPrintFile’
jss-5.10.0~alpha1/tools/src/main/native/p7tool/p7tool.c:261:17: warning[-Wunused-but-set-variable=]: variable ‘nb’ set but not used
Error: COMPILER_WARNING (CWE-704): [#def68]
jss-5.10.0~alpha1/tools/src/main/native/p7tool/p7tool.c: scope_hint: In function ‘main’
jss-5.10.0~alpha1/tools/src/main/native/p7tool/p7tool.c:341:16: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-252): [#def69]
jss-5.10.0~alpha1/tools/src/main/native/p7tool/secpwd.c: scope_hint: In function ‘SEC_GetPassword’
jss-5.10.0~alpha1/tools/src/main/native/p7tool/secpwd.c:69:21: warning[-Wunused-result]: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’
jss-5.10.0~alpha1/tools/src/main/native/p7tool/secpwd.c:117:9: note: in expansion of macro ‘QUIET_FGETS’
Error: COMPILER_WARNING: [#def70]
jss-5.10.0~alpha1/tools/src/main/native/p7tool/secutil.c: scope_hint: In function ‘SECU_ChangePW’
jss-5.10.0~alpha1/tools/src/main/native/p7tool/secutil.c:378:15: warning[-Wunused-but-set-variable=]: variable ‘rv’ set but not used
Error: COMPILER_WARNING (CWE-477): [#def71]
jss-5.10.0~alpha1/tools/src/main/native/p7tool/secutil.c: scope_hint: In function ‘printflags’
jss-5.10.0~alpha1/tools/src/main/native/p7tool/secutil.c:2153:5: warning[-Wdeprecated-declarations]: ‘__CERTDB_VALID_PEER’ is deprecated: CERTDB_VALID_PEER is now CERTDB_TERMINAL_RECORD
Error: COMPILER_WARNING (CWE-477): [#def72]
jss-5.10.0~alpha1/tools/src/main/native/p7tool/secutil.c: scope_hint: In function ‘printFlags’
jss-5.10.0~alpha1/tools/src/main/native/p7tool/secutil.c:2953:5: warning[-Wdeprecated-declarations]: ‘__CERTDB_VALID_PEER’ is deprecated: CERTDB_VALID_PEER is now CERTDB_TERMINAL_RECORD
Error: CPPCHECK_WARNING (CWE-476): [#def73]
jss-5.10.0~alpha1/tools/src/main/native/p7tool/secutil.c:3041: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: optstring
Error: CPPCHECK_WARNING (CWE-476): [#def74]
jss-5.10.0~alpha1/tools/src/main/native/p7tool/secutil.c:3044: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: optstring
Error: CPPCHECK_WARNING (CWE-476): [#def75]
jss-5.10.0~alpha1/tools/src/main/native/p7tool/secutil.c:3048: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: optstring
Error: COMPILER_WARNING (CWE-704): [#def76]
jss-5.10.0~alpha1/tools/src/main/native/p7tool/secutil.c: scope_hint: In function ‘SECU_printCertProblems’
jss-5.10.0~alpha1/tools/src/main/native/p7tool/secutil.c:3291:25: warning[-Wpointer-to-int-cast]: cast from pointer to integer of different size
Error: COMPILER_WARNING (CWE-704): [#def77]
jss-5.10.0~alpha1/tools/src/main/native/p7tool/secutil.c:3307:25: warning[-Wpointer-to-int-cast]: cast from pointer to integer of different size
Error: COMPILER_WARNING (CWE-704): [#def78]
jss-5.10.0~alpha1/tools/src/main/native/sslget/sslget.c: scope_hint: In function ‘my_GetClientAuthData’
jss-5.10.0~alpha1/tools/src/main/native/sslget/sslget.c:218:59: warning[-Wpointer-to-int-cast]: cast from pointer to integer of different size
Error: COMPILER_WARNING (CWE-704): [#def79]
jss-5.10.0~alpha1/tools/src/main/native/sslget/sslget.c:221:64: warning[-Wpointer-to-int-cast]: cast from pointer to integer of different size
Error: COMPILER_WARNING: [#def80]
jss-5.10.0~alpha1/tools/src/main/native/sslget/sslget.c: scope_hint: In function ‘do_connect’
jss-5.10.0~alpha1/tools/src/main/native/sslget/sslget.c:485:25: warning[-Wunused-but-set-variable=]: variable ‘result’ set but not used
Error: COMPILER_WARNING (CWE-1164): [#def81]
jss-5.10.0~alpha1/tools/src/main/native/sslget/sslget.c: scope_hint: At top level
jss-5.10.0~alpha1/tools/src/main/native/sslget/sslget.c:548:1: warning[-Wunused-function]: ‘getIPAddress’ defined but not used
Scan Properties
| analyzer-version-clippy | 1.94.0 |
| analyzer-version-cppcheck | 2.20.0 |
| analyzer-version-gcc | 16.0.1 |
| analyzer-version-gcc-analyzer | 16.0.1 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-130.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.20260320.200800.gd35503f.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | jss-5.10.0~alpha1-1.20260319170624677752.master.78.gc527e376 |
| store-results-to | /tmp/tmp7c0kg7cu/jss-5.10.0~alpha1-1.20260319170624677752.master.78.gc527e376.tar.xz |
| time-created | 2026-03-20 19:25:54 |
| time-finished | 2026-03-20 19:29:59 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,gcc,shellcheck,clippy,unicontrol' '-o' '/tmp/tmp7c0kg7cu/jss-5.10.0~alpha1-1.20260319170624677752.master.78.gc527e376.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmp7c0kg7cu/jss-5.10.0~alpha1-1.20260319170624677752.master.78.gc527e376.src.rpm' |
| tool-version | csmock-3.8.4.20260302.153719.g8203630-1.el9 |