Re: [PATCH 03/18] rockchip: avoid out-of-bounds when computing cpuid

2024-01-31 Thread Kever Yang
On 2024/1/23 22:49, Quentin Schulz wrote: From: Quentin Schulz 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, deri

[PATCH 03/18] rockchip: avoid out-of-bounds when computing cpuid

2024-01-23 Thread Quentin Schulz
From: Quentin Schulz 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