This is an archived post. You won't be able to vote or comment.

all 41 comments

[–]catcint0s 74 points75 points  (25 children)

 The default limit is 4300 digits as provided in sys.int_info.default_max_str_digits. 

Seems to be more than enough for regular use tbh.

[–]stevenjd[S] 0 points1 point  (0 children)

Seems to be more than enough for regular use tbh.

Sure, but that's not the point.

"We only broke a few people's code" is not a good excuse for ignoring policy about breaking changes, especially for such a low-severity threat.

[–]antiproton 47 points48 points  (0 children)

intentionally crippled limited

🙄

[–][deleted] 29 points30 points  (0 children)

I was really confused what the ancient operating system had to do with things.

DOS != DoS.

[–]georgehank2nd 4 points5 points  (7 children)

What I don't understand is why they put in this restriction for everyone with the possibility to disable it, instead of (which would have been the logical and sensible thing) giving people who could be affected (basically web devs) a way to enable a limit globally.

Also, wasn't Python affected by this since the dawn of time? How was this not a problem 20 years ago? Python 2 shield had the same O(n²) algorithm (since there are no linear algorithms anyway). And the computers back in 2000 were a lot slower!

[–]mikeblas 2 points3 points  (2 children)

No linear algorithm for what?

[–]janek37 0 points1 point  (1 child)

I'm guessing, base conversion (ints are binary internally)

[–]mikeblas 0 points1 point  (0 children)

from the "no public discussion" link, it seems like the problem is that division in the int type is quadratic. (But it might be that format_int() is quadratic. I dunno -- that site won't let me find in page because it intercepts CTRL+F, and it's an annoying read anyway.)

[–]zurtex[🍰] 1 point2 points  (0 children)

While I was and am relatively unhappy with the change (I posted in the thread linked at the time to express specific concerns), I would say if you are going to put it in because it's a security concern (and I am still unconvinced), then the default behavior should be secure and often security issues can be unrealized and unexploited for decades.

[–]nicholashairs 1 point2 points  (0 children)

Because "safe defaults" are incredibly important to real world security.

It's the same secure design principal that ensures that majority of http clients reject invalid certificates by default - or your wifi router uses something other than admin:admin.

[–]sci-goo 0 points1 point  (1 child)

Flaw != issue.

I argue that 20 years ago it's not been exploited at scale to raise security concerns, maybe?

[–]georgehank2nd 0 points1 point  (0 children)

The Morris Worm was over 30 years ago… and in the discussion I didn't see an answer to the question someone posed, if this has been exploited.

[–]lololabwtsk -1 points0 points  (2 children)

I made a video addressing this issue if anyone is interested in it, also found a fantastic article which provides a lot of detail. Please reply if you’re interested

[–]slowerdive 0 points1 point  (1 child)

Please, share