From 300f0bb144356306f2f3f6807849ce67a908159e Mon Sep 17 00:00:00 2001 From: Calcitem Date: Tue, 26 Jan 2021 23:42:48 +0800 Subject: [PATCH] perfect: Fix squareIndexGroupB write buffer overflow --- src/perfect/perfectAI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/perfect/perfectAI.cpp b/src/perfect/perfectAI.cpp index f44120a1..0c6520f2 100644 --- a/src/perfect/perfectAI.cpp +++ b/src/perfect/perfectAI.cpp @@ -171,7 +171,7 @@ unsigned int soTableMirrorDiag2[] = { // define the four groups unsigned int squareIndexGroupA[] = { 3, 5, 20, 18 }; -unsigned int squareIndexGroupB[] = { 4, 13, 19, 10 }; +unsigned int squareIndexGroupB[8] = { 4, 13, 19, 10 }; unsigned int squareIndexGroupC[] = { 0, 2, 23, 21, 6, 8, 17, 15 }; unsigned int squareIndexGroupD[] = { 1, 7, 14, 12, 22, 16, 9, 11 };