Command & Conquer
▻https://hownot2code.com/2020/06/30/command-conquer
Array overrun V557 Array overrun is possible. The ‘QuantityB’ function processes value ‘[0..86]’. Inspect the first argument. Check lines: ‘HOUSE.H:928’, ‘CELL.CPP:2337’. HOUSE.H 928 typedef enum StructType : char STRUCT_NONE=-1, .... STRUCT_COUNT, // <= 87 STRUCT_FIRST=0 StructType; int BQuantity[STRUCT_COUNT-3]; int QuantityB(int index) return(BQuantity[index]); bool CellClass::Goodie_Check(FootClass * object) .... int bcount = 0; for( … Continue reading Command & Conquer
►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G