]> git.sesse.net Git - stockfish/commitdiff
Validate input UCI moves
authorMarco Costalba <mcostalba@gmail.com>
Sun, 17 Jul 2011 09:22:08 +0000 (10:22 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sun, 17 Jul 2011 09:22:55 +0000 (10:22 +0100)
Running following command:

  position startpos moves e1e8

Makes SF to assert in debug mode in do_move() but to accept
bad input and continue in release mode where probably it is
going to crash little later.

So validate input before to feed do_move().

Suggestion by Yakovlev Vadim.

No functional change.

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

No differences found