Skip to content

fix(ptrace): resolve OverflowError on riscv64 FTBFS#93

Open
shivamsinghydv wants to merge 1 commit into
vstinner:mainfrom
shivamsinghydv:fix-riscv64-ftbfs
Open

fix(ptrace): resolve OverflowError on riscv64 FTBFS#93
shivamsinghydv wants to merge 1 commit into
vstinner:mainfrom
shivamsinghydv:fix-riscv64-ftbfs

Conversation

@shivamsinghydv

Copy link
Copy Markdown

Replace the signed c_long conversion with unsigned comparison against c_ulong(-1), as _ptrace.restype is already c_ulong. Large unsigned ptrace return values (which is common on riscv64) were overflowing the signed conversion.

Fixes #1087588

Replace the signed c_long conversion with unsigned comparison against
c_ulong(-1), as  _ptrace.restype is already c_ulong. Large unsigned
ptrace return values (which is common on riscv64) were overflowing
the signed conversion.

Fixes #1087588
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant