about summary refs log tree commit diff
path: root/src/liballoc/tests
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2019-10-06 23:45:25 +0200
committerSimon Sapin <simon.sapin@exyr.org>2019-10-06 23:48:55 +0200
commit23d3ff1b9756c768c4412dcd1d80cff0617fd5c5 (patch)
tree3dfa942bea1445703fc9873ffccdf3282c44d023 /src/liballoc/tests
parent421bd77f42c2fe8a2596dbcc1580ec97fb89009f (diff)
downloadrust-23d3ff1b9756c768c4412dcd1d80cff0617fd5c5.tar.gz
rust-23d3ff1b9756c768c4412dcd1d80cff0617fd5c5.zip
Fix zero-size uninitialized boxes
Requesting a zero-size allocation is not allowed,
return a dangling pointer instead.

CC https://github.com/rust-lang/rust/issues/63291#issuecomment-538692745
Diffstat (limited to 'src/liballoc/tests')
0 files changed, 0 insertions, 0 deletions