mirror of
https://github.com/minio/minio.git
synced 2026-02-04 18:00:15 -05:00
verify maxPartID in object options helpers (#17015)
This commit is contained in:
@@ -89,6 +89,9 @@ func getOpts(ctx context.Context, r *http.Request, bucket, object string) (Objec
|
||||
if err != nil {
|
||||
return opts, err
|
||||
}
|
||||
if isMaxPartID(partNumber) {
|
||||
return opts, errInvalidMaxParts
|
||||
}
|
||||
if partNumber <= 0 {
|
||||
return opts, errInvalidArgument
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user