summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2022-08-27 07:32:23 +0000
committerSebastian Reichel <sre@kernel.org>2022-09-11 12:18:59 +0200
commit9d47e01b9d807808224347935562f7043a358054 (patch)
treec529c100f9605a713477c4e4662d260326988cb6 /tools/perf/scripts/python/export-to-postgresql.py
parent3eb7508d0bad13c2c4272fe30adfb02190294290 (diff)
power: supply: adp5061: fix out-of-bounds read in adp5061_get_chg_type()
ADP5061_CHG_STATUS_1_CHG_STATUS is masked with 0x07, which means a length of 8, but adp5061_chg_type array size is 4, may end up reading 4 elements beyond the end of the adp5061_chg_type[] array. Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Acked-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions