kernel/exec: Rename item to string_addr
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
7f50893786
commit
0b00dc3fe4
@ -16,13 +16,13 @@ static Result<Vector<OwnedStringView>> copy_string_vector_from_userspace(u64 add
|
||||
|
||||
const u64* user_vector = (const u64*)address;
|
||||
|
||||
u64 item;
|
||||
u64 string_addr;
|
||||
while (true)
|
||||
{
|
||||
if (!MemoryManager::copy_from_user_typed(user_vector, &item)) return err(EFAULT);
|
||||
if (!item) break;
|
||||
if (!MemoryManager::copy_from_user_typed(user_vector, &string_addr)) return err(EFAULT);
|
||||
if (!string_addr) break;
|
||||
|
||||
auto string = TRY(MemoryManager::strdup_from_user(item));
|
||||
auto string = TRY(MemoryManager::strdup_from_user(string_addr));
|
||||
TRY(result.try_append(move(string)));
|
||||
user_vector++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user