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)
This commit is contained in:
parent
f48ad5cbdf
commit
e2dba64c84
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue