about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorDavid Henningsson <diwic@ubuntu.com>2016-03-25 05:46:45 +0100
committerDavid Henningsson <diwic@ubuntu.com>2016-03-25 06:14:03 +0100
commit78495d5082f51a2737619824548c9f2407b12a2b (patch)
tree2ed3ee0b3bf4b4fc323edfbaaaae445c94f915e9 /src/rustllvm/RustWrapper.cpp
parentd7a71687ef1a9fa5665944608d5bad58d98a9684 (diff)
downloadrust-78495d5082f51a2737619824548c9f2407b12a2b.tar.gz
rust-78495d5082f51a2737619824548c9f2407b12a2b.zip
Fix unsound behaviour with null characters in thread names (issue #32475)
Previously, the thread name (&str) was converted to a CString in the
new thread, but outside unwind::try, causing a panic to continue into FFI.

This patch changes that behaviour, so that the panic instead happens
in the parent thread (where panic infrastructure is properly set up),
not the new thread.

This could potentially be a breaking change for architectures who don't
support thread names.

Signed-off-by: David Henningsson <diwic@ubuntu.com>
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions