Skip to content

Corrupted EDF file leads to segfault #70

@danjjl

Description

@danjjl

A corrupted EDF file causes python to segfault with the following error:

python(14094,0x1098325c0) malloc: *** error for object 0x7faae04a9e00: pointer being freed was not allocated
python(14094,0x1098325c0) malloc: *** set a breakpoint in malloc_error_break to debug
Abort trap: 6

edfbrowser reports the following error on the EDF file:

Datarecord duration is 1.000000000000 but timestep between
datarecord 70407 and preceding datarecord is 1.678000000000.
Offset from start of file: 0x47DC9E58

Stopped at the first error, additional errors may be present.

A fix to this bug would be to throw an exception instead of crashing python.

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