extrame / xls

Pure Golang xls library
Apache License 2.0
331 stars 210 forks source link

Index out of range bug #60

Open Kleissner opened 5 years ago

Kleissner commented 5 years ago

There's an index out of range bug at col.go:199 (called by row.go:25). https://github.com/extrame/xls/blob/539786826ceda3e4b1cd7a72f2502275eca336a4/col.go#L198-L200

You should check if int(c.Sst) is within the range of wb.sst. If not, return []string{""}.