Skip to content

read: check scalar rank

Compare
Choose a tag to compare
@scivision scivision released this 14 Jul 22:53
· 517 commits to main since this release
0681dd5

1d-7d arrays were already checked for matching shape on read. Inadvertently, we did not check scalars, so if one read an array dataset into a scalar memory variable, segfaults could result.
We did already check 0d..7d on write.

Hence, we add 0d read shape checks (dataset vs. memory variable).