Use the overflow helpers both in existing multiplication-using inlines as well as the addition-overflow case in the core allocation routine. Signed-off-by: Kees Cook <keescook@chromium.org> (cherry picked from commit 2509b561f7c6599907c08cb364c86b8c45466e4f) 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>
53 KiB
53 KiB