Commit ce3fc395 authored by Dr. Stephen Henson's avatar Dr. Stephen Henson
Browse files

Fix asn1_GetSequence() for indefinite length sequences.
parent 787f25ab
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -4,6 +4,12 @@

 Changes between 0.9.6 and 0.9.6a  [xx XXX 2001]

  *) Fix for asn1_GetSequence() for indefinite length constructed data.
     If SEQUENCE is length is indefinite just set c->slen to the total
     amount of data available.
     [Steve Henson, reported by shige@FreeBSD.org]
     [This change does not apply to 0.9.7.]

  *) Change bctest to avoid here-documents inside command substitution
     (workaround for FreeBSD /bin/sh bug).
     [Bodo Moeller]
+1 −1
Original line number Diff line number Diff line
@@ -301,7 +301,7 @@ int asn1_GetSequence(ASN1_CTX *c, long *length)
		return(0);
		}
	if (c->inf == (1|V_ASN1_CONSTRUCTED))
		c->slen= *length+ *(c->pp)-c->p;
		c->slen= *length;
	c->eos=0;
	return(1);
	}