Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: smoltcp-rs/smoltcp
base: 7faa206eff88
Choose a base ref
...
head repository: smoltcp-rs/smoltcp
compare: 1387d4011c8c
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Jun 22, 2019

  1. Fix potential unsoundness in SocketRef::into_inner()/drop().

    This didn't ever actually cause UB because the drop implementation
    should have compiled to a no-op under all conditions; `finish` is
    a part of a patchset that never got in. (Even if it didn't, the code
    should have been dynamically sound, under all but the most strict
    interpretations of Rust's aliasing requirements.)
    
    But it's still a problem, at least because there is a warning for
    this potential unsoundness that will become an error in the future.
    So everything else aside, we can't use this pattern going forward.
    
    For now, remove the Drop impl, exploiting the fact that `finish`
    is a no-op. Going forward this will likely require unsafe code, or
    some fundamental change in the way SocketRef is implemented, but
    I could not come up with any way to do it. :(
    whitequark committed Jun 22, 2019
    Configuration menu
    Copy the full SHA
    1387d40 View commit details
    Browse the repository at this point in the history