Re: [PATCH v2 01/20] rockchip: avoid out-of-bounds when computing cpuid

2024-02-09 Thread Dragan Simic
On 2024-02-09 10: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, der

[PATCH v2 01/20] rockchip: avoid out-of-bounds when computing cpuid

2024-02-09 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