Refuse to read messages with excessive segment counts or messages whose total size exceeds the traversal limit, before allocating any space.  This is important for security.