Skip to content

Commit a717741

Browse files
committed
Manage expectations about tablebase safety
1 parent 1635b08 commit a717741

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

docs/gaviota.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ Gaviota tablebases provide **WDL** (win/draw/loss) and **DTM** (depth to mate)
55
information for all endgame positions with up to 5 pieces. Positions with
66
castling rights are not included.
77

8+
:warning: Ensure tablebase files match the known checksums. Maliciously crafted
9+
tablebase files may cause denial of service with
10+
:class:`~chess.gaviota.PythonTablebase` and memory unsafety with
11+
:class:`~chess.gaviota.NativeTablebase`.
12+
813
.. autofunction:: chess.gaviota.open_tablebase
914

1015
.. autoclass:: chess.gaviota.PythonTablebase

docs/syzygy.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ Syzygy tablebases provide **WDL** (win/draw/loss) and **DTZ** (distance to
55
zero) information for all endgame positions with up to 6 (and experimentally 7)
66
pieces. Positions with castling rights are not included.
77

8+
:warning: Ensure tablebase files match the known checksums. Maliciously crafted
9+
tablebase files may cause denial of service.
10+
811
.. autofunction:: chess.syzygy.open_tablebase
912

1013
.. autoclass:: chess.syzygy.Tablebase

0 commit comments

Comments
 (0)