summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorQuentin Schulz <[email protected]>2024-03-11 13:01:44 +0100
committerKever Yang <[email protected]>2024-03-13 18:14:19 +0800
commit2871dee83336cdafc38140dc6edd517eb5cac4b7 (patch)
tree1035d4af531bf1a829079b7240cd5012e34f0078 /include/linux
parent20a0ce574d6642e0dfe651467159039fac48cc4f (diff)
rockchip: avoid out-of-bounds when computing cpuid
The expected length of the cpuid, as passed with cpuid_length, determines the size of cpuid_str string. Therefore, care should be taken to make sure nothing is accessing data out-of-bounds. Instead of using hardcoded values, derive them from cpuid_length. Cc: Quentin Schulz <[email protected]> Reviewed-by: Kever Yang <[email protected]> Reviewed-by: Dragan Simic <[email protected]> Signed-off-by: Quentin Schulz <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions