]> git.sesse.net Git - stockfish/commitdiff
Fix a subtle bug due to the StateInfo pointer became stale
authorMarco Costalba <mcostalba@gmail.com>
Mon, 23 Feb 2009 17:46:33 +0000 (18:46 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Mon, 23 Feb 2009 20:45:12 +0000 (21:45 +0100)
There was one occurence when the StateInfo variable went
out of scope before the corresponding Position object.

This yelds to a crash. Bug was not hit before because occurs
only when using an UCI interface and not the usual benchmark.

The fix consists in copying internally the content of the
about to stale StateInfo.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>

No differences found