aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorKurt Roeckx <kurt@roeckx.be>2016-06-19 14:16:16 +0200
committerKurt Roeckx <kurt@roeckx.be>2016-06-21 20:55:54 +0200
commit01238aec4071eabf072f4e98e3fb84cbab3c7107 (patch)
treea09753990785e9f064b03d3b8181f6b7109ddcdc /doc
parent28bd8e945ff0bf50183af2481cc36180fbccaedb (diff)
downloadopenssl-01238aec4071eabf072f4e98e3fb84cbab3c7107.tar.gz
buf2hexstr: properly deal with empty string
It wrote before the start of the string found by afl Reviewed-by: Richard Levitte <levitte@openssl.org> MR: #2994
Diffstat (limited to 'doc')
-rw-r--r--doc/crypto/OPENSSL_malloc.pod2
1 files changed, 1 insertions, 1 deletions
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<Buffer> cannot be NULL; if B<len> is NULL an empty string is returned.
+B<Buffer> cannot be NULL; if B<len> is 0 an empty string is returned.
OPENSSL_hexchar2int() converts a character to the hexadecimal equivalent,
or returns -1 on error.