Skip to content

Bad box header causing read_header dead-looping. #64

@qianzhang5

Description

@qianzhang5

I have a surveillance footage that has a size zero BoxHeader, which causes dead-looping in reader.rs line 30 "while current < size ..."
suggest:
while current < size {
// Get box header.
let header = BoxHeader::read(&mut reader)?;
let BoxHeader { name, size: s } = header;
if s == 0 {
break;
}

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