Skip to content

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

Edited by Alan Coopersmith

Merge request reports

Loading