containers / libkrun

A dynamic library providing Virtualization-based process isolation capabilities
Apache License 2.0
807 stars 67 forks source link

console: avoid using the raw ioctl for TIOCGWINSZ #199

Closed slp closed 2 months ago

slp commented 2 months ago

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.