Fix handling of -offset and -length in asn1parse tool.
authorDr. Stephen Henson <steve@openssl.org>
Sun, 8 Feb 2004 13:31:53 +0000 (13:31 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sun, 8 Feb 2004 13:31:53 +0000 (13:31 +0000)
commit820fb35a2131954e8af2723630d9ebc60d883c67
tree6ffa0bc004f762a2c03dd7d0868c7e3dadd8063f
parentb47178f0ed02518cd648ed8c67af49a0051ed37a
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