summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorLuca Coelho <luciano.coelho@intel.com>2025-09-09 11:30:11 +0300
committerLuca Coelho <luciano.coelho@intel.com>2025-09-19 12:50:56 +0300
commitdb7944458f4e5cdc11402e18ccbbc7aac4286f4b (patch)
tree3ced26fe4c11d0af736c4c85c642ebdf7a75b292 /tools/perf/scripts/python
parentcef58ce505a04a896d59cb207f0a0ccea1eec5ca (diff)
downloadlinux-db7944458f4e5cdc11402e18ccbbc7aac4286f4b.tar.gz
linux-db7944458f4e5cdc11402e18ccbbc7aac4286f4b.zip
drm/i915/dmc: explicitly sanitize num_entries from package_header
num_entries comes from package_header, which is read from an external firmware blob and thus untrusted. In parse_dmc_fw_package() we assign package_header->num_entries to a local variable, but the range check still uses the struct field directly. Switch the check to use the local copy instead. This makes the sanitization explicit and avoids a redundant dereference. Reviewed-by: Mitul Golani <mitulkumar.ajitkumar.golani@intel.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com> Link: https://lore.kernel.org/r/20250909083042.1292672-1-luciano.coelho@intel.com
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions