Re: [PATCH v3] common: buffer access out-of-bounds

2024-10-18 Thread Ahmad Fatoum
Hello Abdelrahman, Thanks for your patch! On 18.10.24 17:26, Abdelrahman Youssef via B4 Relay wrote: > From: Abdelrahman Youssef > > in file_detect_type() to detect file of type socfpga_xload you need at least > 68 bytes bytes, so we need to check if we have enough bufsize. > So I moved it afte

[PATCH v3] common: buffer access out-of-bounds

2024-10-18 Thread Abdelrahman Youssef via B4 Relay
From: Abdelrahman Youssef in file_detect_type() to detect file of type socfpga_xload you need at least 68 bytes bytes, so we need to check if we have enough bufsize. So I moved it after checking if `bufsize >= 256`. Signed-off-by: Abdelrahman Youssef --- This patch is a replacement of the last