Limit reads in do_b2i_bio()
authorDr. Stephen Henson <steve@openssl.org>
Mon, 15 Aug 2016 15:52:21 +0000 (16:52 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Mon, 15 Aug 2016 23:27:10 +0000 (00:27 +0100)
commit66bcba145740e4f1210499ba6e5033035a2a4647
tree928a295acb74b39823d9aa8fa77b305943cbc338
parent8b9afbc0fc7f8be0049d389d34d9416fa377e2aa
Limit reads in do_b2i_bio()

Apply a limit to the maximum blob length which can be read in do_d2i_bio()
to avoid excessive allocation.

Thanks to Shi Lei for reporting this.

Reviewed-by: Rich Salz <rsalz@openssl.org>
crypto/pem/pvkfmt.c