On 3/21/25 10:47, Jamin Lin wrote:
Hi Cedric,
Subject: [PATCH v1 02/22] hw/misc/aspeed_hace: Fix buffer overflow in
has_padding function
The maximum padding size is either 64 or 128 bytes and should always be
smaller than "req_len". If "padding_size" exceeds &quo
The maximum padding size is either 64 or 128 bytes and should always be smaller
than "req_len". If "padding_size" exceeds "req_len", then
"req_len - padding_size" underflows due to "uint32_t" data type, leading to a
large incorrect value (e.g., `0xFFXX`). This causes an out-of-bounds memory
acc
Hi Cedric,
> Subject: [PATCH v1 02/22] hw/misc/aspeed_hace: Fix buffer overflow in
> has_padding function
>
> The maximum padding size is either 64 or 128 bytes and should always be
> smaller than "req_len". If "padding_size" exceeds "req_len", then