fix writing to read-only raw pointer in thread-local test
This commit is contained in:
parent
80a0a12b07
commit
f936bc6b92
@ -58,7 +58,7 @@ fn main() {
|
||||
// Initialize the keys we use to check destructor ordering
|
||||
for (key, global) in KEYS.iter_mut().zip(GLOBALS.iter_mut()) {
|
||||
*key = create(Some(mem::transmute(dtor as unsafe extern fn(*mut u64))));
|
||||
set(*key, global as *const _ as *mut _);
|
||||
set(*key, global as *mut _ as *mut u8);
|
||||
}
|
||||
|
||||
// Initialize cannary
|
||||
|
Loading…
x
Reference in New Issue
Block a user