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

open-source-parsers / jsoncpp / 27651508513
90%
master: 90%

Build:
Build:
LAST BUILD BRANCH: refs/pull/1695/merge
DEFAULT BRANCH: master
Ran 16 Jun 2026 10:11PM UTC
Jobs 1
Files 8
Run time 1min
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

16 Jun 2026 10:11PM UTC coverage: 89.905% (-0.04%) from 89.949%
27651508513

push

github

baylesj
fix: accept subnormal and underflowing doubles when parsing (#1427)

decodeDouble parsed numbers via `istringstream >> double`. For a
subnormal value such as `3.2114e-312`, operator>> sets failbit (the
underflow is reported as errno == ERANGE) even though it produced the
correctly-rounded value. The failure path only special-cased overflow
(value == max/lowest/inf), so subnormals were rejected as "not a number"
-- meaning a value jsoncpp had just serialized could fail to parse back.

Treat errno == ERANGE in the failure path as success and keep the value
operator>> produced (the correctly-rounded subnormal, zero on underflow,
or infinity on overflow). Genuine junk leaves errno unset and is still
rejected. Applied to both Reader and OurReader, which share this logic.

Adds CharReaderTest/parseSubnormalAndUnderflow covering subnormals, a
writer round-trip, underflow-to-zero, and continued rejection of junk.

2202 of 2618 branches covered (84.11%)

Branch coverage included in aggregate %.

3 of 4 new or added lines in 1 file covered. (75.0%)

2607 of 2731 relevant lines covered (95.46%)

23427.67 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
89.91
-0.12% src/lib_json/json_reader.cpp
Jobs
ID Job ID Ran Files Coverage
1 27651508513.1 16 Jun 2026 10:11PM UTC 8
89.9
GitHub Action Run
Source Files on build 27651508513
  • Tree
  • List 8
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 9bd64dfd on github
  • Prev Build on master (#27488207162)
  • Next Build on fix/1427-subnormal-roundtrip (#27651904452)
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