gallium/aux/hud: Avoid possible buffer overflow
authorGert Wollny <gw.fossdev@gmail.com>
Wed, 28 Feb 2018 13:50:21 +0000 (14:50 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 5 Mar 2018 16:38:28 +0000 (11:38 -0500)
commit9a0d7bb48c93e7d0109751469a8b32c94e85bc24
tree6ff3e08e184f7c2495c9b395a7b25da9cd72fac6
parentb98c905a463a1915fd15861ad2d0af180ad605ac
gallium/aux/hud: Avoid possible buffer overflow

Limit the length of acceptable cpu names for use in hud_get_num_cpufreq
in order to avoid a buffer overflow later in add_object when this name
is copied into cpufreq_info::name.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105274
Signed-off-by: Gert Wollny <gw.fossdev@gmail.com>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/hud/hud_cpufreq.c