summaryrefslogtreecommitdiff
path: root/src/probe.c
diff options
context:
space:
mode:
authorScott Gasch <[email protected]>2026-09-05 21:53:47 -0700
committerScott Gasch <[email protected]>2026-09-05 21:53:47 -0700
commit434fa0406e1b01395a2b7f0aa481ca5dc367fa09 (patch)
tree35f393448db046b351592746d4eee6aae58c6e1e /src/probe.c
parent9e995e7c39a83ae9b5ba86f3346e0281744bf773 (diff)
Harden _WhoControlsSquareFast against g_SwapTable out-of-bounds indexing
Add ASSERT(uWhite < 32)/ASSERT(uBlack < 32), the bound that actually matters for g_SwapTable[14][32][32] -- the existing (& 0xFFFFFF00) checks only caught garbage above bit 7 and would have passed silently through the exact out-of-bounds indexing fixed in the previous commit, had a similar bit-layout mistake been made again in the future. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01XxmVi2sTMwpPp4i6WYFjan
Diffstat (limited to 'src/probe.c')
0 files changed, 0 insertions, 0 deletions