]> git.lizzy.rs Git - rust.git/commit
Fix undefined behavior in Rc/Arc allocation
authorMurarth <murarth@gmail.com>
Mon, 8 Oct 2018 23:52:48 +0000 (16:52 -0700)
committerMurarth <murarth@gmail.com>
Mon, 5 Nov 2018 17:33:30 +0000 (10:33 -0700)
commitd60290fc63bcc19714abb7fad2c01cf2efe91efa
treef8926a8ec0f16f2b0b6e8f8307f23008f50e7bcf
parent423d8109868c1f926f2cfcc3bff980c3daa515fd
Fix undefined behavior in Rc/Arc allocation

Manually calculate allocation layout for `Rc`/`Arc` to avoid undefined behavior
src/liballoc/rc.rs
src/liballoc/sync.rs