Skip to content

Conversation

@BradleyKirton
Copy link

Hi there 👋

I encountered a runtime exception in invoke/terminals.py::bytes_to_read on Python 3.14.

I believe the issue is because the original version passed the incorrect sized arg to fcntl.ioctl.

gh-132915: [fcntl.fcntl()](https://docs.python.org/3/library/
fcntl.html#fcntl.fcntl) and fcntl.ioctl() can now detect a buffer overflow and raise SystemError. The stack and memory can be corrupted in such case, so treat this error as fatal.

See python/cpython#132915

I have created this PR which provides correctly sized arg.

@BradleyKirton BradleyKirton force-pushed the main branch 2 times, most recently from e1e5d11 to 9c51496 Compare November 25, 2025 10:48
Fix buffer overflow error in invoke/terminals.py::bytes_to_read by providing
correctly sized int.
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