Skip to content
Commit 28ad7318 authored by Andy Polyakov's avatar Andy Polyakov
Browse files

x509/x509name.c: fix potential crash in X509_NAME_get_text_by_OBJ.



Documentation says "at most B<len> bytes will be written", which
formally doesn't prohibit zero. But if zero B<len> was passed, the
call to memcpy was bound to crash.

Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6860)
parent f44d7e8b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment