lua-users home
lua-l archive

Re: [PATCH] Fix possible division by zero (Lua5.4rc1)

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


>>>>> "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.

AltStyle によって変換されたページ (->オリジナル) /