Skip to content
Commit f34a5720 authored by Emilia Kasper's avatar Emilia Kasper
Browse files

Explicitly check for empty ASN.1 strings in d2i_ECPrivateKey



The old code implicitly relies on the ASN.1 code returning a \0-prefixed buffer
when the buffer length is 0. Change this to verify explicitly that the ASN.1 string
has positive length.

Reviewed-by: default avatarDr Stephen Henson <steve@openssl.org>
parent f063e30f
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