Commit 3e5df378 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>
(cherry picked from commit 82dc08de54ce443c2a9ac478faffe79e76157795)
parent 4e5f9f8a
Supports Markdown
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