Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Looks to me like the actual problem is in string.__mul__ -- that one's got arbitrary memory usage. Better limit those arguments...


str.__mul__ is just a conveniently short way to demonstrate the issue, the target is pretty much any parsing routine exposed to outside users e.g. any JSON API.


Apologies, my comment is snark. The algorithm in question is soft-linear, faster implementations exist, this seems like an incredibly myopic fix. Just make a bigger JSON blob and it will take longer to parse.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: