Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler.
Number of rules (primarily dangerous function names) in C/C++ ruleset: 223
Examining data/opensaml-3.1.0/samlsign/samlsign.cpp
Examining data/opensaml-3.1.0/samlsign/resource.h
Examining data/opensaml-3.1.0/samltest/SAMLArtifactType0001Test.h
Examining data/opensaml-3.1.0/samltest/encryption/EncryptedAssertionTest.h
Examining data/opensaml-3.1.0/samltest/internal.h
Examining data/opensaml-3.1.0/samltest/signature/SAML2AssertionTest.h
Examining data/opensaml-3.1.0/samltest/signature/SAML1RequestTest.h
Examining data/opensaml-3.1.0/samltest/signature/SAMLSignatureTestBase.h
Examining data/opensaml-3.1.0/samltest/signature/SAML1AssertionTest.h
Examining data/opensaml-3.1.0/samltest/signature/SAML1ResponseTest.h
Examining data/opensaml-3.1.0/samltest/security/StaticPKIXTrustEngineTest.h
Examining data/opensaml-3.1.0/samltest/security/ExplicitKeyTrustEngineTest.h
Examining data/opensaml-3.1.0/samltest/SAMLArtifactType0002Test.h
Examining data/opensaml-3.1.0/samltest/SAMLArtifactCreationTest.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/AuthnStatement20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/StatusMessage20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/SessionIndex20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/SubjectConfirmationData20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/IDPEntry20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/ProxyRestriction20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/AuthzDecisionQuery20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/AssertionIDRequest20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/AuthzDecisionStatement20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/AttributeStatement20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/Advice20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/ArtifactResponse20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/StatusCode20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/Evidence20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/RequesterID20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/Assertion20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/IDPList20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/AuthnContextClassRef20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/LogoutResponse20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/AssertionURIRef20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/Attribute20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/OneTimeUse20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/ManageNameIDResponse20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/AssertionIDRef20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/RequestedAuthnContext20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/AuthnRequest20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/Action20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/Response20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/Scoping20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/ManageNameIDRequest20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/Issuer20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/SubjectLocality20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/AttributeQuery20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/NameIDType20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/NewID20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/SubjectConfirmation20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/AuthnContext20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/Subject20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/AuthnContextDeclRef20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/NewEncryptedID20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/NameIDPolicy20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/Status20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/NameIDMappingRequest20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/ArtifactResolve20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/Audience20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/NameIDMappingResponse20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/Artifact20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/Terminate20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/AudienceRestriction20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/StatusDetail20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/AuthnQuery20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/NameID20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/GetComplete20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/Conditions20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/AuthenticatingAuthority20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/LogoutRequest20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/core/impl/KeyInfoConfirmationDataType20Test.h
Examining data/opensaml-3.1.0/samltest/saml2/binding/SAML2ArtifactTest.h
Examining data/opensaml-3.1.0/samltest/saml2/binding/SAML2POSTTest.h
Examining data/opensaml-3.1.0/samltest/saml2/binding/SAML2RedirectTest.h
Examining data/opensaml-3.1.0/samltest/saml2/profile/SAML2PolicyTest.h
Examining data/opensaml-3.1.0/samltest/saml2/metadata/XMLMetadataProviderTest.h
Examining data/opensaml-3.1.0/samltest/ArtifactMapTest.h
Examining data/opensaml-3.1.0/samltest/SAMLArtifactType0004Test.h
Examining data/opensaml-3.1.0/samltest/CookieTest.h
Examining data/opensaml-3.1.0/samltest/samltest.h
Examining data/opensaml-3.1.0/samltest/binding.h
Examining data/opensaml-3.1.0/samltest/saml1/core/impl/AudienceRestrictionConditionTest.h
Examining data/opensaml-3.1.0/samltest/saml1/core/impl/AudienceTest.h
Examining data/opensaml-3.1.0/samltest/saml1/core/impl/AttributeStatementTest.h
Examining data/opensaml-3.1.0/samltest/saml1/core/impl/AuthenticationStatementTest.h
Examining data/opensaml-3.1.0/samltest/saml1/core/impl/AdviceTest.h
Examining data/opensaml-3.1.0/samltest/saml1/core/impl/AssertionIDReferenceTest.h
Examining data/opensaml-3.1.0/samltest/saml1/core/impl/AttributeTest.h
Examining data/opensaml-3.1.0/samltest/saml1/core/impl/AssertionTest.h
Examining data/opensaml-3.1.0/samltest/saml1/core/impl/ActionTest.h
Examining data/opensaml-3.1.0/samltest/saml1/core/impl/AttributeDesignatorTest.h
Examining data/opensaml-3.1.0/samltest/saml1/binding/SAML1ArtifactTest.h
Examining data/opensaml-3.1.0/samltest/saml1/binding/SAML1POSTTest.h
Examining data/opensaml-3.1.0/samltest/saml1/profile/SAML1PolicyTest.h
Examining data/opensaml-3.1.0/config_win32.h
Examining data/opensaml-3.1.0/saml/encryption/EncryptedKeyResolver.cpp
Examining data/opensaml-3.1.0/saml/encryption/EncryptedKeyResolver.h
Examining data/opensaml-3.1.0/saml/internal.h
Examining data/opensaml-3.1.0/saml/version.h
Examining data/opensaml-3.1.0/saml/util/CommonDomainCookie.cpp
Examining data/opensaml-3.1.0/saml/util/SAMLConstants.h
Examining data/opensaml-3.1.0/saml/util/CommonDomainCookie.h
Examining data/opensaml-3.1.0/saml/util/SAMLConstants.cpp
Examining data/opensaml-3.1.0/saml/signature/ContentReference.h
Examining data/opensaml-3.1.0/saml/signature/SignatureProfileValidator.cpp
Examining data/opensaml-3.1.0/saml/signature/SignableObject.h
Examining data/opensaml-3.1.0/saml/signature/ContentReference.cpp
Examining data/opensaml-3.1.0/saml/signature/SignatureProfileValidator.h
Examining data/opensaml-3.1.0/saml/RootObject.h
Examining data/opensaml-3.1.0/saml/version.cpp
Examining data/opensaml-3.1.0/saml/SAMLConfig.cpp
Examining data/opensaml-3.1.0/saml/exceptions.h
Examining data/opensaml-3.1.0/saml/saml2/core/impl/Assertions20Impl.cpp
Examining data/opensaml-3.1.0/saml/saml2/core/impl/Assertions.cpp
Examining data/opensaml-3.1.0/saml/saml2/core/impl/Assertions20SchemaValidators.cpp
Examining data/opensaml-3.1.0/saml/saml2/core/impl/Protocols20SchemaValidators.cpp
Examining data/opensaml-3.1.0/saml/saml2/core/impl/Protocols20Impl.cpp
Examining data/opensaml-3.1.0/saml/saml2/core/Protocols.h
Examining data/opensaml-3.1.0/saml/saml2/core/Assertions.h
Examining data/opensaml-3.1.0/saml/saml2/binding/impl/SAML2SOAPDecoder.cpp
Examining data/opensaml-3.1.0/saml/saml2/binding/impl/SAML2RedirectEncoder.cpp
Examining data/opensaml-3.1.0/saml/saml2/binding/impl/SAML2MessageEncoder.cpp
Examining data/opensaml-3.1.0/saml/saml2/binding/impl/SAML2POSTDecoder.cpp
Examining data/opensaml-3.1.0/saml/saml2/binding/impl/SAML2RedirectDecoder.cpp
Examining data/opensaml-3.1.0/saml/saml2/binding/impl/SAML2SOAPEncoder.cpp
Examining data/opensaml-3.1.0/saml/saml2/binding/impl/SAML2POSTEncoder.cpp
Examining data/opensaml-3.1.0/saml/saml2/binding/impl/SAML2MessageDecoder.cpp
Examining data/opensaml-3.1.0/saml/saml2/binding/impl/SAML2ECPEncoder.cpp
Examining data/opensaml-3.1.0/saml/saml2/binding/impl/SAML2ArtifactDecoder.cpp
Examining data/opensaml-3.1.0/saml/saml2/binding/impl/SAML2ECPDecoder.cpp
Examining data/opensaml-3.1.0/saml/saml2/binding/impl/SAML2Artifact.cpp
Examining data/opensaml-3.1.0/saml/saml2/binding/impl/SAML2ArtifactEncoder.cpp
Examining data/opensaml-3.1.0/saml/saml2/binding/impl/SAML2SOAPClient.cpp
Examining data/opensaml-3.1.0/saml/saml2/binding/impl/SAML2ArtifactType0004.cpp
Examining data/opensaml-3.1.0/saml/saml2/binding/SAML2ArtifactType0004.h
Examining data/opensaml-3.1.0/saml/saml2/binding/SAML2MessageDecoder.h
Examining data/opensaml-3.1.0/saml/saml2/binding/SAML2MessageEncoder.h
Examining data/opensaml-3.1.0/saml/saml2/binding/SAML2Artifact.h
Examining data/opensaml-3.1.0/saml/saml2/binding/SAML2SOAPClient.h
Examining data/opensaml-3.1.0/saml/saml2/profile/impl/SAML2AssertionPolicy.cpp
Examining data/opensaml-3.1.0/saml/saml2/profile/impl/DelegationRestrictionRule.cpp
Examining data/opensaml-3.1.0/saml/saml2/profile/impl/BearerConfirmationRule.cpp
Examining data/opensaml-3.1.0/saml/saml2/profile/SAML2AssertionPolicy.h
Examining data/opensaml-3.1.0/saml/saml2/metadata/impl/MetadataProvider.cpp
Examining data/opensaml-3.1.0/saml/saml2/metadata/impl/MetadataImpl.cpp
Examining data/opensaml-3.1.0/saml/saml2/metadata/impl/WhitelistMetadataFilter.cpp
Examining data/opensaml-3.1.0/saml/saml2/metadata/impl/AbstractDynamicMetadataProvider.cpp
Examining data/opensaml-3.1.0/saml/saml2/metadata/impl/NameEntityMatcher.cpp
Examining data/opensaml-3.1.0/saml/saml2/metadata/impl/MetadataCredentialContext.cpp
Examining data/opensaml-3.1.0/saml/saml2/metadata/impl/SignatureMetadataFilter.cpp
Examining data/opensaml-3.1.0/saml/saml2/metadata/impl/MetadataSchemaValidators.cpp
Examining data/opensaml-3.1.0/saml/saml2/metadata/impl/MetadataCredentialCriteria.cpp
Examining data/opensaml-3.1.0/saml/saml2/metadata/impl/EntityRoleMetadataFilter.cpp
Examining data/opensaml-3.1.0/saml/saml2/metadata/impl/RequireValidUntilMetadataFilter.cpp
Examining data/opensaml-3.1.0/saml/saml2/metadata/impl/LocalDynamicMetadataProvider.cpp
Examining data/opensaml-3.1.0/saml/saml2/metadata/impl/EntityAttributesMetadataFilter.cpp
Examining data/opensaml-3.1.0/saml/saml2/metadata/impl/RegistrationAuthorityEntityMatcher.cpp
Examining data/opensaml-3.1.0/saml/saml2/metadata/impl/BlacklistMetadataFilter.cpp
Examining data/opensaml-3.1.0/saml/saml2/metadata/impl/FolderMetadataProvider.cpp
Examining data/opensaml-3.1.0/saml/saml2/metadata/impl/XMLMetadataProvider.cpp
Examining data/opensaml-3.1.0/saml/saml2/metadata/impl/DiscoverableMetadataProvider.cpp
Examining data/opensaml-3.1.0/saml/saml2/metadata/impl/NullMetadataProvider.cpp
Examining data/opensaml-3.1.0/saml/saml2/metadata/impl/ObservableMetadataProvider.cpp
Examining data/opensaml-3.1.0/saml/saml2/metadata/impl/ChainingMetadataProvider.cpp
Examining data/opensaml-3.1.0/saml/saml2/metadata/impl/EntityAttributesEntityMatcher.cpp
Examining data/opensaml-3.1.0/saml/saml2/metadata/impl/AbstractMetadataProvider.cpp
Examining data/opensaml-3.1.0/saml/saml2/metadata/AbstractDynamicMetadataProvider.h
Examining data/opensaml-3.1.0/saml/saml2/metadata/DiscoverableMetadataProvider.h
Examining data/opensaml-3.1.0/saml/saml2/metadata/AbstractMetadataProvider.h
Examining data/opensaml-3.1.0/saml/saml2/metadata/EndpointManager.h
Examining data/opensaml-3.1.0/saml/saml2/metadata/MetadataCredentialContext.h
Examining data/opensaml-3.1.0/saml/saml2/metadata/Metadata.h
Examining data/opensaml-3.1.0/saml/saml2/metadata/EntityMatcher.h
Examining data/opensaml-3.1.0/saml/saml2/metadata/MetadataCredentialCriteria.h
Examining data/opensaml-3.1.0/saml/saml2/metadata/MetadataFilter.h
Examining data/opensaml-3.1.0/saml/saml2/metadata/MetadataProvider.h
Examining data/opensaml-3.1.0/saml/saml2/metadata/ObservableMetadataProvider.h
Examining data/opensaml-3.1.0/saml/binding/impl/SimpleSigningRule.cpp
Examining data/opensaml-3.1.0/saml/binding/impl/SOAPClient.cpp
Examining data/opensaml-3.1.0/saml/binding/impl/XMLSigningRule.cpp
Examining data/opensaml-3.1.0/saml/binding/impl/NullSecurityRule.cpp
Examining data/opensaml-3.1.0/saml/binding/impl/MessageDecoder.cpp
Examining data/opensaml-3.1.0/saml/binding/impl/MessageFlowRule.cpp
Examining data/opensaml-3.1.0/saml/binding/impl/MessageEncoder.cpp
Examining data/opensaml-3.1.0/saml/binding/impl/SecurityPolicy.cpp
Examining data/opensaml-3.1.0/saml/binding/impl/ArtifactMap.cpp
Examining data/opensaml-3.1.0/saml/binding/impl/SAMLArtifact.cpp
Examining data/opensaml-3.1.0/saml/binding/impl/ClientCertAuthRule.cpp
Examining data/opensaml-3.1.0/saml/binding/ArtifactMap.h
Examining data/opensaml-3.1.0/saml/binding/SOAPClient.h
Examining data/opensaml-3.1.0/saml/binding/SecurityPolicyRule.h
Examining data/opensaml-3.1.0/saml/binding/MessageEncoder.h
Examining data/opensaml-3.1.0/saml/binding/SecurityPolicy.h
Examining data/opensaml-3.1.0/saml/binding/SAMLArtifact.h
Examining data/opensaml-3.1.0/saml/binding/MessageDecoder.h
Examining data/opensaml-3.1.0/saml/Assertion.h
Examining data/opensaml-3.1.0/saml/profile/impl/ConditionsRule.cpp
Examining data/opensaml-3.1.0/saml/profile/impl/AudienceRestrictionRule.cpp
Examining data/opensaml-3.1.0/saml/profile/impl/IgnoreRule.cpp
Examining data/opensaml-3.1.0/saml/resource.h
Examining data/opensaml-3.1.0/saml/SAMLConfig.h
Examining data/opensaml-3.1.0/saml/saml1/core/impl/ProtocolsSchemaValidators.cpp
Examining data/opensaml-3.1.0/saml/saml1/core/impl/AssertionsSchemaValidators.cpp
Examining data/opensaml-3.1.0/saml/saml1/core/impl/ProtocolsImpl.cpp
Examining data/opensaml-3.1.0/saml/saml1/core/impl/AssertionsImpl.cpp
Examining data/opensaml-3.1.0/saml/saml1/core/Protocols.h
Examining data/opensaml-3.1.0/saml/saml1/core/Assertions.h
Examining data/opensaml-3.1.0/saml/saml1/binding/impl/SAML1SOAPEncoder.cpp
Examining data/opensaml-3.1.0/saml/saml1/binding/impl/SAML1MessageDecoder.cpp
Examining data/opensaml-3.1.0/saml/saml1/binding/impl/SAML1POSTEncoder.cpp
Examining data/opensaml-3.1.0/saml/saml1/binding/impl/SAML1SOAPDecoder.cpp
Examining data/opensaml-3.1.0/saml/saml1/binding/impl/SAML1POSTDecoder.cpp
Examining data/opensaml-3.1.0/saml/saml1/binding/impl/SAMLArtifactType0001.cpp
Examining data/opensaml-3.1.0/saml/saml1/binding/impl/SAML1ArtifactDecoder.cpp
Examining data/opensaml-3.1.0/saml/saml1/binding/impl/SAMLArtifactType0002.cpp
Examining data/opensaml-3.1.0/saml/saml1/binding/impl/SAML1SOAPClient.cpp
Examining data/opensaml-3.1.0/saml/saml1/binding/impl/SAML1ArtifactEncoder.cpp
Examining data/opensaml-3.1.0/saml/saml1/binding/SAMLArtifactType0001.h
Examining data/opensaml-3.1.0/saml/saml1/binding/SAML1SOAPClient.h
Examining data/opensaml-3.1.0/saml/saml1/binding/SAMLArtifactType0002.h
Examining data/opensaml-3.1.0/saml/saml1/binding/SAML1MessageDecoder.h
Examining data/opensaml-3.1.0/saml/saml1/profile/impl/SAML1BrowserSSORule.cpp
Examining data/opensaml-3.1.0/saml/base.h

FINAL RESULTS:

data/opensaml-3.1.0/samlsign/samlsign.cpp:201:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    xmlconf.log_config(getenv("OPENSAML_LOG_CONFIG"));
data/opensaml-3.1.0/samlsign/samlsign.cpp:206:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv("OPENSAML_SCHEMAS"))
data/opensaml-3.1.0/samlsign/samlsign.cpp:207:52:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        xmlconf.getValidatingParser().loadCatalogs(getenv("OPENSAML_SCHEMAS"));
data/opensaml-3.1.0/samltest/internal.h:129:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        if (!getenv("SAMLTEST_NETWORKED")) {
data/opensaml-3.1.0/samltest/samltest.h:48:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        if (getenv("SAMLTEST_DATA"))
data/opensaml-3.1.0/samltest/samltest.h:49:35:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
            data_path=std::string(getenv("SAMLTEST_DATA")) + "/";
data/opensaml-3.1.0/saml/SAMLConfig.cpp:258:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char key[17];
data/opensaml-3.1.0/saml/SAMLConfig.cpp:261:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char hexform[34];
data/opensaml-3.1.0/saml/SAMLConfig.cpp:262:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(hexform,"_%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",
data/opensaml-3.1.0/saml/saml1/binding/impl/SAMLArtifactType0001.cpp:69:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[HANDLE_LENGTH];
data/opensaml-3.1.0/saml/saml1/binding/impl/SAMLArtifactType0002.cpp:67:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[HANDLE_LENGTH];
data/opensaml-3.1.0/saml/saml2/binding/impl/SAML2ArtifactType0004.cpp:69:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[HANDLE_LENGTH];
data/opensaml-3.1.0/saml/saml2/binding/impl/SAML2POSTEncoder.cpp:204:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char sigbuf[1024];
data/opensaml-3.1.0/saml/saml2/binding/impl/SAML2RedirectEncoder.cpp:169:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char sigbuf[1024];
data/opensaml-3.1.0/saml/saml2/core/impl/Assertions.cpp:148:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char keyBuffer[32];
data/opensaml-3.1.0/samltest/binding.h:235:36:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    decoded+=(char)atoi(++ch);
data/opensaml-3.1.0/saml/saml2/binding/impl/SAML2ArtifactEncoder.cpp:151:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (relayState && strlen(relayState)>80)
data/opensaml-3.1.0/saml/saml2/metadata/impl/AbstractDynamicMetadataProvider.cpp:320:77:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            const string hashed(SecurityHelper::doHash("SHA1", temp2.get(), strlen(temp2.get()), true));
data/opensaml-3.1.0/saml/saml2/metadata/impl/AbstractMetadataProvider.cpp:154:93:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            m_sources.insert(sitemap_t::value_type(SecurityHelper::doHash("SHA1", id.get(), strlen(id.get())),site));
data/opensaml-3.1.0/saml/saml2/metadata/impl/AbstractMetadataProvider.cpp:168:93:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            m_sources.insert(sitemap_t::value_type(SecurityHelper::doHash("SHA1", id.get(), strlen(id.get())),site));
data/opensaml-3.1.0/samltest/binding.h:255:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        pch+=strlen("action=\"");
data/opensaml-3.1.0/samltest/binding.h:259:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            pch+=strlen("<input type=\"hidden\" name=\"");
data/opensaml-3.1.0/samltest/binding.h:262:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            pch+=strlen("value=\"");
data/opensaml-3.1.0/samltest/saml1/binding/SAML1ArtifactTest.h:112:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            SecurityHelper::doHash("SHA1", providerIdStr, strlen(providerIdStr), false)
data/opensaml-3.1.0/samltest/saml2/binding/SAML2ArtifactTest.h:117:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            SecurityHelper::doHash("SHA1", providerIdStr, strlen(providerIdStr), false), 1
data/opensaml-3.1.0/samltest/saml2/metadata/XMLMetadataProviderTest.h:86:63:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                SecurityHelper::doHash("SHA1", providerIdStr, strlen(providerIdStr), false), 1
data/opensaml-3.1.0/samltest/saml2/metadata/XMLMetadataProviderTest.h:164:63:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                SecurityHelper::doHash("SHA1", providerIdStr, strlen(providerIdStr), false), 1

ANALYSIS SUMMARY:

Hits = 27
Lines analyzed = 41190 in approximately 1.31 seconds (31332 lines/second)
Physical Source Lines of Code (SLOC) = 27682
Hits@level = [0]   0 [1]  11 [2]  10 [3]   6 [4]   0 [5]   0
Hits@level+ = [0+]  27 [1+]  27 [2+]  16 [3+]   6 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 0.975363 [1+] 0.975363 [2+] 0.577993 [3+] 0.216747 [4+]   0 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.