setmetamode: use unsigned int type for KDGKBMETA / KDSKBMETA

alsauser@pragmasoft.com reported that he detected a stack smash
and analyzed the problem as allocating too little space for
the resulting put_user after calling ioctl KDGKBMETA.
The ometa variable should be defined as unsigned int.

While at it and for correctness, also nmeta and thus the
val member of the struct meta where changed to unsigned
int as it seems the kernel wants to take this type
(but should be harmless to use char).

Original bug report at https://bugs.debian.org/872623
1 file changed
tree: 0c8d9947adecfbf9041ce4e09dd68d4ca7ee47cf
  1. .clang-format
  2. .gitignore
  3. .travis.yml
  4. ABOUT-NLS
  5. AUTHORS
  6. COPYING
  7. CREDITS
  8. ChangeLog
  9. INSTALL
  10. Makefile.am
  11. NEWS
  12. README.md
  13. autogen.sh
  14. config/
  15. configure.ac
  16. contrib/
  17. data/
  18. docs/
  19. m4/
  20. po/
  21. rc/
  22. src/
  23. tests/
README.md

KBD Build Status

This package contains tools for managing Linux console (Linux console, virtual terminals, keyboard, etc.) – mainly, what they do is loading console fonts and keyboard maps.

This distribution contains no binaries - the sources depend on the kernel version - compile them yourself.

The home site of this package:

The latest stable version of kbd can always be found on:

Contributing

See also howto-contribute.

Web interface:

Checkout:

git clone git://git.kernel.org/pub/scm/linux/kernel/git/legion/kbd.git

NLS (PO TRANSLATIONS)

PO files are maintained by: https://translationproject.org/domain/kbd.html

LICENSE

Kbd is licensed under the GNU General Public License (GPL), version 2, or at your option any later version.

BUG REPORTING

Report problems with this package to the mailing list or to the Alexey Gladkov <gladkov.alexey AT gmail DOT com>.