Re: [PATCH 1/2] lib: Fix strnlen_user() to not touch memory after specified maximum

From: Linus Torvalds
Date: Tue Jun 02 2015 - 13:10:44 EST


On Tue, Jun 2, 2015 at 8:10 AM, Jan Kara <jack@xxxxxxx> wrote:
>
> Fix the off-by-one bug in the test whether we are at the end of the
> specified range.

Ack. I'll apply it with an added comment.

Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/