From 01238aec4071eabf072f4e98e3fb84cbab3c7107 Mon Sep 17 00:00:00 2001 From: Kurt Roeckx Date: Sun, 19 Jun 2016 14:16:16 +0200 Subject: buf2hexstr: properly deal with empty string It wrote before the start of the string found by afl Reviewed-by: Richard Levitte MR: #2994 --- doc/crypto/OPENSSL_malloc.pod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/crypto/OPENSSL_malloc.pod b/doc/crypto/OPENSSL_malloc.pod index ba50221f1c..5d254f7b90 100644 --- a/doc/crypto/OPENSSL_malloc.pod +++ b/doc/crypto/OPENSSL_malloc.pod @@ -124,7 +124,7 @@ An odd number of hex digits is an error. OPENSSL_buf2hexstr() takes the specified buffer and length, and returns a hex string for value, or NULL on error. -B cannot be NULL; if B is NULL an empty string is returned. +B cannot be NULL; if B is 0 an empty string is returned. OPENSSL_hexchar2int() converts a character to the hexadecimal equivalent, or returns -1 on error. -- cgit v1.2.3