mirror of
https://github.com/sockspls/badfish
synced 2025-07-11 19:49:14 +00: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:
parent
b056e5d40a
commit
7bc72d092f
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ const int THREAD_MAX = 8;
|
|||
struct SplitPoint {
|
||||
SplitPoint *parent;
|
||||
Position pos;
|
||||
SearchStack sstack[THREAD_MAX][PLY_MAX];
|
||||
SearchStack sstack[THREAD_MAX][PLY_MAX_PLUS_2];
|
||||
SearchStack *parentSstack;
|
||||
int ply;
|
||||
Depth depth;
|
||||
|
|
Loading…
Add table
Reference in a new issue