]> git.ipfire.org Git - thirdparty/kmod.git/commit
Avoid sign-extension error on multiplication
authorLucas De Marchi <lucas.demarchi@intel.com>
Sat, 28 Feb 2015 19:07:55 +0000 (16:07 -0300)
committerLucas De Marchi <lucas.demarchi@intel.com>
Sat, 28 Feb 2015 19:07:55 +0000 (16:07 -0300)
commitd98f2d32d1e663bfb7a069a1623de15df6be765d
tree38fce0798e261c1a2751081fdd003d29394d9a9e
parent22df456760cf9e42302235c82125c2eb578050b2
Avoid sign-extension error on multiplication

Do not promote "idx * elf->header.section.entry_size" to int. Explicitly
cast the result to uint64_t so it's zero-extended.
libkmod/libkmod-elf.c