Fix possible infinite loop in pem_read_bio_key_decoder()
authorTomas Mraz <tomas@openssl.org>
Mon, 24 May 2021 16:47:45 +0000 (18:47 +0200)
committerTomas Mraz <tomas@openssl.org>
Wed, 26 May 2021 11:04:38 +0000 (13:04 +0200)
commit07f65429c34cb581484371f7d45cb83815f95484
treec5312e1a2a2790fc7bd625390f6f939399836d85
parentb59b2f93a165f9e4ad6ed15ca8b22ff29296297f
Fix possible infinite loop in pem_read_bio_key_decoder()

There could be an infinite loop if no read happened.

Fixes #15426

Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15441)
crypto/pem/pem_pkey.c