]> git.ipfire.org Git - thirdparty/kmod.git/commit
Fix out of bounds signature access with 32 bit off_t
authorTobias Stoeckmann <tobias@stoeckmann.org>
Sat, 14 Feb 2015 23:35:47 +0000 (00:35 +0100)
committerLucas De Marchi <lucas.demarchi@intel.com>
Wed, 18 Feb 2015 17:49:10 +0000 (15:49 -0200)
commit40ef6e69bb13522b961767d81f44aec0e83a7462
tree5a5a66fe84547b1394f59a343381abd488a69162
parent249dc5909b09db72cc8958b382d8393235b70afd
Fix out of bounds signature access with 32 bit off_t

If kmod has been configured with --disable-largefile on a 32 bit
system, off_t will be 32 bit. In that case, the parsed sig_len can
bypass a validation check (it's _unsigned_ 32 bit).

Due to the unlikeliness of people using --disable-largefile, this is
a mere validation fix. With an explicit signed 64 bit cast, there is
no binary change for 99.9% of Linux systems out there. ;)
libkmod/libkmod-signature.c