Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix type
  • Loading branch information
pablogsal committed Jan 23, 2025
commit 3350aa0ff9f834ad403a2550fe60258c4ad01ff0
14 changes: 12 additions & 2 deletions Modules/_testexternalinspection.c
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,16 @@ read_int(pid_t pid, uintptr_t address, int *result)
return 0;
}

static int
read_unsigned_long(pid_t pid, uintptr_t address, unsigned long *result)
{
int bytes_read = read_memory(pid, address, sizeof(unsigned long), result);
if (bytes_read < 0) {
return -1;
}
return 0;
}

static int
read_pyobj(pid_t pid, uintptr_t address, PyObject *ptr_addr)
{
Expand Down Expand Up @@ -694,8 +704,8 @@ parse_task_name(
return NULL;
}

int flags;
err = read_int(
unsigned long flags;
err = read_unsigned_long(
pid,
(uintptr_t)task_name_obj.ob_type + offsets->type_object.tp_flags,
&flags);
Expand Down