commit | 598db5816664472e1649ef94b0ba4c5cc1b9f3b4 | [log] [tgz] |
---|---|---|
author | Kees Cook <keescook@chromium.org> | Thu Mar 13 16:46:00 2014 +0000 |
committer | Jonathan Cameron <jic23@kernel.org> | Sat Mar 15 14:45:14 2014 +0000 |
tree | 4b65ace56d7a9e5617dc98bd8af60986affd415c | |
parent | 24e7d7990179e5ed38e90d78d12c25fa201c618a [diff] |
iio: force snprintf for PAGE_SIZE bufs This is a tiny preventative measure to make sure we can't write beyond PAGE_SIZE on the buffers being used in sysfs for iio. There is currently no way for this to happen, but the change makes this code more robust for the future. Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org>