]> git.sesse.net Git - stockfish/commit
Fix memory access in Search::clear()
authorJoost VandeVondele <Joost.VandeVondele@gmail.com>
Thu, 18 May 2017 01:15:01 +0000 (18:15 -0700)
committerJoona Kiiski <joona@zoox.com>
Thu, 18 May 2017 01:15:01 +0000 (18:15 -0700)
commit732aa34e3dec39de9c80a07f6ecba7cb0569b95e
tree211755d955a59e0d2cb87513e2bd2508c2a4fe27
parent862934d7aeed1722bfff2872f755c708416c41a7
Fix memory access in Search::clear()

Fixes a bug in Search::clear, where the filling of CounterMoveStats&, overwrote (currently presumably unused) memory because sizeof(cm) returns the size in bytes, whereas elements was needed.

No functional change

Closes #1119
src/search.cpp