diff options
author | Tomas Mraz <tomas@openssl.org> | 2021-04-19 16:02:16 +0200 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2021-04-22 16:46:20 +0200 |
commit | 1fac27050176f7ed00da5649266024265678f70c (patch) | |
tree | 4b60cd18f6793a759f49fa08146b44e98575398f /test/evp_extra_test2.c | |
parent | db6b1266ab30945de2d14fbc62e9c3c308cce897 (diff) | |
download | openssl-1fac27050176f7ed00da5649266024265678f70c.zip openssl-1fac27050176f7ed00da5649266024265678f70c.tar.gz openssl-1fac27050176f7ed00da5649266024265678f70c.tar.bz2 |
Fix potential NULL dereference in OSSL_PARAM_get_utf8_string()
Fixes Coverity ID 1476283
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14928)
Diffstat (limited to 'test/evp_extra_test2.c')
-rw-r--r-- | test/evp_extra_test2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/evp_extra_test2.c b/test/evp_extra_test2.c index 358ac60..6d5303a 100644 --- a/test/evp_extra_test2.c +++ b/test/evp_extra_test2.c @@ -566,7 +566,7 @@ static int do_check_utf8_str(OSSL_PARAM params[], const char *key, const char *expected) { OSSL_PARAM *p; - char *bufp = 0; + char *bufp = NULL; int ret; ret = TEST_ptr(p = OSSL_PARAM_locate(params, key)) |