HDFGroup / HDFGroup/hdf5

Reading corrupted HDF5 file hangs with 100% cpu load.

Open
#1,707 1 comment 11 reactions 1 assignee Claimed by @fortnern View on GitHub
Component - C Library
Dominant language
C
Stars
988
Forks
355
Avg merge
4d 2h
Merged PRs (30d)
12

Description

Hello,

I'm trying to read attached HDF file and see that python hangs forever. I tried with h5dump and it also hangs with 100% cpu load.
Is it possible to check such files before opening or raise an exception instead of inifinite loop? I know that corrupted files are hard to deal with but hanging application is also pretty bad from the user view.

File causing the problem: [r.zip](https://github.com/h5py/h5py/files/8591339/r.zip)

My system:
h5py 3.6.0
HDF5 1.12.1
Python 3.8.10
Ubuntu 20.04

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.