better handle corrupt packets that would cause unreasonably deep recursion