From: Insu Yun Date: Wed, 6 Jan 2016 17:44:01 +0000 (-0500) Subject: ipr: Fix out-of-bounds null overwrite X-Git-Tag: v3.2.79~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=caf4c8db59e82f8bc3ed516e25d32f488c7db868;p=pandora-kernel.git ipr: Fix out-of-bounds null overwrite commit d63c7dd5bcb9441af0526d370c43a65ca2c980d9 upstream. Return value of snprintf is not bound by size value, 2nd argument. (https://www.kernel.org/doc/htmldocs/kernel-api/API-snprintf.html). Return value is number of printed chars, can be larger than 2nd argument. Therefore, it can write null byte out of bounds ofbuffer. Since snprintf puts null, it does not need to put additional null byte. Signed-off-by: Insu Yun Reviewed-by: Shane Seymour Signed-off-by: Martin K. Petersen Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed