diff options
author | Rich Salz <rsalz@openssl.org> | 2017-06-15 18:51:10 -0400 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2017-07-05 17:06:57 -0400 |
commit | e2dba64c8460a3c08cd6021184b5a8163df28306 (patch) | |
tree | 61e81a5b029be376bb2bd337f5497ea49c4af356 /crypto/err | |
parent | f48ad5cbdf47c28f68f88e3c9b2f487a4dccc7b8 (diff) |
Fix crash
[extended tests]
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3700)
Diffstat (limited to 'crypto/err')
-rw-r--r-- | crypto/err/err.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/err/err.c b/crypto/err/err.c index 906e3543e1..e50c6d6f9d 100644 --- a/crypto/err/err.c +++ b/crypto/err/err.c @@ -757,6 +757,8 @@ void ERR_add_error_vdata(int num, va_list args) n = 0; for (i = 0; i < num; i++) { a = va_arg(args, char *); + if (a == NULL) + a = "<NULL>"; n += strlen(a); if (n > s) { s = n + 20; |