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

cpputest / cpputest / 30526865577
99%

Build:
DEFAULT BRANCH: master
Ran 30 Jul 2026 08:32AM UTC
Jobs 1
Files 48
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

30 Jul 2026 08:28AM UTC coverage: 99.281%. Remained the same
30526865577

push

github

basvodde
Fix unsigned underflow in SimpleString::subString() on empty strings

subString(beginPos, amount) rejected out-of-range beginPos with
`if (beginPos > size()-1) return "";`. Since size() returns size_t,
calling this on an empty string (size() == 0) makes size()-1 wrap
around to SIZE_MAX, so the bounds check is defeated for any beginPos
and the function falls through to an out-of-bounds read of the
string's internal buffer.

Use `beginPos >= size()` instead, which is mathematically equivalent
to the original check for every size() >= 1 and additionally handles
size() == 0 correctly.

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

6765 of 6814 relevant lines covered (99.28%)

46701.83 hits per line

Jobs
ID Job ID Ran Files Coverage
1 30526865577.1 30 Jul 2026 08:32AM UTC 48
99.28
GitHub Action Run
Source Files on build 30526865577
  • Tree
  • List 48
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • a5270d6f on github
  • Prev Build on master (#30526406706)
  • Next Build on master (#30531233701)
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