• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Kochava / envi
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: v1.0.2
DEFAULT BRANCH: master
Repo Added 25 Jan 2018 05:12PM UTC
Files 8
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH issues/4
branch: issues/4
CHANGE BRANCH
x
Reset
  • issues/4
  • add-gddo-badge
  • fix-max-slice-len-godoc
  • issue/2
  • issues/8
  • master
  • v1.0.0
  • v1.0.1
  • v1.0.2

pending completion
24

push

travis-ci

nilium
Add depth checks for cyclical / nested types

This change affects all unmarshaling for nested values but prevents
infinitely recursing while trying to unmarshal cyclical types.

This adds a max depth of 8 for structs where no fields are defined
whatsoever. The counter is reset if a value if the struct containing
the field has any other field set. If the struct has no other fields,
then depth cannot be reset right now.

This is done by refactoring Reader into a separate readState type that
tracks the current depth and, possibly later, other information about
read state. The readState, for the most part, is just a Reader wrapper.

Further improvements could be made to use an optional interface to scan
for known keys. This just deals with the immediate problem of unbounded
recursion.

Fixes #4.

500 of 515 relevant lines covered (97.09%)

110.31 hits per line

Relevant lines Covered
Build:
Build:
515 RELEVANT LINES 500 COVERED LINES
110.31 HITS PER LINE
Source Files on issues/4
Detailed source file information is not available for this build.

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
24 issues/4 Add depth checks for cyclical / nested types This change affects all unmarshaling for nested values but prevents infinitely recursing while trying to unmarshal cyclical types. This adds a max depth of 8 for structs where no fields are defined wh... push 02 Mar 2018 08:29PM UTC nilium travis-ci pending completion  
22 issues/4 Add depth checks for cyclical / nested types This change affects all unmarshaling for nested values but prevents infinitely recursing while trying to unmarshal cyclical types. This adds a max depth of 8 for structs where no fields are defined wh... push 02 Mar 2018 08:25PM UTC nilium travis-ci pending completion  
20 issues/4 Add depth checks for cyclical / nested types This change affects all unmarshaling for nested values but prevents infinitely recursing while trying to unmarshal cyclical types. This adds a max depth of 8 for structs where no fields are defined wh... push 02 Mar 2018 08:20PM UTC nilium travis-ci pending completion  
See All Builds (35)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc