NaNMath.jl icon indicating copy to clipboard operation
NaNMath.jl copied to clipboard

Stack overflow on `pow` with mixed float and complex args

Open KristofferC opened this issue 1 year ago • 2 comments

julia> NaNMath.pow(1.0, 1.0+im)
ERROR: StackOverflowError:
Stacktrace:
 [1] pow(x::ComplexF64, y::ComplexF64) (repeats 2 times)
   @ NaNMath ~/.julia/packages/NaNMath/ceWIc/src/NaNMath.jl:26

KristofferC avatar Mar 06 '24 12:03 KristofferC

Also encountered this today in SymbolicUtils fuzzer.

shashi avatar May 14 '24 18:05 shashi

#79 will make it so that this no longer results in a stack overflow. It still does not treat complex arguments, but I think that's covered by #66.

moble avatar Jun 03 '24 00:06 moble