about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-12-04 21:32:34 -0800
committerAlex Crichton <alex@alexcrichton.com>2014-12-08 14:29:24 -0800
commitdaafff508c24a721fa38112563de518af63539e7 (patch)
treeaff56e3b5950be69e56f391f0b6c3b6507bcf357 /src/libstd/sys/unix/stack_overflow.rs
parent361baabb07b2fb921d0f556d0787b3ea7ef86746 (diff)
downloadrust-daafff508c24a721fa38112563de518af63539e7.tar.gz
rust-daafff508c24a721fa38112563de518af63539e7.zip
rustc: Prepend a length to all metadata
One of the causes of #19501 was that the metadata on OSX was getting corrupted.
For any one particular invocation of the compiler the metadata file inside of an
rlib archive would have extra bytes appended to the end of it. These extra bytes
end up confusing rbml and have it run off the end of the array (resulting in the
out of bounds detected).

This commit prepends the length of metadata to the start of the metadata to
ensure that we always slice the precise amount that we want, and it also
un-ignores the test from #19502.

Closes #19501
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions