Files
Stockfish/src
Sebastian Buchwald f09b391ceb Fix comparison with uninitialized variable
In both modified methods, the variable 'result' is checked to detect
whether the probe operation failed. However, the variable is not
initialized on all paths, so the check might test an uninitialized
value.

A test position (with TB) is given by:

position fen 3K1k2/R7/8/8/8/8/8/R6Q w - - 0 1 moves a1b1 f8g8 b1a1 g8f8 a1b1 f8g8 b1a1

This is now fixed by always initializing the variable.

closes https://github.com/official-stockfish/Stockfish/pull/4309

No functional change
2023-01-01 12:24:42 +01:00
..
2022-11-05 09:15:53 +01:00
2022-01-09 15:49:19 +01:00
2022-01-06 15:45:45 +01:00
2022-01-06 15:45:45 +01:00
2022-01-06 15:45:45 +01:00
2022-01-06 15:45:45 +01:00
2022-01-06 15:45:45 +01:00
2022-12-19 18:11:12 +01:00
2022-01-06 15:45:45 +01:00
2022-12-20 08:14:19 +01:00
2022-01-06 15:45:45 +01:00
2022-01-06 15:45:45 +01:00
2022-12-08 20:33:32 +01:00
2022-09-17 09:13:07 +02:00
2022-01-06 15:45:45 +01:00
2022-01-06 15:45:45 +01:00
2022-12-12 08:20:48 +01:00
2022-12-02 20:05:50 +01:00
2022-01-06 15:45:45 +01:00
2022-01-06 15:45:45 +01:00
2022-01-06 15:45:45 +01:00
2022-01-06 15:45:45 +01:00
2022-11-07 08:00:05 +01:00
2022-10-16 11:51:41 +02:00
2022-01-06 15:45:45 +01:00
2022-01-06 15:45:45 +01:00
2022-01-06 15:45:45 +01:00
2022-01-06 15:45:45 +01:00
2022-01-06 15:45:45 +01:00
2022-11-20 09:59:35 +01:00