projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d31bc17
)
Fix a signed/unsigned warning
author
Matt Caswell
<matt@openssl.org>
Mon, 25 Apr 2016 16:45:11 +0000
(17:45 +0100)
committer
Matt Caswell
<matt@openssl.org>
Mon, 25 Apr 2016 16:45:11 +0000
(17:45 +0100)
This causes a compilation failure when using --strict-warnings in 1.0.2
and 1.0.1
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
crypto/asn1/asn1_lib.c
patch
|
blob
|
history
diff --git
a/crypto/asn1/asn1_lib.c
b/crypto/asn1/asn1_lib.c
index 54b683c15152d2dfc519c41f06ee6e61ed8dbf7f..874b1af8b09a41c19986c71f18b5e2520cc8be00 100644
(file)
--- 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;