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:
1bf0b46
)
Fix faulty base64 decoding of data that was 46 or 47 bytes long.
author
Ulf Möller
<ulf@openssl.org>
Fri, 13 Aug 1999 19:42:33 +0000
(19:42 +0000)
committer
Ulf Möller
<ulf@openssl.org>
Fri, 13 Aug 1999 19:42:33 +0000
(19:42 +0000)
Submitted by: Ivan Nejgebauer <ian@uns.ns.ac.yu>
crypto/evp/encode.c
patch
|
blob
|
history
diff --git
a/crypto/evp/encode.c
b/crypto/evp/encode.c
index 0152624a7691545fb722e50d75ae2722f7c1ba9e..110435d5dfc4911e4155c01d50872550026b9039 100644
(file)
--- a/
crypto/evp/encode.c
+++ b/
crypto/evp/encode.c
@@
-294,12
+294,12
@@
int EVP_DecodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl,
if (((i+1) == inl) && (((n&3) == 0) || eof))
v=B64_EOF;
- if ((v == B64_EOF) || (n >= 6
4
))
+ if ((v == B64_EOF) || (n >= 6
8
))
{
/* This is needed to work correctly on 64 byte input
* lines. We process the line and then need to
* accept the '\n' */
- if ((v != B64_EOF) && (n >= 6
4
)) exp_nl=1;
+ if ((v != B64_EOF) && (n >= 6
8
)) exp_nl=1;
tmp2=v;
if (n > 0)
{