Skip to content
Snippets Groups Projects

Fix invalid memory reference in signal and sigaction

Merged AdminXVII requested to merge fix-signal into master

At this line, https://gitlab.redox-os.org/redox-os/relibc/blob/master/src/header/signal/mod.rs#L96 the map call moves the newly created sigaction struct, making the reference instantly invalid. This was causing segmentation faults when using the signal and sigaction functions.

Convert pointers to Option of reference upon reception to avoid those problems. And since the functions now work, add tests for them.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply