mirror of
https://github.com/X11Libre/xf86-video-xgi.git
synced 2026-03-24 01:24:35 +00:00
fix too small array in XGI_CRT1TableStruct
> ../../src/init.c:553:13: warning: array index 16 is past the end of the array (which contains 15 elements) [-Warray-bounds] > temp = XGI_Pr->XGINEWUB_CRT1Table[index].CR[16] & 0xE0; > ^ ~~ > ../../src/vb_struct.h:377:3: note: array 'CR' declared here > UCHAR CR[15]; > ^ > ../../src/init.c:556:15: warning: array index 16 is past the end of the array (which contains 15 elements) [-Warray-bounds] > temp = ((XGI_Pr->XGINEWUB_CRT1Table[index].CR[16]) & 0x01) << 5; > ^ ~~ > ../../src/vb_struct.h:377:3: note: array 'CR' declared here > UCHAR CR[15]; > ^ Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-xgi/-/merge_requests/9>
This commit is contained in:
@@ -374,7 +374,7 @@ typedef struct _XGI21_LVDSCapStruct
|
||||
|
||||
typedef struct _XGI_CRT1TableStruct
|
||||
{
|
||||
UCHAR CR[15];
|
||||
UCHAR CR[16];
|
||||
} XGI_CRT1TableStruct;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user