Bug report
Bug description:
import fcntl
import termios
with open('/dev/tty', 'rb') as fd:
fcntl.ioctl(fd, termios.TIOCGPGRP, b'', True)
fcntl.ioctl(fd, termios.TIOCGPGRP, b'', True)
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SystemError: buffer overflow
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux