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

nlohmann / json / 34499229139
98%

Build:
DEFAULT BRANCH: develop
Ran 10 Sep 2026 09:42PM UTC
Jobs 1
Files 33
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

10 Sep 2026 03:59PM UTC coverage: 98.52% (-0.2%) from 98.727%
34499229139

push

github

web-flow
Fix to_bjdata() silently truncating out-of-range _ArrayData_ elements (#5473)

write_bjdata_ndarray() validated that each _ArrayData_ element matched
the number kind (integer vs. float) named by _ArrayType_, but not its
range. An element that did not fit the target C++ type (e.g. 256 for
"uint8") was silently wrapped by the static_cast used to write it, or,
for "single", silently overflowed to infinity.

Range-check each element against the type named by _ArrayType_ before
writing it, reusing the existing fallback path that already encodes
the annotated object as a plain object for other invalid-annotation
cases in this function.

Fixes #5403.

Signed-off-by: Niels Lohmann <mail@nlohmann.me>

2491 of 2681 branches covered (92.91%)

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

17 existing lines in 3 files now uncovered.

7054 of 7160 relevant lines covered (98.52%)

15671067.67 hits per line

Coverage Regressions

Lines Coverage ∆ File
13
97.29
-0.55% include/nlohmann/json.hpp
3
99.57
-0.43% include/nlohmann/detail/input/lexer.hpp
1
99.45
-0.55% include/nlohmann/detail/input/input_adapters.hpp
Jobs
ID Job ID Ran Files Coverage
1 34499229139.1 10 Sep 2026 09:42PM UTC 33
98.52
GitHub Action Run
Source Files on build 34499229139
  • Tree
  • List 33
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #34499229139
  • bfb07786 on github
  • Prev Build on develop (#34445253992)
  • Next Build on develop (#34593111872)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc