Skip to content

Unable to read datasets larger than Integer.MAX_VALUE - 4kB #715

@youri-k

Description

@youri-k

Describe the bug
Reading a dataset slice of size Integer.MAX_VALUE bytes does not yield the same data, as was written by putDataset.

To Reproduce

Steps to reproduce the behaviour:

Expected behaviour

  • The two arrays in the main method should have the same content, but they don't.

Please complete the following information:

  • jhdf version: 0.9.4
  • Java version: 21
  • OS (Windows, Mac, Linux): Linux

Additional context

  • Reducing MAX_ARRAY_SIZE by 4kB solves the issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions