Skip to content

Empty file will cause panic #72

@zzjha-cn

Description

@zzjha-cn

what i meet:
when read a empty orc file (no header and footer , zero byte), this program will get a panic.

the file: read.go

func (r *Reader) extractMetaInfoFromFooter() error {
....
}

how to reproduce

  • touch test.orc
  • in golang file:
    orc.Open("./test.orc")
  • panic: runtime error: out of range [-1]

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