Check for potentially exploitable overflows in asn1_d2i_read_bio