diff options
author | Bodo Möller <bodo@openssl.org> | 2011-02-03 12:04:48 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2011-02-03 12:04:48 +0000 |
commit | 9d09fc8485479a38c37a1de1378a0ded22492f7e (patch) | |
tree | cb4da7025eb05f4c2ba9c8b20c58eeedf7816243 /crypto | |
parent | 8ea45317187ab9fbecefd9b9b231993c2c1554b6 (diff) |
Assorted bugfixes:
- RLE decompression boundary case
- SSL 2.0 key arg length check
Submitted by: Google (Neel Mehta, Bodo Moeller)
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/comp/c_rle.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/comp/c_rle.c b/crypto/comp/c_rle.c index efd366fa22..18bceae51e 100644 --- a/crypto/comp/c_rle.c +++ b/crypto/comp/c_rle.c @@ -46,7 +46,7 @@ static int rle_expand_block(COMP_CTX *ctx, unsigned char *out, { int i; - if (olen < (ilen-1)) + if (ilen == 0 || olen < (ilen-1)) { /* ZZZZZZZZZZZZZZZZZZZZZZ */ return(-1); @@ -59,4 +59,3 @@ static int rle_expand_block(COMP_CTX *ctx, unsigned char *out, } return(ilen-1); } - |