mirror of
https://github.com/pgsty/minio.git
synced 2026-07-22 13:40:22 +03:00
XL/fs: GetObject should validate all its inputs. (#2142)
Fixes #2141 Fixes #2139
This commit is contained in:
+1
-1
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user