linux/drivers/base/power/opp
Viresh Kumar 5ff24d6010 PM / OPP: Use snprintf() instead of sprintf()
sprintf() can access memory outside of the range of the character array,
and is risky in some situations. The driver specified prop_name string
can be longer than NAME_MAX here (only an attacker will do that though)
and so blindly copying it into the character array of size NAME_MAX
isn't safe. Instead we must use snprintf() here.

Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2016-01-06 02:38:27 +01:00
..
core.c PM / OPP: Use snprintf() instead of sprintf() 2016-01-06 02:38:27 +01:00
cpu.c PM / OPP: Set cpu_dev->id in cpumask first 2016-01-02 00:48:11 +01:00
debugfs.c PM / OPP: Add debugfs support 2015-11-23 23:38:23 +01:00
Makefile PM / OPP: Add debugfs support 2015-11-23 23:38:23 +01:00
opp.h PM / OPP: Parse 'opp-<prop>-<name>' bindings 2015-12-10 23:08:51 +01:00