diff options
| author | Amal Bansode <amal@tailscale.com> | 2026-03-02 17:33:57 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-02 17:33:57 -0800 |
| commit | 8fd02bb6260c61c217589809372959c523be3a84 (patch) | |
| tree | eb7128c27c9272e63c582aaf37f045ad581ec481 /control/controlhttp/controlhttpserver/controlhttpserver.go | |
| parent | 5a2168da9ef6d7daff8fd0419dbfb6026b02a0ed (diff) | |
| download | tailscale-8fd02bb6260c61c217589809372959c523be3a84.tar.xz tailscale-8fd02bb6260c61c217589809372959c523be3a84.zip | |
types/geo: fix floating point bug causing NaN returns in SphericalAngleTo (#18777)
Subtle floating point imprecision can propagate and lead to
trigonometric functions receiving inputs outside their
domain, thus returning NaN. Clamp the input to the valid domain
to prevent this.
Also adds a fuzz test for SphericalAngleTo.
Updates tailscale/corp#37518
Signed-off-by: Amal Bansode <amal@tailscale.com>
Diffstat (limited to 'control/controlhttp/controlhttpserver/controlhttpserver.go')
0 files changed, 0 insertions, 0 deletions
