aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorKent Gibson <warthog618@gmail.com>2023-06-06 20:00:34 +0800
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>2023-06-06 17:02:34 +0200
commit95ae9979bfe3174c2ee8d64409c44532f2881907 (patch)
treeea385fe41449603594bd8aadd1c83464aaebbccc /tools/perf/scripts/python/check-perf-trace.py
parent9561de3a55bed6bdd44a12820ba81ec416e705a7 (diff)
gpio: sim: fix memory corruption when adding named lines and unnamed hogs
When constructing the sim, gpio-sim constructs an array of named lines, sized based on the largest offset of any named line, and then initializes that array with the names of all lines, including unnamed hogs with higher offsets. In doing so it writes NULLs beyond the extent of the array. Add a check that only named lines are used to initialize the array. Fixes: cb8c474e79be ("gpio: sim: new testing module") Signed-off-by: Kent Gibson<warthog618@gmail.com> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions