Skip to content

Empty file will cause panic #72

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]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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