about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-12-09 21:56:13 +0000
committerbors <bors@rust-lang.org>2014-12-09 21:56:13 +0000
commit8fbfa66b4591023d54d885fff9cdf889393af109 (patch)
treee83c1ade6b92a43ae1f3e3f16087893a61988f43 /src/libstd/sys/unix/stack_overflow.rs
parentb25e100173effba685d076cee16f8af150078617 (diff)
parentdaafff508c24a721fa38112563de518af63539e7 (diff)
downloadrust-8fbfa66b4591023d54d885fff9cdf889393af109.tar.gz
rust-8fbfa66b4591023d54d885fff9cdf889393af109.zip
auto merge of #19563 : alexcrichton/rust/issue-19501, r=pnkfelix
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