summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/arm-cs-trace-disasm.py
diff options
context:
space:
mode:
authorVikash Garodia <quic_vgarodia@quicinc.com>2025-02-20 22:50:09 +0530
committerHans Verkuil <hverkuil@xs4all.nl>2025-03-03 18:21:55 +0100
commit9edaaa8e3e15aab1ca413ab50556de1975bcb329 (patch)
tree15b53c4072086a55095549b5be8141987e0b8051 /tools/perf/scripts/python/arm-cs-trace-disasm.py
parent172bf5a9ef70a399bb227809db78442dc01d9e48 (diff)
media: venus: hfi_parser: refactor hfi packet parsing logic
words_count denotes the number of words in total payload, while data points to payload of various property within it. When words_count reaches last word, data can access memory beyond the total payload. This can lead to OOB access. With this patch, the utility api for handling individual properties now returns the size of data consumed. Accordingly remaining bytes are calculated before parsing the payload, thereby eliminates the OOB access possibilities. Cc: stable@vger.kernel.org Fixes: 1a73374a04e5 ("media: venus: hfi_parser: add common capability parser") Signed-off-by: Vikash Garodia <quic_vgarodia@quicinc.com> Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'tools/perf/scripts/python/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions