Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

funcr: Prevent stack overflow on recursive structs #124

Merged
merged 2 commits into from
Dec 5, 2021

Commits on Dec 5, 2021

  1. funcr: Prevent stack overflow on recursive structs

    Add a new Option `MaxLogDepth` which  tells funcr how many levels of
    nested fields (e.g. a struct that contains a struct that contains a
    struct, etc.) it may log.  Every time it finds a struct, slice, array,
    or map the depth is increased by one.  When the maximum is reached, the
    value will be converted to a string indicating that the max depth has
    been exceeded.  If this field is not specified, a default value will be
    used.
    thockin committed Dec 5, 2021
    Configuration menu
    Copy the full SHA
    dcef86d View commit details
    Browse the repository at this point in the history
  2. Fix some internal names

    thockin committed Dec 5, 2021
    Configuration menu
    Copy the full SHA
    2ccfbf6 View commit details
    Browse the repository at this point in the history