There was an error while loading. Please reload this page.
1 parent 3a87da4 commit 3350aa0Copy full SHA for 3350aa0
1 file changed
Modules/_testexternalinspection.c
@@ -564,6 +564,16 @@ read_int(pid_t pid, uintptr_t address, int *result)
564
return 0;
565
}
566
567
+static int
568
+read_unsigned_long(pid_t pid, uintptr_t address, unsigned long *result)
569
+{
570
+ int bytes_read = read_memory(pid, address, sizeof(unsigned long), result);
571
+ if (bytes_read < 0) {
572
+ return -1;
573
+ }
574
+ return 0;
575
+}
576
+
577
static int
578
read_pyobj(pid_t pid, uintptr_t address, PyObject *ptr_addr)
579
{
@@ -694,8 +704,8 @@ parse_task_name(
694
704
return NULL;
695
705
696
706
697
- int flags;
698
- err = read_int(
707
+ unsigned long flags;
708
+ err = read_unsigned_long(
699
709
pid,
700
710
(uintptr_t)task_name_obj.ob_type + offsets->type_object.tp_flags,
701
711
&flags);
0 commit comments