jss-5.6.0-0.1.alpha1.fc42.1
List of Findings
Error: CPPCHECK_WARNING (CWE-401): [#def1]
jss-5.6.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.6.0-alpha1/native/src/main/native/org/mozilla/jss/PK11Finder.c:1976:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘derCert’
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/PK11Finder.c:1963:24: acquire_memory: this call could return NULL
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/PK11Finder.c:1968:8: branch_false: following ‘false’ branch (when ‘cert’ is non-NULL)...
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/PK11Finder.c:1972:8: branch_false: ...to here
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/PK11Finder.c:1972:8: branch_false: following ‘false’ branch (when ‘nickname’ is NULL)...
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/PK11Finder.c:1976:12: branch_false: ...to here
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/PK11Finder.c:1976:5: danger: ‘derCert’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-401): [#def3]
jss-5.6.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.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/JSSOAEPParameterSpec.c:105: 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.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/JSSOAEPParameterSpec.c:105:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘oaep_params’
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/JSSOAEPParameterSpec.c:71:1: enter_function: entry to ‘Java_org_mozilla_jss_crypto_JSSOAEPParameterSpec_acquireNativeResources’
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/JSSOAEPParameterSpec.c:85:8: branch_false: following ‘false’ branch...
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/JSSOAEPParameterSpec.c:89:9: branch_false: ...to here
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/JSSOAEPParameterSpec.c:89:8: branch_false: following ‘false’ branch...
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/JSSOAEPParameterSpec.c:93:9: branch_false: ...to here
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/JSSOAEPParameterSpec.c:93:8: branch_false: following ‘false’ branch...
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/JSSOAEPParameterSpec.c:100:9: branch_false: ...to here
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/JSSOAEPParameterSpec.c:100:9: call_function: calling ‘oaep_GetSpecifiedSourceData’ from ‘Java_org_mozilla_jss_crypto_JSSOAEPParameterSpec_acquireNativeResources’
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/JSSOAEPParameterSpec.c:100:9: return_function: returning to ‘Java_org_mozilla_jss_crypto_JSSOAEPParameterSpec_acquireNativeResources’ from ‘oaep_GetSpecifiedSourceData’
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/JSSOAEPParameterSpec.c:100:8: branch_false: following ‘false’ branch...
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/JSSOAEPParameterSpec.c:104:19: branch_false: ...to here
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/JSSOAEPParameterSpec.c:104:19: acquire_memory: this call could return NULL
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/JSSOAEPParameterSpec.c:105:5: danger: ‘calloc(1, 40)’ could be NULL: unchecked value from [(15)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/14)
Error: CPPCHECK_WARNING (CWE-476): [#def6]
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/JSSOAEPParameterSpec.c:106: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: oaep_params
Error: CPPCHECK_WARNING (CWE-476): [#def7]
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/JSSOAEPParameterSpec.c:107: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: oaep_params
Error: CPPCHECK_WARNING (CWE-476): [#def8]
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/JSSOAEPParameterSpec.c:108: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: oaep_params
Error: CPPCHECK_WARNING (CWE-476): [#def9]
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/JSSOAEPParameterSpec.c:109: 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.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:85:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘param’
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:68:35: acquire_memory: this call could return NULL
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:81:8: branch_false: following ‘false’ branch...
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:85:38: branch_false: ...to here
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:85:5: danger: ‘param’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def11]
jss-5.6.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
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:68:35: acquire_memory: this call could return NULL
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:101:5: danger: argument 1 (‘param’) from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-476): [#def12]
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:515:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘attrs’
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:485:8: branch_false: following ‘false’ branch...
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:489:16: branch_false: ...to here
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:490:8: branch_false: following ‘false’ branch...
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:494:19: branch_false: ...to here
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:495:8: branch_false: following ‘false’ branch...
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:499:17: branch_false: ...to here
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:500:13: acquire_memory: this call could return NULL
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:502:29: branch_true: following ‘true’ branch (when ‘offset < num_attrs’)...
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:506:25: branch_true: ...to here
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:507:12: branch_false: following ‘false’ branch...
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:511:13: branch_false: ...to here
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:511:12: branch_false: following ‘false’ branch...
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:515:25: branch_false: ...to here
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:515:9: danger: ‘attrs + offset * 24’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def13]
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:701:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘data_params’
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:891:1: enter_function: entry to ‘Java_org_mozilla_jss_crypto_KBKDFFeedbackParams_acquireNativeResourcesInternal’
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:907:8: branch_false: following ‘false’ branch...
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:912:9: branch_false: ...to here
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:912:9: call_function: calling ‘kbkdf_GetPRFType’ from ‘Java_org_mozilla_jss_crypto_KBKDFFeedbackParams_acquireNativeResourcesInternal’
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:912:9: return_function: returning to ‘Java_org_mozilla_jss_crypto_KBKDFFeedbackParams_acquireNativeResourcesInternal’ from ‘kbkdf_GetPRFType’
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:912:8: branch_false: following ‘false’ branch...
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:917:9: branch_false: ...to here
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:917:9: call_function: calling ‘kbkdf_GetDataParameters’ from ‘Java_org_mozilla_jss_crypto_KBKDFFeedbackParams_acquireNativeResourcesInternal’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def14]
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:749:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘additional_keys’
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:891:1: enter_function: entry to ‘Java_org_mozilla_jss_crypto_KBKDFFeedbackParams_acquireNativeResourcesInternal’
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:907:8: branch_false: following ‘false’ branch...
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:912:9: branch_false: ...to here
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:912:9: call_function: calling ‘kbkdf_GetPRFType’ from ‘Java_org_mozilla_jss_crypto_KBKDFFeedbackParams_acquireNativeResourcesInternal’
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:912:9: return_function: returning to ‘Java_org_mozilla_jss_crypto_KBKDFFeedbackParams_acquireNativeResourcesInternal’ from ‘kbkdf_GetPRFType’
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:912:8: branch_false: following ‘false’ branch...
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:917:9: branch_false: ...to here
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:917:9: call_function: calling ‘kbkdf_GetDataParameters’ from ‘Java_org_mozilla_jss_crypto_KBKDFFeedbackParams_acquireNativeResourcesInternal’
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:917:9: return_function: returning to ‘Java_org_mozilla_jss_crypto_KBKDFFeedbackParams_acquireNativeResourcesInternal’ from ‘kbkdf_GetDataParameters’
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:917:8: branch_false: following ‘false’ branch...
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:922:9: branch_false: ...to here
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:922:9: call_function: calling ‘kbkdf_GetAdditionalDerivedKeys’ from ‘Java_org_mozilla_jss_crypto_KBKDFFeedbackParams_acquireNativeResourcesInternal’
Error: CPPCHECK_WARNING (CWE-476): [#def15]
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:819: 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.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:819:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘kdf_params’
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:783:1: enter_function: entry to ‘Java_org_mozilla_jss_crypto_KBKDFCounterParams_acquireNativeResourcesInternal’
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:797:8: branch_false: following ‘false’ branch...
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:802:9: branch_false: ...to here
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:802:9: call_function: calling ‘kbkdf_GetPRFType’ from ‘Java_org_mozilla_jss_crypto_KBKDFCounterParams_acquireNativeResourcesInternal’
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:802:9: return_function: returning to ‘Java_org_mozilla_jss_crypto_KBKDFCounterParams_acquireNativeResourcesInternal’ from ‘kbkdf_GetPRFType’
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:802:8: branch_false: following ‘false’ branch...
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:807:9: branch_false: ...to here
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:807:9: call_function: calling ‘kbkdf_GetDataParameters’ from ‘Java_org_mozilla_jss_crypto_KBKDFCounterParams_acquireNativeResourcesInternal’
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:807:9: return_function: returning to ‘Java_org_mozilla_jss_crypto_KBKDFCounterParams_acquireNativeResourcesInternal’ from ‘kbkdf_GetDataParameters’
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:807:8: branch_false: following ‘false’ branch...
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:812:9: branch_false: ...to here
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:812:9: call_function: calling ‘kbkdf_GetAdditionalDerivedKeys’ from ‘Java_org_mozilla_jss_crypto_KBKDFCounterParams_acquireNativeResourcesInternal’
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:812:9: return_function: returning to ‘Java_org_mozilla_jss_crypto_KBKDFCounterParams_acquireNativeResourcesInternal’ from ‘kbkdf_GetAdditionalDerivedKeys’
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:812:8: branch_false: following ‘false’ branch...
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:817:18: branch_false: ...to here
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:817:18: acquire_memory: this call could return NULL
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:819:5: danger: ‘calloc(1, 40)’ could be NULL: unchecked value from [(27)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/26)
Error: CPPCHECK_WARNING (CWE-476): [#def17]
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:820: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: kdf_params
Error: CPPCHECK_WARNING (CWE-476): [#def18]
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:821: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: kdf_params
Error: CPPCHECK_WARNING (CWE-476): [#def19]
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:822: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: kdf_params
Error: CPPCHECK_WARNING (CWE-476): [#def20]
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:823: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: kdf_params
Error: CPPCHECK_WARNING (CWE-476): [#def21]
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:934: 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.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:934:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘kdf_params’
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:891:1: enter_function: entry to ‘Java_org_mozilla_jss_crypto_KBKDFFeedbackParams_acquireNativeResourcesInternal’
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:907:8: branch_false: following ‘false’ branch...
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:912:9: branch_false: ...to here
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:912:9: call_function: calling ‘kbkdf_GetPRFType’ from ‘Java_org_mozilla_jss_crypto_KBKDFFeedbackParams_acquireNativeResourcesInternal’
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:912:9: return_function: returning to ‘Java_org_mozilla_jss_crypto_KBKDFFeedbackParams_acquireNativeResourcesInternal’ from ‘kbkdf_GetPRFType’
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:912:8: branch_false: following ‘false’ branch...
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:917:9: branch_false: ...to here
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:917:9: call_function: calling ‘kbkdf_GetDataParameters’ from ‘Java_org_mozilla_jss_crypto_KBKDFFeedbackParams_acquireNativeResourcesInternal’
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:917:9: return_function: returning to ‘Java_org_mozilla_jss_crypto_KBKDFFeedbackParams_acquireNativeResourcesInternal’ from ‘kbkdf_GetDataParameters’
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:917:8: branch_false: following ‘false’ branch...
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:922:9: branch_false: ...to here
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:922:9: call_function: calling ‘kbkdf_GetAdditionalDerivedKeys’ from ‘Java_org_mozilla_jss_crypto_KBKDFFeedbackParams_acquireNativeResourcesInternal’
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:922:9: return_function: returning to ‘Java_org_mozilla_jss_crypto_KBKDFFeedbackParams_acquireNativeResourcesInternal’ from ‘kbkdf_GetAdditionalDerivedKeys’
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:922:8: branch_false: following ‘false’ branch...
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:927:9: branch_false: ...to here
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:927:9: call_function: calling ‘kbkdf_GetInitialValue’ from ‘Java_org_mozilla_jss_crypto_KBKDFFeedbackParams_acquireNativeResourcesInternal’
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:927:9: return_function: returning to ‘Java_org_mozilla_jss_crypto_KBKDFFeedbackParams_acquireNativeResourcesInternal’ from ‘kbkdf_GetInitialValue’
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:927:8: branch_false: following ‘false’ branch...
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:932:18: branch_false: ...to here
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:932:18: acquire_memory: this call could return NULL
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:934:5: danger: ‘calloc(1, 56)’ could be NULL: unchecked value from [(34)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/33)
Error: CPPCHECK_WARNING (CWE-476): [#def23]
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:935: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: kdf_params
Error: CPPCHECK_WARNING (CWE-476): [#def24]
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:936: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: kdf_params
Error: CPPCHECK_WARNING (CWE-476): [#def25]
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:937: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: kdf_params
Error: CPPCHECK_WARNING (CWE-476): [#def26]
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:938: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: kdf_params
Error: CPPCHECK_WARNING (CWE-476): [#def27]
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:939: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: kdf_params
Error: CPPCHECK_WARNING (CWE-476): [#def28]
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/crypto/KBKDF.c:940: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: kdf_params
Error: CPPCHECK_WARNING (CWE-682): [#def29]
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/nss/PR.c:177: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def30]
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/pkcs11/PK11Cert.c:307:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘colon’
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/pkcs11/PK11Cert.c:301:7: branch_false: following ‘false’ branch...
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/pkcs11/PK11Cert.c:304:9: branch_false: ...to here
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/pkcs11/PK11Cert.c:304:7: branch_true: following ‘true’ branch...
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/pkcs11/PK11Cert.c:305:27: branch_true: ...to here
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/pkcs11/PK11Cert.c:307:9: danger: dereference of NULL ‘colon’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def31]
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/pkcs11/PK11Cert.c:347:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘colon’
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/pkcs11/PK11Cert.c:340:7: branch_false: following ‘false’ branch...
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/pkcs11/PK11Cert.c:343:9: branch_false: ...to here
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/pkcs11/PK11Cert.c:343:7: branch_true: following ‘true’ branch...
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/pkcs11/PK11Cert.c:344:27: branch_true: ...to here
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/pkcs11/PK11Cert.c:347:9: danger: dereference of NULL ‘colon’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def32]
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/pkcs11/attrs/CKAttribute.c:36:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘attr’
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/pkcs11/attrs/CKAttribute.c:22:29: acquire_memory: this call could return NULL
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/pkcs11/attrs/CKAttribute.c:27:8: branch_false: following ‘false’ branch...
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/pkcs11/attrs/CKAttribute.c:31:16: branch_false: ...to here
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/pkcs11/attrs/CKAttribute.c:32:8: branch_false: following ‘false’ branch...
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/pkcs11/attrs/CKAttribute.c:36:29: branch_false: ...to here
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/pkcs11/attrs/CKAttribute.c:36:5: danger: ‘attr’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/pkcs11/attrs/CKAttribute.c:49:12: warning[-Wanalyzer-malloc-leak]: leak of ‘ptr’
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/pkcs11/attrs/CKAttribute.c:148:21: acquire_memory: allocated here
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/pkcs11/attrs/CKAttribute.c:153:8: branch_false: following ‘false’ branch...
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/pkcs11/attrs/CKAttribute.c:157:16: branch_false: ...to here
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/pkcs11/attrs/CKAttribute.c:158:8: branch_false: following ‘false’ branch...
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/pkcs11/attrs/CKAttribute.c:162:23: branch_false: ...to here
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/pkcs11/attrs/CKAttribute.c:49:12: danger: ‘ptr’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def34]
jss-5.6.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
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/pkcs11/attrs/CKAttribute.c:22:29: acquire_memory: this call could return NULL
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/pkcs11/attrs/CKAttribute.c:52:5: danger: argument 1 (‘attr’) from [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-476): [#def35]
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/pkcs11/attrs/CKAttribute.c:104:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ptr’
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/pkcs11/attrs/CKAttribute.c:90:21: acquire_memory: this call could return NULL
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/pkcs11/attrs/CKAttribute.c:95:8: branch_false: following ‘false’ branch...
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/pkcs11/attrs/CKAttribute.c:99:16: branch_false: ...to here
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/pkcs11/attrs/CKAttribute.c:100:8: branch_false: following ‘false’ branch...
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/pkcs11/attrs/CKAttribute.c:104:23: branch_false: ...to here
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/pkcs11/attrs/CKAttribute.c:104:5: danger: ‘ptr’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def36]
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/pkcs11/attrs/CKAttribute.c:162:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ptr’
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/pkcs11/attrs/CKAttribute.c:148:21: acquire_memory: this call could return NULL
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/pkcs11/attrs/CKAttribute.c:153:8: branch_false: following ‘false’ branch...
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/pkcs11/attrs/CKAttribute.c:157:16: branch_false: ...to here
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/pkcs11/attrs/CKAttribute.c:158:8: branch_false: following ‘false’ branch...
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/pkcs11/attrs/CKAttribute.c:162:23: branch_false: ...to here
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/pkcs11/attrs/CKAttribute.c:162:5: danger: ‘ptr’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def37]
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/pkcs11/attrs/CKAttribute.c:241:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ptr’
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/pkcs11/attrs/CKAttribute.c:227:21: acquire_memory: this call could return NULL
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/pkcs11/attrs/CKAttribute.c:232:8: branch_false: following ‘false’ branch...
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/pkcs11/attrs/CKAttribute.c:236:16: branch_false: ...to here
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/pkcs11/attrs/CKAttribute.c:237:8: branch_false: following ‘false’ branch...
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/pkcs11/attrs/CKAttribute.c:241:23: branch_false: ...to here
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/pkcs11/attrs/CKAttribute.c:241:5: danger: ‘ptr’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def38]
jss-5.6.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): [#def39]
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/ssl/javax/j_buffer.c:9:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buf’
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/ssl/javax/j_buffer.c:8:21: acquire_memory: this call could return NULL
jss-5.6.0-alpha1/native/src/main/native/org/mozilla/jss/ssl/javax/j_buffer.c:9:5: danger: ‘buf’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def40]
jss-5.6.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): [#def41]
jss-5.6.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): [#def42]
jss-5.6.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: CPPCHECK_WARNING (CWE-476): [#def43]
jss-5.6.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): [#def44]
jss-5.6.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.6.0-alpha1/native/src/test/native/org/mozilla/jss/tests/TestBufferPRFDSSL.c:281:5: enter_function: entry to ‘main’
jss-5.6.0-alpha1/native/src/test/native/org/mozilla/jss/tests/TestBufferPRFDSSL.c:283:8: branch_false: following ‘false’ branch (when ‘argc == 4’)...
jss-5.6.0-alpha1/native/src/test/native/org/mozilla/jss/tests/TestBufferPRFDSSL.c:288:5: branch_false: ...to here
jss-5.6.0-alpha1/native/src/test/native/org/mozilla/jss/tests/TestBufferPRFDSSL.c:288:5: call_function: calling ‘setup_nss_context’ from ‘main’
jss-5.6.0-alpha1/native/src/test/native/org/mozilla/jss/tests/TestBufferPRFDSSL.c:288:5: return_function: returning to ‘main’ from ‘setup_nss_context’
jss-5.6.0-alpha1/native/src/test/native/org/mozilla/jss/tests/TestBufferPRFDSSL.c:311:14: call_function: calling ‘setup_nss_client’ from ‘main’
jss-5.6.0-alpha1/native/src/test/native/org/mozilla/jss/tests/TestBufferPRFDSSL.c:311:14: return_function: returning to ‘main’ from ‘setup_nss_client’
jss-5.6.0-alpha1/native/src/test/native/org/mozilla/jss/tests/TestBufferPRFDSSL.c:312:14: call_function: calling ‘setup_nss_server’ from ‘main’
jss-5.6.0-alpha1/native/src/test/native/org/mozilla/jss/tests/TestBufferPRFDSSL.c:312:14: return_function: returning to ‘main’ from ‘setup_nss_server’
jss-5.6.0-alpha1/native/src/test/native/org/mozilla/jss/tests/TestBufferPRFDSSL.c:322:13: call_function: calling ‘is_finished’ from ‘main’
jss-5.6.0-alpha1/native/src/test/native/org/mozilla/jss/tests/TestBufferPRFDSSL.c:322:13: return_function: returning to ‘main’ from ‘is_finished’
jss-5.6.0-alpha1/native/src/test/native/org/mozilla/jss/tests/TestBufferPRFDSSL.c:356:17: acquire_memory: this call could return NULL
jss-5.6.0-alpha1/native/src/test/native/org/mozilla/jss/tests/TestBufferPRFDSSL.c:361:5: danger: argument 1 (‘buf’) from [(58)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/57) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def45]
jss-5.6.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): [#def46]
jss-5.6.0-alpha1/symkey/src/main/native/org/mozilla/jss/symkey/SessionKey.cpp: scope_hint: In function ‘JSS_PK11_wrapSymKey(JNIEnv_*, PK11SymKeyStr**)’
jss-5.6.0-alpha1/symkey/src/main/native/org/mozilla/jss/symkey/SessionKey.cpp:120:1: warning[-Winfinite-recursion]: infinite recursion detected
jss-5.6.0-alpha1/symkey/src/main/native/org/mozilla/jss/symkey/SessionKey.cpp:124:31: note: recursive call
Error: COMPILER_WARNING: [#def47]
jss-5.6.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.6.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: [#def48]
jss-5.6.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.6.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: [#def49]
jss-5.6.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.6.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: CPPCHECK_WARNING (CWE-476): [#def50]
jss-5.6.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): [#def51]
jss-5.6.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: CPPCHECK_WARNING (CWE-476): [#def52]
jss-5.6.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): [#def53]
jss-5.6.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): [#def54]
jss-5.6.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): [#def55]
jss-5.6.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): [#def56]
jss-5.6.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: [#def57]
jss-5.6.0-alpha1/symkey/src/main/native/org/mozilla/jss/symkey/SymKey.cpp: scope_hint: In function ‘GetSharedSecretKeyName(char*)’
jss-5.6.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): [#def58]
jss-5.6.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.6.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.6.0-alpha1/symkey/src/main/native/org/mozilla/jss/symkey/SymKey.cpp:1133:10: note: ‘fullNewMasterKeyName’ declared here
Error: COMPILER_WARNING (CWE-563): [#def59]
jss-5.6.0-alpha1/tools/src/main/native/p7tool/p7tool.c: scope_hint: In function ‘DecodeAndPrintFile’
jss-5.6.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): [#def60]
jss-5.6.0-alpha1/tools/src/main/native/p7tool/p7tool.c: scope_hint: In function ‘main’
jss-5.6.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-704): [#def61]
jss-5.6.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): [#def62]
jss-5.6.0-alpha1/tools/src/main/native/p7tool/secpwd.c: scope_hint: In function ‘SEC_GetPassword’
jss-5.6.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.6.0-alpha1/tools/src/main/native/p7tool/secpwd.c:117:9: note: in expansion of macro ‘QUIET_FGETS’
Error: COMPILER_WARNING (CWE-563): [#def63]
jss-5.6.0-alpha1/tools/src/main/native/p7tool/secutil.c: scope_hint: In function ‘SECU_ChangePW’
jss-5.6.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): [#def64]
jss-5.6.0-alpha1/tools/src/main/native/p7tool/secutil.c: scope_hint: In function ‘printflags’
jss-5.6.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): [#def65]
jss-5.6.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): [#def66]
jss-5.6.0-alpha1/tools/src/main/native/p7tool/secutil.c: scope_hint: In function ‘printFlags’
jss-5.6.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: COMPILER_WARNING (CWE-477): [#def67]
jss-5.6.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): [#def68]
jss-5.6.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): [#def69]
jss-5.6.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): [#def70]
jss-5.6.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): [#def71]
jss-5.6.0-alpha1/tools/src/main/native/p7tool/secutil.c: scope_hint: In function ‘SECU_printCertProblems’
jss-5.6.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): [#def72]
jss-5.6.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): [#def73]
jss-5.6.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): [#def74]
jss-5.6.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): [#def75]
jss-5.6.0-alpha1/tools/src/main/native/sslget/sslget.c: scope_hint: In function ‘my_GetClientAuthData’
jss-5.6.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): [#def76]
jss-5.6.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): [#def77]
jss-5.6.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 (CWE-704): [#def78]
jss-5.6.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 (CWE-563): [#def79]
jss-5.6.0-alpha1/tools/src/main/native/sslget/sslget.c: scope_hint: In function ‘do_connect’
jss-5.6.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): [#def80]
jss-5.6.0-alpha1/tools/src/main/native/sslget/sslget.c: scope_hint: At top level
jss-5.6.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.86.0 |
analyzer-version-cppcheck | 2.17.1 |
analyzer-version-gcc | 15.0.1 |
analyzer-version-gcc-analyzer | 15.0.1 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-32.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.20250425.124705.g1c7c448.main-1.el9.noarch |
mock-config | fedora-rawhide-x86_64 |
project-name | jss-5.6.0-0.1.alpha1.fc42.1 |
store-results-to | /tmp/tmpxrz8kkhj/jss-5.6.0-0.1.alpha1.fc42.1.tar.xz |
time-created | 2025-04-25 13:23:21 |
time-finished | 2025-04-25 13:27:57 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpxrz8kkhj/jss-5.6.0-0.1.alpha1.fc42.1.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpxrz8kkhj/jss-5.6.0-0.1.alpha1.fc42.1.src.rpm' |
tool-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |