RE: [PATCH v3] drm/amd/display: Prevent potential buffer overflow in map_hw_resources

2024-02-22 Thread Li, Roman
SAN > ; Zhuo, Lillian > > Subject: [PATCH v3] drm/amd/display: Prevent potential buffer overflow in > map_hw_resources > > Adds a check in the map_hw_resources function to prevent a potential buffer > overflow. The function was accessing arrays using an index that could > poten

[PATCH v3] drm/amd/display: Prevent potential buffer overflow in map_hw_resources

2024-02-21 Thread Srinivasan Shanmugam
Adds a check in the map_hw_resources function to prevent a potential buffer overflow. The function was accessing arrays using an index that could potentially be greater than the size of the arrays, leading to a buffer overflow. Adds a check to ensure that the index is within the bounds of the arra