mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-12 02:30:30 +09:00
Kernel: Use Userspace<T> for the execve syscall
This commit is contained in:
parent
025a2a3c5b
commit
0f42463eab
Notes:
sideshowbarker
2024-07-19 04:06:27 +09:00
Author: https://github.com/bgianfo
Commit: 0f42463eab
Pull-request: https://github.com/SerenityOS/serenity/pull/3062
Reviewed-by: https://github.com/awesomekling
5 changed files with 8 additions and 8 deletions
|
@ -957,7 +957,7 @@ int Emulator::virt$execve(FlatPtr params_addr)
|
|||
auto copy_string_list = [this](auto& output_vector, auto& string_list) {
|
||||
for (size_t i = 0; i < string_list.length; ++i) {
|
||||
Syscall::StringArgument string;
|
||||
mmu().copy_from_vm(&string, (FlatPtr)&string_list.strings[i], sizeof(string));
|
||||
mmu().copy_from_vm(&string, (FlatPtr)&string_list.strings.ptr()[i], sizeof(string));
|
||||
output_vector.append(String::copy(mmu().copy_buffer_from_vm((FlatPtr)string.characters, string.length)));
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue