projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd60129
)
Avoid overflow in MDC2_Update()
author
min7.choi
<min7.choi@samsung.com>
Mon, 12 Jun 2017 01:37:37 +0000
(10:37 +0900)
committer
jaekuk, lee
<juku1999@samsung.com>
Mon, 12 Jun 2017 05:19:12 +0000
(14:19 +0900)
Change-Id: I11dfad2f10827602680ff348534f7afe8299da54
Signed-off-by: min7.choi <min7.choi@samsung.com>
deps/openssl/openssl/crypto/mdc2/mdc2dgst.c
patch
|
blob
|
history
diff --git
a/deps/openssl/openssl/crypto/mdc2/mdc2dgst.c
b/deps/openssl/openssl/crypto/mdc2/mdc2dgst.c
index
6615cf8
..
2dce493
100644
(file)
--- a/
deps/openssl/openssl/crypto/mdc2/mdc2dgst.c
+++ b/
deps/openssl/openssl/crypto/mdc2/mdc2dgst.c
@@
-91,7
+91,7
@@
int MDC2_Update(MDC2_CTX *c, const unsigned char *in, size_t len)
i = c->num;
if (i != 0) {
- if (
i + len < MDC2_BLOCK
) {
+ if (
len < MDC2_BLOCK - i
) {
/* partial block */
memcpy(&(c->data[i]), in, len);
c->num += (int)len;