mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 09:06:45 +08:00
Fix overflow risk in split point
Sizeof of search stack should be PLY_MAX+2 instead of PLY_MAX. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
committed by
Marco Costalba
parent
b056e5d40a
commit
7bc72d092f
@@ -46,7 +46,7 @@ const int THREAD_MAX = 8;
|
|||||||
struct SplitPoint {
|
struct SplitPoint {
|
||||||
SplitPoint *parent;
|
SplitPoint *parent;
|
||||||
Position pos;
|
Position pos;
|
||||||
SearchStack sstack[THREAD_MAX][PLY_MAX];
|
SearchStack sstack[THREAD_MAX][PLY_MAX_PLUS_2];
|
||||||
SearchStack *parentSstack;
|
SearchStack *parentSstack;
|
||||||
int ply;
|
int ply;
|
||||||
Depth depth;
|
Depth depth;
|
||||||
|
|||||||
Reference in New Issue
Block a user