execfn = EXECFN.load(Relaxed);
}
- // Safety: We assume the `AT_EXECFN` value provided by the kernel is a
+ // SAFETY: We assume the `AT_EXECFN` value provided by the kernel is a
// valid pointer to a valid NUL-terminated array of bytes.
unsafe { CStr::from_ptr(execfn.cast()) }
}
pub(in super::super) fn exe_phdrs_slice() -> &'static [Elf_Phdr] {
let (phdr, phnum) = exe_phdrs();
- // Safety: We assume the `AT_PHDR` and `AT_PHNUM` values provided by the
+ // SAFETY: We assume the `AT_PHDR` and `AT_PHNUM` values provided by the
// kernel form a valid slice.
unsafe { slice::from_raw_parts(phdr.cast(), phnum) }
}
buffer.resize(cur + n, 0_u8);
}
- // Safety: We loaded from an auxv file into the buffer.
+ // SAFETY: We loaded from an auxv file into the buffer.
unsafe { init_from_auxp(buffer.as_ptr().cast()) }
}