From: Marco Costalba Date: Mon, 23 Feb 2009 17:46:33 +0000 (+0100) Subject: Fix a subtle bug due to the StateInfo pointer became stale X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=55f9afee2a079b2dd0b1aeda41082c58eb317ca3;hp=55f9afee2a079b2dd0b1aeda41082c58eb317ca3 Fix a subtle bug due to the StateInfo pointer became stale 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 ---