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

But that is of course true for all algorithms without uniform performance, another famous example being sorting with quicksort which on average takes O(n x log(n)) time but can become O(n²) in the worst case. Or zip bombs making you decompress a few kilobytes of data into gigabytes. If a user can control a relevant fraction or important piece of the data you are processing, then you always have to be careful not to expose yourselves to algorithmic complexity attacks.


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

Search: