]> git.sesse.net Git - stockfish/commit
Fix gRPC crashes.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 4 Dec 2021 14:47:57 +0000 (15:47 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 4 Dec 2021 14:47:57 +0000 (15:47 +0100)
commit327916cbecab1b99d17204d8c15b474c17e57c27
tree31da894973e390408ef8dc1617205e02017ad05d
parent575a5f107de75d58330475b53ef4c822abbd1f1e
Fix gRPC crashes.

Since the hash move may change from other threads while we're looking at it,
we could end up applying illegal moves when recovering the PV, corrupting the
state and causing out-of-bounds accesses.

Spotted by vondele.
src/main.cpp