[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Numeric key collision related bug in Lua 5.3
- From: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 22 Apr 2015 03:54:26 -0300
> >make up a story that includes a user in a real-world scenario hitting
> >this edge case. Is there a story that could be imagined that includes
> >how this may be exploited by a nefarious user?
> One of the only reasons I've personally used floats for table keys has
> been for memoization, where a table is used to cache results of (a
> presumably expensive) calculation. Having different input values return
> the same cache slot would be wrong, and likely very hard to debug.
I don't think your story matches the problem. There is no
confusion at all between different floats, but between floats and