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

open-source-parsers / jsoncpp / 19290584406
65%

Build:
DEFAULT BRANCH: master
Ran 12 Nov 2025 08:07AM UTC
Jobs 1
Files 13
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

12 Nov 2025 08:07AM UTC coverage: 65.346%. Remained the same
19290584406

push

github

web-flow
Return false in Reader::readValue when stack limit is exceeded (#1619)

jsoncpp, as a shared library, should not call `abort` merely because there's an error reading a value.

See https://en.cppreference.com/w/c/program/abort, `abort` should only be called to **abnormally** cause the program to exit. Functions inserted by `atexit` are also not called, meaning that the host program may have not cleaned up resources properly. But here, exceeding stack limit isn't a sign of abnormalty.

`exit` is not a good substitute either, see the `exit-in-shared-library` from Debian:
https://lintian.debian.org/tags/exit-in-shared-library.html

Fix #1618

In this case, returning false seems like a better idea.

Co-authored-by: Jordan Bayles <bayles.jordan@gmail.com>

6336 of 12448 branches covered (50.9%)

Branch coverage included in aggregate %.

5838 of 6182 relevant lines covered (94.44%)

10221.46 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
77.51
0.0% src/lib_json/json_reader.cpp
Jobs
ID Job ID Ran Files Coverage
1 19290584406.1 12 Nov 2025 08:07AM UTC 13
65.35
GitHub Action Run
Source Files on build 19290584406
  • Tree
  • List 13
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 30e75280 on github
  • Prev Build on master (#19290442608)
  • Next Build on master (#19290665968)
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

© 2025 Coveralls, Inc