Fix handling of -offset and -length in asn1parse tool.
authorDr. Stephen Henson <steve@openssl.org>
Sun, 8 Feb 2004 13:30:04 +0000 (13:30 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sun, 8 Feb 2004 13:30:04 +0000 (13:30 +0000)
commit37ead9be0b990b94ec6dbf466cdc05f53c18d442
tree5b66fb4f854d3b0f482f328b8588a89713d2d293
parent1751034669af1e687f4fefeff0bbbf98b4adb05a
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