linux-stable/drivers/thermal
Guenter Roeck 79a49168b5 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 <linux@roeck-us.net>
Cc: Len Brown <lenb@kernel.org>
Cc: "Brown, Len" <len.brown@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
2012-09-24 14:44:37 +08:00
..
Kconfig drivers/thermal/spear_thermal.c: add Device Tree probing capability 2012-06-02 01:49:38 -04:00
Makefile thermal: add support for thermal sensor present on SPEAr13xx machines 2012-03-22 01:05:32 -04:00
spear_thermal.c Thermal: Remove tc1/tc2 in generic thermal layer. 2012-09-24 14:44:36 +08:00
thermal_sys.c thermal: fix potential out-of-bounds memory access 2012-09-24 14:44:37 +08:00