News for hackers. Stuff that matters.
Re:9999999999999999.0 – 9999999999999998.0 by johndough on Sunday January 06, 2019 @04:30AM (#18837440)
> The rational is simplified after each operation so it never grows unwieldy large.

We recently had an exponential memory growth bug because rationals can not always be simplified, for example if you start with (2/3) and repeatedly square it. Fortunately, this was not in user-facing code, so there was no chance of a denial-of-service attack, but that's definitely something to watch out for with rationals.

There are no comments on this comment yet.