[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [PATCH] Fix possible division by zero (Lua5.4rc1)
- From: Andrew Gierth <andrew@...>
- Date: Tue, 26 May 2020 04:58:08 +0100
>>>>> "Ranier" == Ranier Vilela <ranier.vf@gmail.com> writes:
Ranier> else { /* step < 0; descending loop */
Ranier> var step here can be equal zero.
Can it?
Look up about 12 lines, and you'll see that the case of step==0 has
already been handled.
Now, it might not be obvious (even to the compiler or to static analysis
tools) that luaG_runerror does not return...
--
Andrew.