Skip to content
Commit 81409e9e authored by Kees Cook's avatar Kees Cook
Browse files

usercopy: fold builtin_const check into inline function



Instead of having each caller of check_object_size() need to remember to
check for a const size parameter, move the check into check_object_size()
itself. This actually matches the original implementation in PaX, though
this commit cleans up the now-redundant builtin_const() calls in the
various architectures.

Signed-off-by: default avatarKees Cook <keescook@chromium.org>
parent e6971009
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment