mirror of
https://github.com/pgsty/minio.git
synced 2026-11-01 05:12:07 +03:00
fix: reject composite CRC64NVME trailers
Apply the full-object-only rule to declared streaming checksum trailers and cover the HTTP mutation path. Signed-off-by: Feng Ruohang <rh@vonng.com>
This commit is contained in:
@@ -716,7 +716,11 @@ func GetContentChecksum(h http.Header) (*Checksum, error) {
|
||||
return nil, ErrInvalidChecksum
|
||||
}
|
||||
res.Type |= ChecksumFullObject
|
||||
case xhttp.AmzChecksumTypeComposite, "":
|
||||
case xhttp.AmzChecksumTypeComposite:
|
||||
if res.Type.Base().Is(ChecksumCRC64NVME) {
|
||||
return nil, ErrInvalidChecksum
|
||||
}
|
||||
case "":
|
||||
default:
|
||||
return nil, ErrInvalidChecksum
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user