Skip to content

v2.0.4

Compare
Choose a tag to compare
@Byron Byron released this 23 Jan 01:00
· 179 commits to master since this release
c7edcb1

We detected the possibility of UB in the Linux and FreeBSD versions of get_mount_points() and reduced the likelihood
of it happening in a multi-threaded environment by synchronizing access. You can read more about the state of
a more permanent fix in the tracking issue.

All previous 2.0.* releases which contained this function were yanked from crates-io.

Fixes

  • Make internal get_mount_points() thread-safe to reduce chance of UB greatly.
    This may reduce performance of crates that are using trash from multiple threads somewhat, as a part of the operation
    is now synchronized.
  • Fix build on FreeBSD, handle UB similarly to the above.

Commit Statistics

  • 9 commits contributed to the release over the course of 30 calendar days.
  • 30 days passed between releases.
  • 0 commits where understood as conventional.
  • 0 issues like '(#ID)' where seen in commit messages

Commit Details

view details
  • Uncategorized
    • Prepare changelog for next release (b65f574)
    • Add Mutex to linux version of get_mount_points(); document UB chance in lib.rs (c5c9c5e)
    • Use Mutex to prevent concurrent access to getmntinfo (5c8e0ce)
    • Merge pull request #43 from wezm/num-threads-freebsd (8f10c85)
    • Fix build on FreeBSD after refactor (f3d31e5)
    • Use num_threads() to avoid UB in FreeBSD version of get_mount_points() (3c153ae)
    • refactor (92ab7b9)
    • Add BSD compatible implementation of get_mount_points (82d2132)
    • Run cargo-diet for a more minimal crates package (561f21d)