shibatch / sleef

SIMD Library for Evaluating Elementary Functions, vectorized libm and DFT
https://sleef.org
Boost Software License 1.0
628 stars 126 forks source link

Add row to rempitab table for infinity/nan edge cases #528

Closed joanaxcruz closed 5 months ago

joanaxcruz commented 5 months ago

Previously, when fetching elements from Sleef_rempitabsp or Sleef_rempitabdp for infinity/nan inputs, we would hit outside the table. This would trigger a global buffer overflow error when running any of the trig functions with an address sanitizer. Fixes issue #464, on multiple arch. Furthermore tester3advsimd and tester3advsimdnofma start passing when library is build with ASAN enabled.