projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
enc: fix coverity 1451499, 1451501, 1451506, 1451507, 1351511, 1451514, 1451517,...
[openssl.git]
/
crypto
/
idea
/
i_ofb64.c
diff --git
a/crypto/idea/i_ofb64.c
b/crypto/idea/i_ofb64.c
index 89ac18ce9189b91c077493423a9885269cfaf11d..246886bdc43ca494ffbef3cf73532d397db92c2e 100644
(file)
--- a/
crypto/idea/i_ofb64.c
+++ b/
crypto/idea/i_ofb64.c
@@
-35,6
+35,11
@@
void IDEA_ofb64_encrypt(const unsigned char *in, unsigned char *out,
unsigned char *iv;
int save = 0;
unsigned char *iv;
int save = 0;
+ if (n < 0) {
+ *num = -1;
+ return;
+ }
+
iv = (unsigned char *)ivec;
n2l(iv, v0);
n2l(iv, v1);
iv = (unsigned char *)ivec;
n2l(iv, v0);
n2l(iv, v1);