You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Korn Shell Version AJM 93u+m/1.0.8 2024-01-01 on Linux amd64, the following command causes ksh to run into an infinite loop. I had to kill -9 it:
echo$((-2**63/-1))
I ran a quick gdb, and it seems this line is the culprit:
Yes, looks like a workaround similar to the one that fixed #770 might work — though the real problem here is #771, which is not getting fixed anytime soon I'm afraid :(
Using
Korn Shell Version AJM 93u+m/1.0.8 2024-01-01
on Linux amd64, the following command causes ksh to run into an infinite loop. I had tokill -9
it:I ran a quick gdb, and it seems this line is the culprit:
ksh/src/cmd/ksh93/sh/streval.c
Line 359 in 7170ac0
The variable
sp[-1]
holds a negative long double (-9223372036854775808) which we are casting to an unsigned long. Looks like a similar issue to #770The text was updated successfully, but these errors were encountered: