ole2
ole2 copied to clipboard
Slice bounds out of range bug
The code uses d.Bsize without checking if it's within the range of the slice d.NameBts. A specially crafted ole2 file (Excel sheet) can crash the application by setting a a high number for d.Bsize.
https://github.com/extrame/ole2/blob/d69429661ad7efb189d2ad8074c867265009d0a4/dir.go#L32-L35
The fix is to check the ranges first.