Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

console: avoid using the raw ioctl for TIOCGWINSZ #199

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

slp
Copy link
Contributor

@slp slp commented Jun 19, 2024

Using the raw ioctl can cause UB that manifest on some versions of the compiler. Use nix's ioctl_read_bad to generate a proper ioctl wrapper.

Using the raw ioctl can cause UB that manifest on some versions of the
compiler. Use nix's ioctl_read_bad to generate a proper ioctl wrapper.

Signed-off-by: Sergio Lopez <slp@redhat.com>
@slp slp merged commit 67e8ccd into containers:main Jun 19, 2024
5 checks passed
@slp slp deleted the fix-sigwinch branch June 19, 2024 15:19
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