Closed

Description
#[cfg(unix)]
impl Drop for MemoryMap {
/// Unmap the mapping. Fails the task if `munmap` fails.
fn drop(&mut self) {
if self.len == 0 { /* workaround for dummy_stack */ return; }
unsafe {
// FIXME: what to do if this fails?
let _ = libc::munmap(self.data as *c_void, self.len as libc::size_t);
}
}
}
Same for Windows. Crypto needs this guarantee to protect sensitive data.
Metadata
Metadata
Assignees
Labels
No labels