From: Kees Cook Date: Thu, 13 Mar 2014 16:46:00 +0000 (+0000) Subject: iio: force snprintf for PAGE_SIZE bufs X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~36^2~1228^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=598db5816664472e1649ef94b0ba4c5cc1b9f3b4;p=pandora-kernel.git 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 Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed