There was an error while loading. Please reload this page.
1 parent 7d52b2a commit 3ae4456Copy full SHA for 3ae4456
1 file changed
src/symbolize/dbghelp.rs
@@ -245,8 +245,8 @@ unsafe fn do_resolve(
245
// the real value.
246
// SAFETY: We assume NameLen has been initialized by SymFromAddrW, and we initialized MaxNameLen
247
let name_len = unsafe { cmp::min((*info).NameLen as usize, (*info).MaxNameLen as usize - 1) };
248
- // Name must be initialized by SymFromAddrW, but we only interact with it as a pointer anyways.
249
- let name_ptr = (&raw const (*info).Name).cast::<u16>();
+ // SAFETY: Name must be initialized by SymFromAddrW, but we only interact with it as a pointer anyways.
+ let name_ptr = unsafe { (&raw const (*info).Name).cast::<u16>() };
250
251
// Reencode the utf-16 symbol to utf-8 so we can use `SymbolName::new` like
252
// all other platforms
0 commit comments