[cpp-opensaml COMMIT] /branches/REL_2/saml/binding/impl/ArtifactMap.cpp
noreply at shibboleth.net
noreply at shibboleth.net
Sun Jul 5 15:12:30 EDT 2015
Author: scantor
Date: Sun Jul 5 15:12:30 2015
New Revision: 784
URL: http://svn.shibboleth.net/view/cpp-opensaml?rev=784&view=rev
Log:
CPPXT-104 - Add exception handling to integer conversions
Modified:
branches/REL_2/saml/binding/impl/ArtifactMap.cpp
Modified: branches/REL_2/saml/binding/impl/ArtifactMap.cpp
URL: http://svn.shibboleth.net/view/cpp-opensaml/branches/REL_2/saml/binding/impl/ArtifactMap.cpp?rev=784&r1=783&r2=784&view=diff
==============================================================================
--- branches/REL_2/saml/binding/impl/ArtifactMap.cpp (original)
+++ branches/REL_2/saml/binding/impl/ArtifactMap.cpp Sun Jul 5 15:12:30 2015
@@ -190,7 +190,12 @@
const XMLCh* TTL = e->getAttributeNS(nullptr, artifactTTL);
if (TTL) {
- m_artifactTTL = XMLString::parseInt(TTL);
+ try {
+ m_artifactTTL = XMLString::parseInt(TTL);
+ }
+ catch (XMLException&) {
+ m_artifactTTL = 0;
+ }
if (!m_artifactTTL)
m_artifactTTL = 180;
}
More information about the commits
mailing list