Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reserve special pointers for
conc::hazard::State
to avoid overlappi…
…ng with pointers used in `Protect`. This commit adds a few statics, representing the special states of the hazard, thus avoiding problems like the ones partially fixed by ce10d58. This amounts to a complete fix of these issues, in the sense that you can use any value, as long as it doesn't use these objects, which would mean taking objects, you don't even control in the RO-data section and using them as trap-values, which is - if not UB - never going to happen in practice.
- Loading branch information
Showing
2 changed files
with
38 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters