misc: tegra-profiler: fix out-of-bounds access
authorIgor Nabirushkin <inabirushkin@nvidia.com>
Tue, 4 Jul 2017 05:53:45 +0000 (08:53 +0300)
committerIgor Nabirushkin <inabirushkin@nvidia.com>
Tue, 8 Aug 2017 14:23:07 +0000 (17:23 +0300)
commitae8fb9ec1dd9fb4af584358d6fcf0bb12c0b0fd4
treef6820bd96f8e49f1dbbd11a4e63726f373c92f0f
parent4a21d4934317c9f11a5ca1b1ae862dfa000cd14d
misc: tegra-profiler: fix out-of-bounds access

Fix potential out-of-bounds write in read_all_sources() function
that can lead to data corruption.
This commit fixes the problem (the array size is increased by 1).

Bug 1953704

Change-Id: Iac6c54dfbd13b7ebef20de67f60cd3281e13814c
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: https://git-master/r/1512895
(cherry picked from commit 38c82f0ff897d6a8b9f5d0793f113a09d229a0cc)
drivers/misc/tegra-profiler/hrt.c