From: Guenter Roeck Date: Sat, 21 Jul 2012 00:53:48 +0000 (+1000) Subject: thermal: fix potential out-of-bounds memory access X-Git-Tag: v3.7-rc1~12^2^3^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79a49168b595f5400ed3108cd57e90f5bbe144ca;p=pandora-kernel.git thermal: fix potential out-of-bounds memory access temp_crit.name and temp_input.name have a length of 16 bytes. Using THERMAL_NAME_LENGTH (20) as length parameter for snprintf() may result in out-of-bounds memory accesses. Replace it with sizeof(). Addresses Coverity #115679 Signed-off-by: Guenter Roeck Cc: Len Brown Cc: "Brown, Len" Signed-off-by: Andrew Morton Signed-off-by: Zhang Rui --- Reading git-diff-tree failed