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/shibboleth-sp-3.1.0+dfsg1/adfs/adfs.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/adfs/resource.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/impl/StorageServiceSessionCache.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/impl/TransactionLog.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/impl/XMLSecurityPolicyProvider.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/impl/StoredSession.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/impl/XMLAccessControl.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/impl/XMLServiceProvider.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/impl/XMLApplication.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/impl/StoredSession.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/impl/XMLServiceProvider.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/impl/ChainingAccessControl.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/impl/StorageServiceSessionCache.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/impl/XMLApplication.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/impl/XMLRequestMapper.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/LogoutInitiator.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/impl/WAYFSessionInitiator.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/impl/SAML2ArtifactResolution.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/impl/Shib1SessionInitiator.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/impl/CookieSessionInitiator.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/impl/SAML1Consumer.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/impl/RemotedHandler.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/impl/SAML2SessionInitiator.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/impl/AssertionLookup.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/impl/SAML2Logout.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/impl/ChainingSessionInitiator.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/impl/SAML2Consumer.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/impl/AttributeCheckerHandler.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/impl/SessionHandler.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/impl/ExternalAuthHandler.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/impl/FormSessionInitiator.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/impl/LocalLogoutInitiator.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/impl/AbstractHandler.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/impl/SAML2LogoutInitiator.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/impl/ChainingLogoutInitiator.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/impl/MetadataGenerator.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/impl/SAMLDSSessionInitiator.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/impl/LogoutHandler.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/impl/AssertionConsumerService.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/impl/StatusHandler.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/impl/LogoutInitiator.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/impl/SAML2NameIDMgmt.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/impl/TransformSessionInitiator.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/impl/SecuredHandler.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/impl/SessionInitiator.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/impl/AdminLogoutInitiator.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/impl/DiscoveryFeed.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/LogoutHandler.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/RemotedHandler.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/AssertionConsumerService.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/SessionInitiator.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/Handler.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/AbstractHandler.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/SecuredHandler.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/remoting/impl/TCPListener.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/remoting/impl/UnixListener.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/remoting/impl/ddf.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/remoting/impl/SocketListener.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/remoting/impl/SocketListener.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/remoting/impl/ListenerService.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/remoting/ListenerService.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/remoting/ddf.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/ServiceProvider.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/internal.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/version.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/SPConfig.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/XMLAttribute.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/AttributeDecoder.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/Base64AttributeDecoder.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/XMLAttribute.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/ScopedAttributeDecoder.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/ScopedAttribute.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/NameIDAttribute.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/StringAttributeDecoder.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/SimpleAttribute.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/filtering/impl/AttributeMatchesShibMDScopeFunctor.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/filtering/impl/ChainingAttributeFilter.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/filtering/impl/AttributeValueStringFunctor.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/filtering/impl/AttributeRequesterRegexFunctor.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/filtering/impl/XMLAttributeFilter.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/filtering/impl/AttributeRequesterEntityMatcherFunctor.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/filtering/impl/BasicFilteringContext.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/filtering/impl/AttributeIssuerEntityAttributeFunctor.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/filtering/impl/DummyAttributeFilter.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/filtering/impl/AttributeScopeStringFunctor.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/filtering/impl/AttributeScopeRegexFunctor.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/filtering/impl/AttributeFilter.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/filtering/impl/AttributeRequesterEntityAttributeFunctor.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/filtering/impl/MatchFunctor.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/filtering/impl/AttributeIssuerRegexFunctor.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/filtering/impl/AuthenticationMethodRegexFunctor.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/filtering/impl/AttributeRequesterInEntityGroupFunctor.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/filtering/impl/AuthenticationMethodStringFunctor.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/filtering/impl/NumberOfAttributeValuesFunctor.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/filtering/impl/NameIDQualifierStringFunctor.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/filtering/impl/AttributeValueRegexFunctor.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/filtering/impl/AttributeIssuerInEntityGroupFunctor.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/filtering/impl/RegistrationAuthorityFunctor.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/filtering/impl/AttributeRequesterStringFunctor.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/filtering/impl/AnyMatchFunctor.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/filtering/impl/AttributeIssuerStringFunctor.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/filtering/impl/NotMatchFunctor.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/filtering/impl/OrMatchFunctor.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/filtering/impl/AndMatchFunctor.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/filtering/impl/AttributeIssuerEntityMatcherFunctor.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/filtering/impl/NameIDFormatFunctor.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/filtering/FilterPolicyContext.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/filtering/MatchFunctor.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/filtering/FilteringContext.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/filtering/AttributeFilter.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/filtering/BasicFilteringContext.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/BinaryAttribute.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/ScopedAttribute.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/NameIDAttributeDecoder.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/SimpleAttribute.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/KeyInfoAttributeDecoder.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/NameIDFromScopedAttributeDecoder.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/DOMAttributeDecoder.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/Attribute.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/BinaryAttribute.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/Attribute.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/XMLAttributeDecoder.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/ExtensibleAttribute.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/NameIDAttribute.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/ExtensibleAttribute.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/resolver/impl/KeyDescriptorAttributeExtractor.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/resolver/impl/AssertionAttributeExtractor.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/resolver/impl/XMLAttributeExtractor.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/resolver/impl/SimpleAggregationAttributeResolver.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/resolver/impl/DelegationAttributeExtractor.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/resolver/impl/MetadataAttributeExtractor.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/resolver/impl/ChainingAttributeExtractor.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/resolver/impl/QueryAttributeResolver.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/resolver/impl/ChainingAttributeResolver.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/resolver/ResolutionContext.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/resolver/AttributeExtractor.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/resolver/AttributeResolver.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/AbstractSPRequest.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/util/TemplateParameters.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/util/CGIParser.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/util/DOMPropertySet.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/util/SPConstants.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/util/DOMPropertySet.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/util/SPConstants.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/util/IPRange.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/util/TemplateParameters.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/util/CGIParser.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/util/PropertySet.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/util/IPRange.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/security/PKIXTrustEngine.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/security/SecurityPolicy.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/security/SecurityPolicy.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/security/SecurityPolicyProvider.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/security/PKIXTrustEngine.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/version.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/Application.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/AccessControl.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/lite/CommonDomainCookie.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/lite/SAMLConstants.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/lite/CommonDomainCookie.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/lite/SAMLConstants.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/GSSRequest.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/SPRequest.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/exceptions.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/SessionCache.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/TransactionLog.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/binding/impl/XMLProtocolProvider.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/binding/impl/SOAPClient.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/binding/impl/ArtifactResolver.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/binding/SOAPClient.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/binding/ArtifactResolver.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/binding/ProtocolProvider.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/RequestMapper.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/resource.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/Application.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/SPConfig.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/ServiceProvider.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/metadata/MetadataProviderCriteria.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/metadata/MetadataExtSchemaValidators.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/metadata/MetadataProviderCriteria.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/metadata/MetadataExt.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/metadata/DynamicMetadataProvider.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/metadata/MetadataExtImpl.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/AbstractSPRequest.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/config_pub_win32.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibsp/base.h
Examining data/shibboleth-sp-3.1.0+dfsg1/util/resolvertest.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/util/resource.h
Examining data/shibboleth-sp-3.1.0+dfsg1/util/mdquery.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/nsapi_shib/nsapi_shib.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/nsapi_shib/resource.h
Examining data/shibboleth-sp-3.1.0+dfsg1/plugins/AttributeResolverHandler.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/plugins/internal.h
Examining data/shibboleth-sp-3.1.0+dfsg1/plugins/GSSAPIAttributeExtractor.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/plugins/CaseFoldingAttributeResolver.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/plugins/TransformAttributeResolver.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/plugins/TimeAccessControl.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/plugins/resource.h
Examining data/shibboleth-sp-3.1.0+dfsg1/plugins/plugins.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/plugins/TemplateAttributeResolver.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/iis7_shib/IIS7Request.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/iis7_shib/register.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/iis7_shib/headers/ShibHttpModule.hpp
Examining data/shibboleth-sp-3.1.0+dfsg1/iis7_shib/headers/ShibUser.hpp
Examining data/shibboleth-sp-3.1.0+dfsg1/iis7_shib/headers/IIS7_shib.hpp
Examining data/shibboleth-sp-3.1.0+dfsg1/iis7_shib/headers/IIS7Request.hpp
Examining data/shibboleth-sp-3.1.0+dfsg1/iis7_shib/ShibHttpModule.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/iis7_shib/resource.h
Examining data/shibboleth-sp-3.1.0+dfsg1/iis7_shib/ShibUser.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/odbc-store/resource.h
Examining data/shibboleth-sp-3.1.0+dfsg1/odbc-store/odbc-store.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/isapi_shib/isapi_shib.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/isapi_shib/resource.h
Examining data/shibboleth-sp-3.1.0+dfsg1/unittests/DynamicMetadataProviderTest.h
Examining data/shibboleth-sp-3.1.0+dfsg1/unittests/TestApplication.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/unittests/TestApplication.h
Examining data/shibboleth-sp-3.1.0+dfsg1/unittests/SPTest.h
Examining data/shibboleth-sp-3.1.0+dfsg1/fastcgi/shibresponder.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/fastcgi/shibauthorizer.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/fastcgi/resource.h
Examining data/shibboleth-sp-3.1.0+dfsg1/memcache-store/resource.h
Examining data/shibboleth-sp-3.1.0+dfsg1/memcache-store/memcache-store.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibd/shibd.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/shibd/resource.h
Examining data/shibboleth-sp-3.1.0+dfsg1/shibd/shibd_win32.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/config_win32.h
Examining data/shibboleth-sp-3.1.0+dfsg1/apache/mod_shib.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/apache/mod_shib_20.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/apache/mod_shib_22.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/apache/mod_shib_24.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/apache/mod_shib_13.cpp
Examining data/shibboleth-sp-3.1.0+dfsg1/apache/resource.h

