• Andreas Henriksson's avatar
    setmetamode: use unsigned int type for KDGKBMETA / KDSKBMETA · 6613abc2
    Andreas Henriksson authored
    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
    6613abc2
Name
Last commit
Last update
config Loading commit data...
contrib Loading commit data...
data Loading commit data...
docs Loading commit data...
m4 Loading commit data...
po Loading commit data...
rc Loading commit data...
src Loading commit data...
tests Loading commit data...
.clang-format Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
ABOUT-NLS Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
ChangeLog Loading commit data...
INSTALL Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README Loading commit data...
README.md Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...