issues
search
rust-lang
/
unsafe-code-guidelines
Forum for discussion about what unsafe code can and can't do
https://rust-lang.github.io/unsafe-code-guidelines
Apache License 2.0
670
stars
58
forks
source link
issues
Newest
Newest
Most commented
Recently updated
Oldest
Least commented
Least recently updated
Wait, how does placing ZST statics work again?
#546
workingjubilee
opened
1 week ago
0
What about: distributed slices (linkme)
#545
CAD97
opened
1 week ago
3
deliberate UB: OOB access
#544
RalfJung
closed
2 weeks ago
0
Where does one instance of the Rust Abstract Machine end and another one start?
#543
VorpalBlade
opened
3 weeks ago
19
Will destructors create `&mut` references only when `Drop::drop()` is called?
#542
theemathas
opened
3 weeks ago
2
Are long-lived references to thread_local variables allowed?
#541
theemathas
opened
3 weeks ago
4
Is pattern evaluation order guaranteed?
#540
zachs18
opened
3 weeks ago
0
Stabilize having the concept of "validity invariant" and "safety invariant"? Under which name?
#539
RalfJung
opened
1 month ago
2
update the docs for layout guarantees of option-like enums
#538
RalfJung
closed
3 days ago
5
How can I tell the Rust compiler `&mut [u8]` has changed after a DMA operation
#537
schultetwin1
opened
1 month ago
41
Confusion of retagging in the blog stacked-borrows-implementation
#536
hanayashiki
closed
1 month ago
1
What are the special magic rules around `malloc`?
#535
RalfJung
opened
1 month ago
9
What memory is the Global allocator allowed to access
#534
jwong101
closed
1 month ago
8
Minimum guarantees for union construction and typed copies?
#533
joshlf
opened
1 month ago
1
What about: aliasing requirements for nested references?
#532
oxalica
opened
1 month ago
5
Is there a way to soundly implement racy read/writes as used in Chase/Lev deques?
#531
anp
closed
1 month ago
6
Do the current nightly `std::ptr` docs violate provenance monotonicity?
#530
joshlf
opened
2 months ago
1
Do ZST `Box`es violate provenance monotonicity?
#529
joshlf
closed
2 months ago
4
Can FFI code use `memory_order_consume`
#528
chorman0773
opened
3 months ago
9
Can uninitialized memory come from the outside world?
#527
ChayimFriedman2
opened
3 months ago
4
What are the requirements for unloading a library (`dlclose`)?
#526
VorpalBlade
opened
3 months ago
8
What are the soundness requirements for `dlopen`?
#525
RalfJung
opened
3 months ago
40
Is it UB to have a mutable reference that could be misused, or simply to misuse it?
#524
clarfonthey
closed
3 months ago
4
How do aliasing model protectors interact with tail calls?
#523
RalfJung
opened
3 months ago
5
What do we say about the equality of pointers in constants, vtables, and function pointers?
#522
RalfJung
opened
3 months ago
19
repr(C) does not always match the current target's C toolchain (when that target is windows-msvc)
#521
RalfJung
opened
3 months ago
7
What are the operational semantics of unsized locals?
#520
RalfJung
opened
3 months ago
4
If a Pin is changed to point to a different location, what happens?
#519
theemathas
opened
3 months ago
3
Should we / can we make MaybeUninit<T> always preserve all bytes of T?
#518
RalfJung
opened
3 months ago
19
Packing pointers into double-word width atomics
#517
eggyal
opened
4 months ago
48
What are the validity requirements of wide pointers/references with `dyn Trait` tail?
#516
RalfJung
opened
4 months ago
1
Should we have a way to give functions a stable address?
#515
RalfJung
opened
4 months ago
5
Is it UB to change a non-`mut` `extern static`?
#514
ChayimFriedman2
closed
4 months ago
3
Validity of a `char` value that is a surrogate
#513
celinval
closed
4 months ago
16
Should we have a language concept of erroneous behavior?
#512
CAD97
opened
6 months ago
7
Should closures implicitly be wrapped in `MaybeDangling`?
#511
RalfJung
opened
6 months ago
4
Decide on validity for metadata of wide pointer/reference with slice tail
#510
RalfJung
closed
6 months ago
23
Are &mut references that point to read only memory but are never written to undefined behavior
#509
gmorenz
closed
6 months ago
3
Is `usize::MAX` an allocatable address?
#508
CAD97
closed
6 months ago
6
LLVM integer/pointer casts are unreliable and observably disagree with the intended Rust semantics
#507
joboet
opened
7 months ago
2
Who is responsible for preventing reentrancy issues through the allocator?
#506
RalfJung
opened
7 months ago
10
Better documentation needed: reentrancy through the panic hook
#505
RalfJung
opened
7 months ago
3
When are `static` symbols guaranteed to show up in the final binary?
#504
RalfJung
opened
7 months ago
11
What are the guarantees over ZST pointers
#503
celinval
closed
7 months ago
11
What's the source of immutability for pointers produced by `const`?
#502
RalfJung
opened
7 months ago
19
Tree Borrows: Two-phase borrows + interior mutability have surprising interactions
#501
RalfJung
opened
8 months ago
15
Dead variant removal in `#[repr(C)]` enums
#500
GoldsteinE
closed
2 months ago
4
Is String allowed to switch to a small-string optimization?
#499
Manishearth
opened
8 months ago
10
add note on Stacked Borrows issues and why they are hard to fix
#498
RalfJung
closed
8 months ago
0
Provenance: storing to/loading from arbitrary addresses in an interpreter's registers
#497
anp
closed
8 months ago
41
Next