Re: [PATCH] iio: force snprintf for PAGE_SIZE bufs

2014-03-15 Thread Jonathan Cameron
On 13/03/14 16:46, Kees Cook wrote: 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 A

Re: [PATCH] iio: force snprintf for PAGE_SIZE bufs

2014-03-15 Thread Jonathan Cameron
On 13/03/14 16:46, Kees Cook wrote: 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

[PATCH] iio: force snprintf for PAGE_SIZE bufs

2014-03-13 Thread Kees Cook
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 --- drivers/iio/industrialio-core.c |

[PATCH] iio: force snprintf for PAGE_SIZE bufs

2014-03-13 Thread Kees Cook
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 keesc...@chromium.org ---