x86_64: Fix strnlen_user() to not touch memory after specified maximum
Inspired by commit f18c34e4 ("lib: Fix strnlen_user() to not touch memory after specified maximum") upstream. This version of strnlen_user(), no longer present upstream, has a similar off-by-one error. Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Cc: Jan Kara <jack@suse.cz>
Showing
Please register or sign in to comment