Fix fuzzer-discovered timeout with deeply-nested structs.
The fuzzer found that `is_too_deeply_nested` would walk the entire
struct hierarchy, and crafted a massive tree of structs in order to
trigger a timeout. We now memoize the nesting depth of the most
deeply-nested field of each struct.
Reviewed-by: Brian Osman <email@example.com>
Auto-Submit: John Stiles <firstname.lastname@example.org>
Commit-Queue: Brian Osman <email@example.com>
2 files changed