rust-x-bindings / xkbcommon-rs

bindings and safe wrappers for libxkbcommon
MIT License
20 stars 24 forks source link

`xkb::Keymap::new_from_fd` should be unsafe #19

Closed i509VCB closed 2 years ago

i509VCB commented 2 years ago

xkb::State::new_from_fd should be unsafe per the requirements of mapping memory since an invalid file descriptor could be passed in or the file descriptor will be owned in multiple places.