Re: [PATCH v2] hw/display: refine upper limit for offset value in assert check

2024-12-12 Thread Richard Henderson
On 12/12/24 10:01, ger...@altlinux.org wrote: From: Denis Rastyogin Accessing an element of the s->core_registers array, which has a size of 236 (0x3AC), may lead to a buffer overflow if the 'offset' index exceeds the valid range, potentially reaching values up to 5139 (0x504C >> 2). Therefore,

[PATCH v2] hw/display: refine upper limit for offset value in assert check

2024-12-12 Thread gerben
From: Denis Rastyogin Accessing an element of the s->core_registers array, which has a size of 236 (0x3AC), may lead to a buffer overflow if the 'offset' index exceeds the valid range, potentially reaching values up to 5139 (0x504C >> 2). Therefore, the bounds check has been extended to DP_CORE_R