]> git.sesse.net Git - stockfish/commit
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)
commitb8eb699db7aafb3c00165ef26015e9ad562d787e
treecd2f70ef43f010bae25de6f505a83e6d5998e27d
parentad1f28bc1c1c5426fb8ab246f5d43ad57002b4d5
Validate input UCI moves

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>
src/position.cpp
src/uci.cpp