-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Corrupted EDF file leads to segfault #70
Comments
do you have a sample file? the error is thrown from the c-library (edflib). to catch it we will probably need to add some additional code in the edflib library. |
Here is a fake corrupted file that generates a maloc (File is actually corrupted, i.e. file does not meet EDF+ specification --> suggestion is not to fix loading of this particular file but more not to segfault and cleanly report an error) |
As I suspected, the segfault cannot be caught in Python. I would need to alter the C-source code of pyedflib and throw a Python exception there. I don't want to break anything by tempering with |
A corrupted EDF file causes python to segfault with the following error:
edfbrowser reports the following error on the EDF file:
A fix to this bug would be to throw an exception instead of crashing python.
The text was updated successfully, but these errors were encountered: