Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix reused field crash #15351

Merged
merged 1 commit into from
Jul 19, 2022
Merged

Conversation

klauspost
Copy link
Contributor

Description

PartIndices may be set if xlMetaV2Version is reused.

Clear before unmarshal and add sanity check when reading.

Motivation and Context

Fix crash

How to test this PR?

Multiple versions of an object is easiest. First one with indices. Second one with more parts, but no indices.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

`PartIndices` may be set if xlMetaV2Version is reused.

Clear before unmarshal and add sanity check when reading.
@minio-trusted
Copy link
Contributor

Mint Automation

Test Result
mint-large-bucket.sh ✔️
mint-fs.sh ✔️
mint-gateway-s3.sh ✔️
mint-erasure.sh ✔️
mint-dist-erasure.sh ✔️
mint-compress-encrypt-dist-erasure.sh ✔️
mint-pools.sh ✔️
Deleting image on docker hub
Deleting image locally

@harshavardhana harshavardhana merged commit cae9aec into minio:master Jul 19, 2022
@bh4t bh4t added the bugfix label Jun 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants