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

[3.1.2 backport] CBG-3426 perform a length check on raw xattr bytes #6449

Merged
merged 1 commit into from
Sep 22, 2023

Conversation

torcolvin
Copy link
Collaborator

backports: CBG-3238 perform a length check on raw bytes (#6438)

* CBG-3238 perform a length check on raw bytes

- refactor attachment compaction tests so we can make sure that it doesn't terminate

* Add comment

* remove redundant returns

* Move error handling into getAttachmentSyncData

* PR fixup

- remove attachment compaction changes and leave only a change to avoid
  failure to mark changes if xattr length is invalid. Treat this as a
  document without xattrs in order to not fail attachment compaction
  test.
- add code to prevent overflow if xattr len is a number between 1-4
  which would cause a panic.

* Update tests

* remove test tested in separate function
@torcolvin torcolvin merged commit 42030c0 into release/3.1.2 Sep 22, 2023
@torcolvin torcolvin deleted the CBG-3426 branch September 22, 2023 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants