commit | 9398f168f96a1cd6e166309d77cbeca41ec0aea7 | [log] [tgz] |
---|---|---|
author | Adam Langley <agl@google.com> | Mon Nov 03 18:02:03 2014 -0800 |
committer | Adam Langley <agl@google.com> | Mon Nov 10 13:45:32 2014 -0800 |
tree | 37d1f14d65c7977f637387f495fbab1a51bc6fa9 | |
parent | 9f5a314d35e7eb8be36206f6903a818dfaf24eba [diff] |
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. (Imported from upstream's 7f7c05ca638c3cc6d261961fae439cd91e3c1d27) Change-Id: Icc6c44b874bdcb02374016a36d209830d6162a8a