FINAL RESULTS:

data/shibboleth-sp-3.1.0+dfsg1/shibsp/remoting/impl/UnixListener.cpp:154:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    if (chmod(m_address.c_str(),0777) < 0) {
data/shibboleth-sp-3.1.0+dfsg1/isapi_shib/isapi_shib.cpp:497:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(reinterpret_cast<char*>(m_pfc->pFilterContext), user);
data/shibboleth-sp-3.1.0+dfsg1/shibd/shibd.cpp:128:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stdout, PACKAGE_STRING"\n");
data/shibboleth-sp-3.1.0+dfsg1/shibd/shibd.cpp:334:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stdout, PACKAGE_STRING"\n");
data/shibboleth-sp-3.1.0+dfsg1/shibd/shibd.cpp:396:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, SD_ERR "configuration is invalid, check console or log for specific problems\n");
data/shibboleth-sp-3.1.0+dfsg1/shibd/shibd.cpp:416:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, SD_ERR "configuration is invalid, check console or log for specific problems\n");
data/shibboleth-sp-3.1.0+dfsg1/shibd/shibd.cpp:427:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stderr, SD_ERR "listener failed to initialize\n");
data/shibboleth-sp-3.1.0+dfsg1/shibd/shibd.cpp:466:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stderr, SD_ERR "listener failure during service\n");
data/shibboleth-sp-3.1.0+dfsg1/shibd/shibd_win32.cpp:543:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf( lpszBuf, "%s (0x%x)", lpszTemp, GetLastError() );
data/shibboleth-sp-3.1.0+dfsg1/apache/mod_shib.cpp:2224:26:  [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.
    const char* prereq = getenv("SHIBSP_APACHE_PREREQ");
data/shibboleth-sp-3.1.0+dfsg1/fastcgi/shibauthorizer.cpp:313:17:  [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.
    char* var = getenv("SHIBSP_SERVER_NAME");
data/shibboleth-sp-3.1.0+dfsg1/fastcgi/shibauthorizer.cpp:316:11:  [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.
    var = getenv("SHIBSP_SERVER_SCHEME");
data/shibboleth-sp-3.1.0+dfsg1/fastcgi/shibauthorizer.cpp:319:11:  [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.
    var = getenv("SHIBSP_SERVER_PORT");
data/shibboleth-sp-3.1.0+dfsg1/fastcgi/shibresponder.cpp:314:17:  [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.
    char* var = getenv("SHIBSP_SERVER_NAME");
data/shibboleth-sp-3.1.0+dfsg1/fastcgi/shibresponder.cpp:317:11:  [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.
    var = getenv("SHIBSP_SERVER_SCHEME");
data/shibboleth-sp-3.1.0+dfsg1/fastcgi/shibresponder.cpp:320:11:  [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.
    var = getenv("SHIBSP_SERVER_PORT");
data/shibboleth-sp-3.1.0+dfsg1/shibd/shibd.cpp:281:19:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((opt = getopt(argc, argv, "d:c:x:p:w:u:g:fFtvh")) > 0) {
data/shibboleth-sp-3.1.0+dfsg1/shibsp/SPConfig.cpp:177:23:  [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.
        inst_prefix = getenv("SHIBSP_PREFIX");
data/shibboleth-sp-3.1.0+dfsg1/shibsp/SPConfig.cpp:186:27:  [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.
    const char* logconf = getenv("SHIBSP_LOGGING");
data/shibboleth-sp-3.1.0+dfsg1/shibsp/SPConfig.cpp:197:19:  [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.
    inst_prefix = getenv("SHIBSP_CFGDIR");
data/shibboleth-sp-3.1.0+dfsg1/shibsp/SPConfig.cpp:241:19:  [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.
    inst_prefix = getenv("SHIBSP_LIBDIR");
data/shibboleth-sp-3.1.0+dfsg1/shibsp/SPConfig.cpp:245:19:  [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.
    inst_prefix = getenv("SHIBSP_LOGDIR");
data/shibboleth-sp-3.1.0+dfsg1/shibsp/SPConfig.cpp:249:19:  [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.
    inst_prefix = getenv("SHIBSP_RUNDIR");
data/shibboleth-sp-3.1.0+dfsg1/shibsp/SPConfig.cpp:253:19:  [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.
    inst_prefix = getenv("SHIBSP_CACHEDIR");
data/shibboleth-sp-3.1.0+dfsg1/shibsp/SPConfig.cpp:257:19:  [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.
    inst_prefix = getenv("SHIBSP_XMLDIR");
data/shibboleth-sp-3.1.0+dfsg1/shibsp/SPConfig.cpp:263: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.
        catalog_path = getenv("SHIBSP_SCHEMAS");
data/shibboleth-sp-3.1.0+dfsg1/shibsp/SPConfig.cpp:336:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand(static_cast<unsigned int>(std::time(nullptr)));
data/shibboleth-sp-3.1.0+dfsg1/shibsp/SPConfig.cpp:409:18:  [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.
        config = getenv("SHIBSP_CONFIG");
data/shibboleth-sp-3.1.0+dfsg1/shibsp/remoting/impl/TCPListener.cpp:122:49:  [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.
        m_address = XMLHelper::getAttrString(e, getenv("SHIBSP_LISTENER_ADDRESS"), address);
data/shibboleth-sp-3.1.0+dfsg1/shibsp/remoting/impl/TCPListener.cpp:134:29:  [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.
            const char* p = getenv("SHIBSP_LISTENER_PORT");
data/shibboleth-sp-3.1.0+dfsg1/shibsp/remoting/impl/UnixListener.cpp:100:49:  [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.
        m_address = XMLHelper::getAttrString(e, getenv("SHIBSP_LISTENER_ADDRESS"), address);
data/shibboleth-sp-3.1.0+dfsg1/adfs/adfs.cpp:366:58:  [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).
            ACS = app.getAssertionConsumerServiceByIndex(atoi(prop.second));
data/shibboleth-sp-3.1.0+dfsg1/adfs/adfs.cpp:553: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 timebuf[32];
data/shibboleth-sp-3.1.0+dfsg1/apache/mod_shib.cpp:516: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 buff[HUGE_STRING_LEN];
data/shibboleth-sp-3.1.0+dfsg1/apache/mod_shib.cpp:688: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[1024];
data/shibboleth-sp-3.1.0+dfsg1/apache/mod_shib.cpp:1103: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 l[MAX_STRING_LEN];
data/shibboleth-sp-3.1.0+dfsg1/apache/mod_shib.cpp:1563:54:  [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).
                return pair<bool,unsigned int>(true, atoi(prop));
data/shibboleth-sp-3.1.0+dfsg1/apache/mod_shib.cpp:1576:40:  [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).
            return pair<bool,int>(true,atoi(sta->m_dc->szRedirectToSSL));
data/shibboleth-sp-3.1.0+dfsg1/apache/mod_shib.cpp:1580:40:  [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).
                return make_pair(true, atoi(prop));
data/shibboleth-sp-3.1.0+dfsg1/fastcgi/shibauthorizer.cpp:119:20:  [2] (integer) atol:
  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).
        return s ? atol(s) : 0;
data/shibboleth-sp-3.1.0+dfsg1/fastcgi/shibauthorizer.cpp:231: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 buf[1024];
data/shibboleth-sp-3.1.0+dfsg1/fastcgi/shibauthorizer.cpp:321:24:  [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).
        g_ServerPort = atoi(var);
data/shibboleth-sp-3.1.0+dfsg1/fastcgi/shibresponder.cpp:120:20:  [2] (integer) atol:
  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).
        return s ? atol(s) : 0;
data/shibboleth-sp-3.1.0+dfsg1/fastcgi/shibresponder.cpp:184: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 buf[1024];
data/shibboleth-sp-3.1.0+dfsg1/fastcgi/shibresponder.cpp:322:24:  [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).
        g_ServerPort = atoi(var);
data/shibboleth-sp-3.1.0+dfsg1/iis7_shib/IIS7Request.cpp:89:18:  [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).
        m_port = atoi(site.m_sslport.c_str());
data/shibboleth-sp-3.1.0+dfsg1/iis7_shib/IIS7Request.cpp:92:18:  [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).
        m_port = atoi(site.m_port.c_str());
data/shibboleth-sp-3.1.0+dfsg1/iis7_shib/IIS7Request.cpp:328: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 buf[8192];
data/shibboleth-sp-3.1.0+dfsg1/iis7_shib/IIS7Request.cpp:383: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 buf[1024];
data/shibboleth-sp-3.1.0+dfsg1/isapi_shib/isapi_shib.cpp:357:22:  [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).
            m_port = atoi(var);
data/shibboleth-sp-3.1.0+dfsg1/isapi_shib/isapi_shib.cpp:361:18:  [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).
        m_port = atoi(site.m_sslport.c_str());
data/shibboleth-sp-3.1.0+dfsg1/isapi_shib/isapi_shib.cpp:364:18:  [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).
        m_port = atoi(site.m_port.c_str());
data/shibboleth-sp-3.1.0+dfsg1/isapi_shib/isapi_shib.cpp:526: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[1024];
data/shibboleth-sp-3.1.0+dfsg1/isapi_shib/isapi_shib.cpp:765:22:  [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).
            m_port = atoi(port);
data/shibboleth-sp-3.1.0+dfsg1/isapi_shib/isapi_shib.cpp:769:18:  [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).
        m_port = atoi(site.m_sslport.c_str());
data/shibboleth-sp-3.1.0+dfsg1/isapi_shib/isapi_shib.cpp:772:18:  [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).
        m_port = atoi(site.m_port.c_str());
data/shibboleth-sp-3.1.0+dfsg1/isapi_shib/isapi_shib.cpp:907:7:  [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[8192];
data/shibboleth-sp-3.1.0+dfsg1/isapi_shib/isapi_shib.cpp:912:13:  [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 message[65];
data/shibboleth-sp-3.1.0+dfsg1/isapi_shib/isapi_shib.cpp:953: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[1024];
data/shibboleth-sp-3.1.0+dfsg1/isapi_shib/isapi_shib.cpp:994: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 CertificateBuf[8192];
data/shibboleth-sp-3.1.0+dfsg1/nsapi_shib/nsapi_shib.cpp:258:38:  [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).
    m_server_portnum = (sa && *sa) ? atoi(sa) : server_portnum;
data/shibboleth-sp-3.1.0+dfsg1/nsapi_shib/nsapi_shib.cpp:317:29:  [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).
    return content_length ? atoi(content_length) : 0;
data/shibboleth-sp-3.1.0+dfsg1/nsapi_shib/nsapi_shib.cpp:341:14:  [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).
    else if (atoi(content_length) > 1024*1024) // 1MB?
data/shibboleth-sp-3.1.0+dfsg1/nsapi_shib/nsapi_shib.cpp:345:14:  [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).
      int cl=atoi(content_length);
data/shibboleth-sp-3.1.0+dfsg1/nsapi_shib/nsapi_shib.cpp:448: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[1024];
data/shibboleth-sp-3.1.0+dfsg1/nsapi_shib/nsapi_shib.cpp:680:40:  [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).
            return pair<bool,int>(true,atoi(param));
data/shibboleth-sp-3.1.0+dfsg1/odbc-store/odbc-store.cpp:471: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 timebuf[32];
data/shibboleth-sp-3.1.0+dfsg1/odbc-store/odbc-store.cpp:554: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 timebuf[32];
data/shibboleth-sp-3.1.0+dfsg1/odbc-store/odbc-store.cpp:636: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 timebuf[32];
data/shibboleth-sp-3.1.0+dfsg1/odbc-store/odbc-store.cpp:814: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 timebuf[32];
data/shibboleth-sp-3.1.0+dfsg1/odbc-store/odbc-store.cpp:817: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 nowbuf[32];
data/shibboleth-sp-3.1.0+dfsg1/odbc-store/odbc-store.cpp:844: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 nowbuf[32];
data/shibboleth-sp-3.1.0+dfsg1/shibd/shibd.cpp:99:18:  [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               gap[nNoMansLandSize];
data/shibboleth-sp-3.1.0+dfsg1/shibd/shibd.cpp:310:35:  [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).
                    daemon_wait = atoi(optarg);
data/shibboleth-sp-3.1.0+dfsg1/shibd/shibd.cpp:443:30:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                FILE* pidf = fopen(pidfile, "w");
data/shibboleth-sp-3.1.0+dfsg1/shibd/shibd_win32.cpp:53:1:  [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                    szErr[256];
data/shibboleth-sp-3.1.0+dfsg1/shibd/shibd_win32.cpp:386: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 szPath[256];
data/shibboleth-sp-3.1.0+dfsg1/shibd/shibd_win32.cpp:452: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        realName[512];
data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/impl/AbstractHandler.cpp:204:43:  [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).
            maxRSCookies = maxOSCookies = atoi(mech.second);
data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/impl/AbstractHandler.cpp:927:41:  [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).
            return pair<bool,int>(true, atoi(param));
data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/impl/AssertionConsumerService.cpp:675:13:  [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 timebuf[64];
data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/impl/ExternalAuthHandler.cpp:470:26:  [2] (integer) atol:
  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).
            sessionExp = atol(param);
data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/impl/LogoutHandler.cpp:141:17:  [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).
        index = atoi(param);
data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/impl/RemotedHandler.cpp:334: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[1024];
data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/impl/SAML2SessionInitiator.cpp:272:58:  [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).
            ACS = app.getAssertionConsumerServiceByIndex(atoi(prop.second));
data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/impl/Shib1SessionInitiator.cpp:143:58:  [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).
            ACS = app.getAssertionConsumerServiceByIndex(atoi(prop.second));
data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/impl/StatusHandler.cpp:147:26:  [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).
                m_port = atoi(port.c_str());
data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/impl/WAYFSessionInitiator.cpp:107:58:  [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).
            ACS = app.getAssertionConsumerServiceByIndex(atoi(prop.second));
data/shibboleth-sp-3.1.0+dfsg1/shibsp/impl/StorageServiceSessionCache.cpp:458: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 timebuf[32];
data/shibboleth-sp-3.1.0+dfsg1/shibsp/impl/StorageServiceSessionCache.cpp:689: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 timebuf[32];
data/shibboleth-sp-3.1.0+dfsg1/shibsp/impl/StorageServiceSessionCache.cpp:939:17:  [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 timebuf[32];
data/shibboleth-sp-3.1.0+dfsg1/shibsp/impl/StoredSession.cpp:223:13:  [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 timebuf[32];
data/shibboleth-sp-3.1.0+dfsg1/shibsp/impl/TransactionLog.cpp:471: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 timebuf[32];
data/shibboleth-sp-3.1.0+dfsg1/shibsp/impl/TransactionLog.cpp:510: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 timebuf[32];
data/shibboleth-sp-3.1.0+dfsg1/shibsp/impl/TransactionLog.cpp:533: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 timebuf[32];
data/shibboleth-sp-3.1.0+dfsg1/shibsp/remoting/impl/SocketListener.cpp:93: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 m_buf[16384];
data/shibboleth-sp-3.1.0+dfsg1/shibsp/remoting/impl/SocketListener.cpp:346: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[16384];
data/shibboleth-sp-3.1.0+dfsg1/shibsp/remoting/impl/SocketListener.cpp:409: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[256];
data/shibboleth-sp-3.1.0+dfsg1/shibsp/remoting/impl/TCPListener.cpp:136:26:  [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).
                m_port = atoi(p);
data/shibboleth-sp-3.1.0+dfsg1/shibsp/remoting/impl/TCPListener.cpp:184:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&m_sockaddr, ret->ai_addr, m_sockaddrlen);
data/shibboleth-sp-3.1.0+dfsg1/shibsp/remoting/impl/TCPListener.cpp:191:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&m_sockaddr, ret->ai_addr, m_sockaddrlen);
data/shibboleth-sp-3.1.0+dfsg1/shibsp/remoting/impl/ddf.cpp:218: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 trunc_name[MAX_NAME_LEN+1]="";
data/shibboleth-sp-3.1.0+dfsg1/shibsp/remoting/impl/ddf.cpp:291:49:  [2] (integer) atol:
  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).
                return m_handle->value.string ? atol(m_handle->value.string) : 0;
data/shibboleth-sp-3.1.0+dfsg1/shibsp/remoting/impl/ddf.cpp:407:40:  [2] (integer) atol:
  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).
        m_handle->value.integer=(val ? atol(val) : 0);
data/shibboleth-sp-3.1.0+dfsg1/shibsp/remoting/impl/ddf.cpp:634: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 name[MAX_NAME_LEN+1];
data/shibboleth-sp-3.1.0+dfsg1/shibsp/remoting/impl/ddf.cpp:665: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 name[MAX_NAME_LEN+1];
data/shibboleth-sp-3.1.0+dfsg1/shibsp/util/DOMPropertySet.cpp:283: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).
        return pair<bool,int>(true,atoi(i->second.first));
data/shibboleth-sp-3.1.0+dfsg1/shibsp/util/IPRange.cpp:117:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&raw, &((struct sockaddr_in*)address)->sin_addr, 4);
data/shibboleth-sp-3.1.0+dfsg1/shibsp/util/IPRange.cpp:134:18:  [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 raw[16];
data/shibboleth-sp-3.1.0+dfsg1/shibsp/util/IPRange.cpp:135:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(raw, &((struct sockaddr_in6*)address)->sin6_addr, 16);
data/shibboleth-sp-3.1.0+dfsg1/shibsp/util/IPRange.cpp:170:20:  [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).
    int maskSize = atoi(block.substr(++sep).c_str());
data/shibboleth-sp-3.1.0+dfsg1/shibsp/util/IPRange.cpp:173:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
         memcpy(&raw, &((struct sockaddr_in*)address->ai_addr)->sin_addr, 4);
data/shibboleth-sp-3.1.0+dfsg1/shibsp/util/IPRange.cpp:180:18:  [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 raw[16];
data/shibboleth-sp-3.1.0+dfsg1/shibsp/util/IPRange.cpp:181:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(raw, &((struct sockaddr_in6*)address->ai_addr)->sin6_addr, 16);
data/shibboleth-sp-3.1.0+dfsg1/shibsp/util/TemplateParameters.cpp:58: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 timebuf[32];
data/shibboleth-sp-3.1.0+dfsg1/shibsp/util/TemplateParameters.cpp:61: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 timebuf[32];
data/shibboleth-sp-3.1.0+dfsg1/apache/mod_shib.cpp:690:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        in.read(buf,1024);
data/shibboleth-sp-3.1.0+dfsg1/fastcgi/shibauthorizer.cpp:233:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            in.read(buf,1024);
data/shibboleth-sp-3.1.0+dfsg1/fastcgi/shibresponder.cpp:186:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            in.read(buf,1024);
data/shibboleth-sp-3.1.0+dfsg1/fastcgi/shibresponder.cpp:255:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        cin.read(*content, clen);
data/shibboleth-sp-3.1.0+dfsg1/iis7_shib/IIS7Request.cpp:143:133:  [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 HRESULT hr (m_request->SetHeader(g_bSafeHeaderNames ? makeSafeHeader(name).c_str() : name, value, static_cast<USHORT>(strlen(value)), TRUE));
data/shibboleth-sp-3.1.0+dfsg1/iis7_shib/IIS7Request.cpp:384:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        in.read(buf, sizeof(buf));
data/shibboleth-sp-3.1.0+dfsg1/iis7_shib/IIS7Request.cpp:407:25:  [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).
    size_t sz = value ? strlen(value) : 0;
data/shibboleth-sp-3.1.0+dfsg1/isapi_shib/isapi_shib.cpp:141:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(pVer->lpszExtensionDesc, "Shibboleth ISAPI Extension", HSE_MAX_EXT_DLL_NAME_LEN-1);
data/shibboleth-sp-3.1.0+dfsg1/isapi_shib/isapi_shib.cpp:253:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(pVer->lpszFilterDesc, "Shibboleth ISAPI Filter", SF_MAX_FILTER_DESC_LEN);
data/shibboleth-sp-3.1.0+dfsg1/isapi_shib/isapi_shib.cpp:288:45:  [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).
    size_t length() const { return bufptr ? strlen(bufptr) : 0; }
data/shibboleth-sp-3.1.0+dfsg1/isapi_shib/isapi_shib.cpp:496: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).
    else if (m_pfc->pFilterContext = m_pfc->AllocMem(m_pfc, sizeof(char) * (strlen(user) + 1), 0))
data/shibboleth-sp-3.1.0+dfsg1/isapi_shib/isapi_shib.cpp:528:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        in.read(buf,1024);
data/shibboleth-sp-3.1.0+dfsg1/isapi_shib/isapi_shib.cpp:608:19:  [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).
    DWORD resplen=strlen(xmsg);
data/shibboleth-sp-3.1.0+dfsg1/isapi_shib/isapi_shib.cpp:610:13:  [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).
    resplen=strlen(msg);
data/shibboleth-sp-3.1.0+dfsg1/isapi_shib/isapi_shib.cpp:613:13:  [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).
    resplen=strlen(xmsg2);
data/shibboleth-sp-3.1.0+dfsg1/isapi_shib/isapi_shib.cpp:714:19:  [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).
    DWORD resplen=strlen(xmsg);
data/shibboleth-sp-3.1.0+dfsg1/isapi_shib/isapi_shib.cpp:716:13:  [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).
    resplen=strlen(msg);
data/shibboleth-sp-3.1.0+dfsg1/isapi_shib/isapi_shib.cpp:719:13:  [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).
    resplen=strlen(xmsg2);
data/shibboleth-sp-3.1.0+dfsg1/isapi_shib/isapi_shib.cpp:955:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        in.read(buf,1024);
data/shibboleth-sp-3.1.0+dfsg1/nsapi_shib/nsapi_shib.cpp:82:41:  [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 (IO_ERROR==net_write(sn->csd,str,strlen(str))) return REQ_EXIT
data/shibboleth-sp-3.1.0+dfsg1/nsapi_shib/nsapi_shib.cpp:450:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        in.read(buf,1024);
data/shibboleth-sp-3.1.0+dfsg1/odbc-store/odbc-store.cpp:506:65:  [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).
        sr = SQLBindParam(stmt, 3, SQL_C_CHAR, SQL_LONGVARCHAR, strlen(value), 0, const_cast<char*>(value), &b_ind);
data/shibboleth-sp-3.1.0+dfsg1/odbc-store/odbc-store.cpp:700:69:  [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).
            sr = SQLBindParam(stmt, 1, SQL_C_CHAR, SQL_LONGVARCHAR, strlen(value), 0, const_cast<char*>(value), &b_ind);
data/shibboleth-sp-3.1.0+dfsg1/shibsp/AbstractSPRequest.cpp:329:47:  [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).
    string host(colon, (slash ? slash-colon : strlen(colon)));
data/shibboleth-sp-3.1.0+dfsg1/shibsp/ServiceProvider.cpp:182:28:  [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).
        size_t delim_len = strlen(delim.second);
data/shibboleth-sp-3.1.0+dfsg1/shibsp/ServiceProvider.cpp:711:70:  [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 Handler* handler = app->getHandler(targetURL.c_str() + strlen(handlerURL));
data/shibboleth-sp-3.1.0+dfsg1/shibsp/attribute/NameIDAttribute.cpp:160:99:  [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_serialized.push_back(SecurityHelper::doHash(m_hashAlg.c_str(), trimmed.c_str(), strlen(e.what())));
data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/impl/LogoutHandler.cpp:159:46:  [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).
    string locstr(start, end ? end - start : strlen(start));
data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/impl/RemotedHandler.cpp:216: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).
                    x509->loadX509PEM(cert.string(), cert.strlen());
data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/impl/RemotedHandler.cpp:218:65:  [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).
                    x509->loadX509Base64Bin(cert.string(), cert.strlen());
data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/impl/RemotedHandler.cpp:336:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        in.read(buf, 1024);
data/shibboleth-sp-3.1.0+dfsg1/shibsp/handler/impl/SessionHandler.cpp:320:32:  [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).
            size_t delim_len = strlen(delim.second);
data/shibboleth-sp-3.1.0+dfsg1/shibsp/impl/StorageServiceSessionCache.cpp:333:9:  [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 (strlen(name) > storageLimit) {
data/shibboleth-sp-3.1.0+dfsg1/shibsp/impl/StorageServiceSessionCache.cpp:538:58:  [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 (!tokenid.get() || !*tokenid.get() || strlen(tokenid.get()) > m_storage->getCapabilities().getKeySize())
data/shibboleth-sp-3.1.0+dfsg1/shibsp/impl/StorageServiceSessionCache.cpp:672:9:  [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 (strlen(name.get()) > storageLimit)
data/shibboleth-sp-3.1.0+dfsg1/shibsp/impl/StoredSession.cpp:507: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).
    else if (strlen(id.get()) > m_cache->m_storage->getCapabilities().getKeySize())
data/shibboleth-sp-3.1.0+dfsg1/shibsp/impl/XMLApplication.cpp:487:41:  [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).
                location.second = pch + strlen(hurl);
data/shibboleth-sp-3.1.0+dfsg1/shibsp/impl/XMLApplication.cpp:1197:57:  [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", entityID.second, strlen(entityID.second), false),
data/shibboleth-sp-3.1.0+dfsg1/shibsp/impl/XMLApplication.cpp:1407:47:  [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).
    string host(colon, (slash ? slash-colon : strlen(colon)));
data/shibboleth-sp-3.1.0+dfsg1/shibsp/impl/XMLServiceProvider.cpp:735:17:  [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 (strlen(value) <= storage->getCapabilities().getStringSize())
data/shibboleth-sp-3.1.0+dfsg1/shibsp/metadata/DynamicMetadataProvider.cpp:425:90:  [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 backingFile(m_cacheDir + "/" + SecurityHelper::doHash("SHA1", id.get(), strlen(id.get())) + ".xml");
data/shibboleth-sp-3.1.0+dfsg1/shibsp/metadata/DynamicMetadataProvider.cpp:438:68:  [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", temp.get(), strlen(temp.get()), true));
data/shibboleth-sp-3.1.0+dfsg1/shibsp/remoting/ddf.h:79:16:  [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).
        size_t strlen() const;
data/shibboleth-sp-3.1.0+dfsg1/shibsp/remoting/impl/ListenerService.cpp:125:61:  [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).
        outmsg.string(SecurityHelper::doHash(hashAlg, data, strlen(data)).c_str());
data/shibboleth-sp-3.1.0+dfsg1/shibsp/remoting/impl/UnixListener.cpp:141:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(addr.sun_path, m_address.c_str(), UNIX_PATH_MAX);
data/shibboleth-sp-3.1.0+dfsg1/shibsp/remoting/impl/UnixListener.cpp:170:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(addr.sun_path, m_address.c_str(), UNIX_PATH_MAX);
data/shibboleth-sp-3.1.0+dfsg1/shibsp/remoting/impl/ddf.cpp:48:16:  [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).
    return s ? strlen(s) : 0;
data/shibboleth-sp-3.1.0+dfsg1/shibsp/remoting/impl/ddf.cpp:72:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(name,*path,MAX_NAME_LEN);
data/shibboleth-sp-3.1.0+dfsg1/shibsp/remoting/impl/ddf.cpp:77:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(name,*path,temp-*path);
data/shibboleth-sp-3.1.0+dfsg1/shibsp/remoting/impl/ddf.cpp:224:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(trunc_name,name,MAX_NAME_LEN);
data/shibboleth-sp-3.1.0+dfsg1/shibsp/remoting/impl/ddf.cpp:324:13:  [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).
size_t DDF::strlen() const
data/shibboleth-sp-3.1.0+dfsg1/shibsp/util/CGIParser.cpp:45:54:  [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).
        char *word = (char *) malloc(sizeof(char) * (strlen(line) + 1));
data/shibboleth-sp-3.1.0+dfsg1/shibsp/util/CGIParser.cpp:117: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).
    size_t cl = pch ? strlen(pch) : 0;

ANALYSIS SUMMARY:

Hits = 169
Lines analyzed = 60130 in approximately 1.74 seconds (34625 lines/second)
Physical Source Lines of Code (SLOC) = 42369
Hits@level = [0]  86 [1]  53 [2]  85 [3]  22 [4]   8 [5]   1
Hits@level+ = [0+] 255 [1+] 169 [2+] 116 [3+]  31 [4+]   9 [5+]   1
Hits/KSLOC@level+ = [0+] 6.01855 [1+] 3.98877 [2+] 2.73785 [3+] 0.731667 [4+] 0.212419 [5+] 0.0236022
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.