Skip to content

Stuck in infinite loop when reading a file with no metadata in a segment #35

@psolanki-intel

Description

@psolanki-intel

nextOffset will not be updated if there are no elements in metadata.

while (nextOffset < segment.NextSegmentOffset ||

This will return true if metadatas is empty.

if (metadatas.All(m => !m.RawData.IsInterleaved && m.RawData.Size > 0))

ReadMetadata() should check segment.TableOfContents.HasMetaData before attempting to parse the metadata.

public IList<Metadata> ReadMetadata(Segment segment)

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