Files
Gary Riches 3c0f213f2d Version 1.0.3: a NaN no longer faults the arctangent table
A player's console closed in Dragon Roost Cavern with SIGSEGV in cM_atan2s,
called from himo_move (the ropes of the hanging platforms, d_a_mflft.cpp). A
platform whose ropes were cut on an earlier visit is created with them cut and
its rope points are simulated from values nothing has set; a NaN among them
becomes the index 0x80000000, which the GameCube's 32 bit address wraps to
entry 0 and x86-64 reads 4 GB below the table.

- c_math.cpp: U_GetAtanTable gives entry 0 for a NaN or a ratio outside the
  table.

Claude-Session: https://claude.ai/code/session_018jvMS8Y8okH8SDZUfd8MP1
2026-10-13 15:39:40 +01:00
..