]> git.ipfire.org Git - thirdparty/kmod.git/commit
modname_normalize: fix const and buffer overflow.
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Thu, 8 Dec 2011 06:10:49 +0000 (04:10 -0200)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Thu, 8 Dec 2011 15:33:25 +0000 (13:33 -0200)
commite1a6b30dc495c46c14fd9ed7b7a1807858d0d08e
tree4cba081db161fb4782a7a67aad60bfa8a9870c07
parent8fc83fe1de2941e1eb0cec1b3b68fbcc14f82f02
modname_normalize: fix const and buffer overflow.

"buf[NAME_MAX] = value" is invalid since it would access the byte
right after the array.

Also fix the const of modname, do not mess with it to avoid mistakes.
libkmod/libkmod-module.c