Skip to content

Conversation

@SteveLauC
Copy link
Member

What does this PR do

impl From<libc::sigaction> for SigAction is unsafe since there is no guarantee on the values stored in libc::sigaction, revert the implementation added in #2326.

Issue #2327 still needs to be resolved, some thoughts on it:

  1. impl TryFrom and check the values to ensure they are valid
  2. Define unsafe traits like unsafe trait UnsafeFrom/UnsafeInto

cc @AzariasB

Checklist:

  • I have read CONTRIBUTING.md
  • I have written necessary tests and rustdoc comments
  • A change log has been added if this PR modifies nix's API

@SteveLauC SteveLauC added this pull request to the merge queue May 19, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 19, 2024
@SteveLauC SteveLauC added this pull request to the merge queue May 19, 2024
Merged via the queue into nix-rust:master with commit 1604723 May 19, 2024
@SteveLauC SteveLauC deleted the revert/impl_From_libc_sigaction_for_SigAction branch May 19, 2024 02:10
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.

2 participants