diff options
| author | Björn Steinbrink <bsteinbr@gmail.com> | 2016-01-28 21:54:09 +0100 |
|---|---|---|
| committer | Björn Steinbrink <bsteinbr@gmail.com> | 2016-01-29 14:19:55 +0100 |
| commit | fdf65e719c29353bbc70313107f511b58af49022 (patch) | |
| tree | 3358e2a654d234ccc581a8944049b11403dd4409 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | 7bd87c1f1b8afabcf1bafa14dd13c59f00b4f4be (diff) | |
| download | rust-fdf65e719c29353bbc70313107f511b58af49022.tar.gz rust-fdf65e719c29353bbc70313107f511b58af49022.zip | |
Fix truncated drop pattern on 32bit -> 64bit cross compilation
When cross compiling for a target that has a larger usize type than the host system, we use a truncated value to mark data as dropped, eventually leading to drop calls on already dropped data. To properly handle this, the drop pattern needs to be of type u64. Since C_integral truncates its given value to the requested size anyway, we can also drop the function that chose between the u32 and u64 values, and always use the u64 constant. Fixes #31139
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
