projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Unchecked malloc fixes
[openssl.git]
/
crypto
/
dso
/
dso_vms.c
diff --git
a/crypto/dso/dso_vms.c
b/crypto/dso/dso_vms.c
index 649818412489a9357a81f63071c9ccb11cc4e2ac..d3c4eab269a03da538e049825930f61124e2615d 100644
(file)
--- a/
crypto/dso/dso_vms.c
+++ b/
crypto/dso/dso_vms.c
@@
-527,7
+527,8
@@
static char *vms_name_converter(DSO *dso, const char *filename)
{
int len = strlen(filename);
char *not_translated = OPENSSL_malloc(len + 1);
- strcpy(not_translated, filename);
+ if(not_translated)
+ strcpy(not_translated, filename);
return (not_translated);
}