Skip to content

Fix parsing of truncated byte arrays#203

Open
jmhmd wants to merge 2 commits intocornerstonejs:masterfrom
jmhmd:fix/parse-truncated
Open

Fix parsing of truncated byte arrays#203
jmhmd wants to merge 2 commits intocornerstonejs:masterfrom
jmhmd:fix/parse-truncated

Conversation

@jmhmd
Copy link

@jmhmd jmhmd commented Jun 8, 2022

This change will catch dataset parsing exceptions and merge in the parsed metadata header dataset with the partially parsed dataset and re-throw the exception. This allows a truncated byte array to still be parsed (up to the point of the parsing exception).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant