Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 23, 2025

Updates the requirements on xattr to permit the latest version.

Release notes

Sourced from xattr's releases.

Release v1.6.1

What's Changed

This release fixes a long-standing bug where we didn't correctly handle the return value of the FreeBSD and NetBSD xattr syscalls.

On Linux (and macOS), the xattr API returns ERANGE if the result doesn't fit in the provided buffer. On FreeBSD (and NetBSD), it returns the number of bytes read even if the syscall fails to read the entire value. This library assumed FreeBSD behaved the same as Linux.

In releases prior to 1.6.0, this issue was unlikely to be encountered in practice (except at scale) because we always checked the size before we read the attribute. It was still incorrect (TOCTOU issue), but it would have required a race with someone changing the extended attributes to trigger the bug.

In 1.6.0 this issue started showing up in testing because we try reading once with a 4KiB buffer before checking the size.

Full Changelog: Stebalien/xattr@v1.6.0...v1.6.1

Commits
  • 3e1914f chore: release 1.6.1
  • 8b183b3 test: test listing more than 4096 bytes of extended attributes
  • df9ee49 fix: freebsd's xattr returns the number of bytes read
  • 99b48d8 chore: fix unused imports
  • bb2d06e chore: release 1.6.0
  • 0e2bc6e refactor: remove manual clone impl (#82)
  • eca400b refactor: cleanup bsd code (#81)
  • 03d129a feat: use a larger buffer when reading attributes (#80)
  • 1ec2f59 feat: guess the max xattr size once (#77)
  • 3ce078e ci: run tests on android (#78)
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [xattr](https://github.com/Stebalien/xattr) to permit the latest version.
- [Release notes](https://github.com/Stebalien/xattr/releases)
- [Commits](Stebalien/xattr@v0.2.0...v1.6.1)

---
updated-dependencies:
- dependency-name: xattr
  dependency-version: 1.6.1
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file rust Pull requests that update Rust code labels Oct 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant