XL/fs: GetObject should validate all its inputs. (#2142)

Fixes #2141
Fixes #2139
This commit is contained in:
Harshavardhana
2016-07-08 07:46:49 -07:00
committed by GitHub
parent ca1b1921c4
commit ec35330ebb
6 changed files with 79 additions and 51 deletions
+1 -1
View File
@@ -138,7 +138,7 @@ func (api objectAPIHandlers) GetObjectHandler(w http.ResponseWriter, r *http.Req
startOffset := int64(0)
length := objInfo.Size
if hrange != nil {
startOffset = hrange.firstBytePos
startOffset = hrange.offsetBegin
length = hrange.getLength()
}
// Reads the object at startOffset and writes to mw.