[shibboleth-sp2] 82/82: SSPCPP-754 Invert logic for 32 bit safe integers
Etienne Dysli Metref
edm-guest at moszumanska.debian.org
Thu Nov 16 08:16:28 UTC 2017
This is an automated email from the git hooks/post-receive script.
edm-guest pushed a commit to branch master
in repository shibboleth-sp2.
commit 2935cd1a16e633897acf3e0001409315bcaa8d0f
Author: Rod Widdowson <rdw at steadingsoftware.com>
Date: Sun Oct 29 15:44:56 2017 +0000
SSPCPP-754 Invert logic for 32 bit safe integers
https://issues.shibboleth.net/jira/browse/SSPCPP-754
---
shibsp/remoting/impl/ddf.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/shibsp/remoting/impl/ddf.cpp b/shibsp/remoting/impl/ddf.cpp
index 7087aa6..64a63b3 100644
--- a/shibsp/remoting/impl/ddf.cpp
+++ b/shibsp/remoting/impl/ddf.cpp
@@ -866,7 +866,8 @@ void serialize(ddf_body_t* p, ostream& os, bool name_attr=true)
break;
case ddf_body_t::DDF_INT:
- if (is32bitSafe(p->value.integer)) throw IOException("Integer Overflow");
+ if (!is32bitSafe(p->value.integer))
+ throw IOException("Integer Overflow");
os << "<number";
if (name_attr && p->name) {
os << " name=\"";
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-shibboleth/shibboleth-sp2.git
More information about the Pkg-shibboleth-devel
mailing list