Skip to content

Bug in DirectoryEntry.php / getEntryBySid #2

@Jade-Wim

Description

@Jade-Wim

while ( $sector_count-- > 0 ) { $sector = $difat[$sector]; }

This section tries to traverse down the difat to find the next sector containing directory entries.
In CompoundFile / populateDirectories you can see it actually traverse down fatChains to get to the next sector.
Since FileHeader does not receive a reference to CompoundFile I ended up merging nearly everything from CompoundFile into FileHeader to create a workaround. Not sure if I could push to this codebase but I'm sure my solution is not the most elegant one. It solves the problem though. Hope you can find something that is a little less work.

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