]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cpupower: Fix sscanf robustness in cpufreq-set
authorOne Thousand Gnomes <gnomes@lxorguk.ukuu.org.uk>
Tue, 17 Dec 2013 15:07:31 +0000 (15:07 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 22 Dec 2013 00:09:54 +0000 (01:09 +0100)
commit0d625059f18a97d3addf5d7523d1c7e090427dc8
treea7e19557782b5ea1c72b9721da36b4e094d69aed
parent319e2e3f63c348a9b66db4667efa73178e18b17d
cpupower: Fix sscanf robustness in cpufreq-set

The cpufreq-set tool has a missing length check. This is basically
just correctness but still should get fixed.

One of a set of sscanf problems reported by Jackie Chang

Signed-off-by: Alan Cox <alan@linux.intel.com>
[rjw: Subject]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
tools/power/cpupower/utils/cpufreq-set.c