projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c86d1f1
)
Fix potential buffer overrun
author
Dmitry-Me
<wipedout@yandex.ru>
Thu, 4 Feb 2016 07:11:26 +0000
(10:11 +0300)
committer
Rich Salz
<rsalz@openssl.org>
Thu, 4 Feb 2016 15:09:19 +0000
(10:09 -0500)
Signed-off-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Kurt Roeckx <kurt@openssl.org>
crypto/dso/dso_dl.c
patch
|
blob
|
history
diff --git
a/crypto/dso/dso_dl.c
b/crypto/dso/dso_dl.c
index 2b56e9eba9003cb65b7c45fdde43a83f55b2dc32..6407bf73297ed92d720b799f487acea0336c98e0 100644
(file)
--- a/
crypto/dso/dso_dl.c
+++ b/
crypto/dso/dso_dl.c
@@
-265,7
+265,7
@@
static char *dl_merger(DSO *dso, const char *filespec1, const char *filespec2)
spec2len = (filespec2 ? strlen(filespec2) : 0);
len = spec2len + (filespec1 ? strlen(filespec1) : 0);
spec2len = (filespec2 ? strlen(filespec2) : 0);
len = spec2len + (filespec1 ? strlen(filespec1) : 0);
- if (
filespec2
&& filespec2[spec2len - 1] == '/') {
+ if (
spec2len
&& filespec2[spec2len - 1] == '/') {
spec2len--;
len--;
}
spec2len--;
len--;
}