Instead of open-coded multiplication and bounds checking, use the new overflow helper. Additionally prepare for vmalloc() users to add array_size()-family helpers in the future. Signed-off-by: Kees Cook <keescook@chromium.org> (cherry picked from commit 3b3b1a29eb89ba93f91213cbebb332a2ac31fa8b) Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: Adam W. Willis <return.of.octobot@gmail.com> Signed-off-by: Fiqri Ardyansyah <fiqri15072019@gmail.com>
7.2 KiB
7.2 KiB