while checking for EOC encoding. At least the indefinite decoding
breaks consistently now.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12684
dc483132-0cff-0310-8789-
dd5450dbe970
+2000-09-26 Tom Yu <tlyu@mit.edu>
+
+ * asn1_get.c (asn1_get_tag_indef): Fix to not deref random garbage
+ while checking for EOC encoding. At least the indefinite decoding
+ breaks consistently now.
+
2000-08-07 Ezra Peisach <epeisach@mit.edu>
* asn1_k_decode.c (asn1_decode_last_req_entry): Decode the lr_type
return 0;
}
/* Allow for the indefinite encoding */
- if ( !*(buf->next) && !*(buf->next + 1)) {
+ if ((buf->bound - buf->next + 1 >= 2)
+ && !*(buf->next) && !*(buf->next + 1)) {
buf->next += 2;
*tagnum = ASN1_TAGNUM_CEILING;
return 0;