Skip to content

Commit

Permalink
Allow short reads in asn1_d2i_read_bio()
Browse files Browse the repository at this point in the history
Reviewed-by: Neil Horman <[email protected]>
Reviewed-by: Paul Dale <[email protected]>
(Merged from openssl#22486)

(cherry picked from commit 202ef97)
  • Loading branch information
t8m committed Jul 18, 2024
1 parent d74053e commit 4f4a0ac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crypto/asn1/a_d2i_fp.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ int asn1_d2i_read_bio(BIO *in, BUF_MEM **pb)
goto err;
}
len += i;
if ((size_t)i < want)
continue;

}
}
/* else data already loaded */
Expand Down

0 comments on commit 4f4a0ac

Please sign in to comment.