diff options
Diffstat (limited to 'lasso')
-rw-r--r-- | lasso/saml-2.0/provider.c | 2 | ||||
-rw-r--r-- | lasso/xml/tools.c | 2 | ||||
-rw-r--r-- | lasso/xml/xml.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lasso/saml-2.0/provider.c b/lasso/saml-2.0/provider.c index a66ba9f2..f86eb8f1 100644 --- a/lasso/saml-2.0/provider.c +++ b/lasso/saml-2.0/provider.c @@ -153,7 +153,7 @@ xsdUnsignedShortParse(xmlChar *value, int *out) { errno = 0; l = strtol((char*)value, NULL, 10); - if (((l == LONG_MIN || l == LONG_MAX) && errno == ERANGE) || + if (((l == INT_MIN || l == INT_MAX) && errno == ERANGE) || errno == EINVAL || l < 0 || l >= 65535) { return FALSE; } diff --git a/lasso/xml/tools.c b/lasso/xml/tools.c index f73cb1f2..9eb7e57b 100644 --- a/lasso/xml/tools.c +++ b/lasso/xml/tools.c @@ -639,7 +639,7 @@ lasso_query_verify_helper(const char *signed_content, const char *b64_signature, xmlSecByte *signature = NULL; int key_size = 0; unsigned char *hmac_key = NULL; - unsigned int hmac_key_length = 0; + size_t hmac_key_length = 0; const EVP_MD *md = NULL; lasso_error_t rc = 0; LassoSignatureMethod method = LASSO_SIGNATURE_METHOD_NONE; diff --git a/lasso/xml/xml.c b/lasso/xml/xml.c index e3ac905d..488cd5d8 100644 --- a/lasso/xml/xml.c +++ b/lasso/xml/xml.c @@ -1295,7 +1295,7 @@ snippet_set_value(LassoNode *node, LassoNodeClass *class, struct XmlSnippet *sni value = SNIPPET_STRUCT_MEMBER_P(node, g_type, snippet); if (snippet->type & SNIPPET_INTEGER) { int val = strtol((char*)content, NULL, 10); - if (((val == LONG_MIN || val == LONG_MAX) && errno == ERANGE) + if (((val == INT_MIN || val == INT_MAX) && errno == ERANGE) || errno == EINVAL || val < 0) { if (snippet->type & SNIPPET_OPTIONAL_NEG) { val = -1; |