3 ms·
It is better to not set limits.
by gameswithgo 7y ago
It is better to not set limits.
- skybrian 7y agoThere is always a limit. The question is whether you want to use up all available memory reading bad input, or reject it sooner. If you're worried about denial-of-service attacks, it makes sense to be explicit about how big an input you'll accept.