about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2016-03-26 09:07:22 +0530
committerManish Goregaokar <manishsmail@gmail.com>2016-03-26 13:42:04 +0530
commitd36cb2209f1b22b8b587ad128fb094156092aad8 (patch)
treeebf943517d37e1ff58ced6ba3e0c6dde224e3a97 /src/rustllvm/RustWrapper.cpp
parente3e58247a3fbcd861c172a7311923116b1125ffd (diff)
parent78495d5082f51a2737619824548c9f2407b12a2b (diff)
downloadrust-d36cb2209f1b22b8b587ad128fb094156092aad8.tar.gz
rust-d36cb2209f1b22b8b587ad128fb094156092aad8.zip
Rollup merge of #32476 - diwic:63-null-thread-name, r=alexcrichton
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.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions