[openssl-commits] [openssl] OpenSSL_1_0_1-stable update
Matt Caswell
matt at openssl.org
Mon Apr 25 18:49:02 UTC 2016
The branch OpenSSL_1_0_1-stable has been updated
via 1ee454157636a69400af56ea19f57c0b05c344ef (commit)
from 184ebf0fca31685bb03e2ed225f2c474769fe646 (commit)
- Log -----------------------------------------------------------------
commit 1ee454157636a69400af56ea19f57c0b05c344ef
Author: Matt Caswell <matt at openssl.org>
Date: Mon Apr 25 17:45:11 2016 +0100
Fix a signed/unsigned warning
This causes a compilation failure when using --strict-warnings in 1.0.2
and 1.0.1
Reviewed-by: Viktor Dukhovni <viktor at openssl.org>
(cherry picked from commit 0ca67644ddedfd656d43a6639d89a6236ff64652)
-----------------------------------------------------------------------
Summary of changes:
crypto/asn1/asn1_lib.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/crypto/asn1/asn1_lib.c b/crypto/asn1/asn1_lib.c
index 54b683c..874b1af 100644
--- a/crypto/asn1/asn1_lib.c
+++ b/crypto/asn1/asn1_lib.c
@@ -175,7 +175,7 @@ static int asn1_get_length(const unsigned char **pp, int *inf, long *rl,
*inf = 0;
i = *p & 0x7f;
if (*(p++) & 0x80) {
- if (i > sizeof(ret) || max < i)
+ if (i > sizeof(ret) || max < (long)i)
return 0;
while (i-- > 0) {
ret <<= 8L;
More information about the openssl-commits
mailing list