Skip to content

Commit

Permalink
Merge pull request #363 from tealeg/ryanh/fix_out_of_bounds
Browse files Browse the repository at this point in the history
Fix out of bounds error
  • Loading branch information
ryho authored Feb 13, 2018
2 parents 1fe99bc + 0cad9a7 commit d40e2bb
Show file tree
Hide file tree
Showing 2 changed files with 336 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,7 @@ func ReadZipReaderWithRowLimit(r *zip.Reader, rowLimit int) (*File, error) {
case "xl/theme/theme1.xml":
themeFile = v
default:
if len(v.Name) > 14 {
if len(v.Name) > 17 {
if v.Name[0:13] == "xl/worksheets" {
worksheets[v.Name[14:len(v.Name)-4]] = v
}
Expand Down
Loading

0 comments on commit d40e2bb

Please sign in to comment.