We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
cygwin_conv_path
1 parent d75c599 commit 5a380adCopy full SHA for 5a380ad
src/symbolize/gimli/libs_windows.rs
@@ -65,12 +65,11 @@ unsafe fn get_posix_path(long_path: &[u16]) -> Option<OsString> {
65
66
// If `size` is 0, returns needed buffer size, including null terminator;
67
// or -1 if error.
68
- // Safety: **Confirmed from source:** If `size` is 0, `to` is not used.
69
let name_len = unsafe {
70
cygwin_conv_path(
71
CCP_WIN_W_TO_POSIX,
72
long_path.as_ptr().cast(),
73
- core::ptr::null_mut(),
+ 8 as *mut libc::c_void, // Avoid being null, and align enough
74
0,
75
)
76
};
0 commit comments