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

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

Build:
Build:
LAST BUILD BRANCH: refs/pull/1667/merge
DEFAULT BRANCH: master
Ran 16 Mar 2026 05:40AM 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 Mar 2026 05:38AM UTC coverage: 89.949%. Remained the same
23129608104

push

github

baylesj
Fix use-after-free in Reader::parse(std::istream&)

The istream overload stored the document in a local String then
passed raw pointers into it to parse(const char*, const char*),
which kept those pointers in begin_/end_. After parse() returned
the local String was destroyed, leaving begin_/end_ dangling.
Any subsequent call to getFormattedErrorMessages() would then
read freed memory.

Fix by reading the stream into the member document_ instead, matching
the behavior of parse(const std::string&).

Also document the lifetime requirement on parse(const char*, const
char*): the caller's buffer must outlive the Reader if error-reporting
methods are used after parsing.

Fixes #1623

2171 of 2574 branches covered (84.34%)

Branch coverage included in aggregate %.

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

2554 of 2679 relevant lines covered (95.33%)

23969.17 hits per line

Jobs
ID Job ID Ran Files Coverage
1 23129608104.1 16 Mar 2026 05:40AM UTC 8
89.95
GitHub Action Run
Source Files on build 23129608104
  • Tree
  • List 8
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 7293f510 on github
  • Prev Build on master (#23129459393)
  • Next Build on fix/reader-dangling-ptr (#23129789951)
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