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

It feels like a check against an input size of 10MB is something you would do well before deserialization, no?


The limit might apply to some specific part of the message, rather than the whole. You can't check this without actually deserialising, or at least doing most of the same work.


not if it is a message you receive from a third party.

A concrete example might be a batching third party client: the app sends N messages in a single batch and each message has its own size limit.


You would, but others might not. Defense in depth.




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

Search: