]> git.ipfire.org Git - thirdparty/openssl.git/commit
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:28:22 +0000 (00:28 +0100)
commit17603dd994d6738c36ef7ab27e352aec9d6bd605
treee2e4911392ce643c77fb5cbaaf03fd0a3db3d53b
parent28a89639da50b1caed4ff3015508f23173bf3e49
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>
(cherry picked from commit 66bcba145740e4f1210499ba6e5033035a2a4647)
crypto/pem/pvkfmt.c