Fix handling of -offset and -length in asn1parse tool.
authorDr. Stephen Henson <steve@openssl.org>
Sun, 8 Feb 2004 13:31:32 +0000 (13:31 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sun, 8 Feb 2004 13:31:32 +0000 (13:31 +0000)
commit649ce0516a36b7e87600ecbae62cda37b14c22f8
tree57dc9201483779740a24c048eb97b3631f40d2e1
parent2f1d799c7fdb37463bdfea3b87bc6cda42518b1f
Fix handling of -offset and -length in asn1parse tool.

If -offset exceeds -length of data available exit with an error.

Don't read past end of total data available when -offset supplied.

If -length exceeds total available truncate it.
apps/asn1pars.c