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

SRombauts / SQLiteCpp / 28444563093
100%

Build:
DEFAULT BRANCH: master
Ran 30 Jun 2026 12:34PM UTC
Jobs 1
Files 14
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 Jun 2026 12:33PM UTC coverage: 99.709%. Remained the same
28444563093

push

github

web-flow
Guard null C pointers in Exception, Database, and Statement against UB (#552)

Fixes a cluster of null C-pointer bugs found in the code review. Each
one builds a std::string (or std::runtime_error) from a SQLite C API
pointer that can legitimately be null, which is undefined behavior.

- `Statement::getExpandedSQL()` now returns an empty string instead of
constructing a `std::string` from a null `sqlite3_expanded_sql()` (null
on out of memory, over `SQLITE_LIMIT_LENGTH`, or in `SQLITE_OMIT_TRACE`
builds, where it always returns null). Empty is used rather than
throwing because this is a diagnostic/logging helper that is often
called from error-handling paths, and an `SQLITE_OMIT_TRACE` build would
otherwise throw on every call.
- `Statement::getColumnIndex()` skips a null `sqlite3_column_name()`
when building the name map.
- `Exception(const char*, int)` falls back to an empty message when
passed null.
- `Database(const char*)` falls back to an empty filename when passed
null, which matches how SQLite treats a null filename (a private
temporary database).

Adds regression tests for the two paths reachable from the public API: a
null Exception message and a null Database filename. The two Statement
paths need a null from inside SQLite (allocation failure or an
OMIT_TRACE build) so they are not unit-testable here; the guards are the
fix.

4 of 4 new or added lines in 2 files covered. (100.0%)

686 of 688 relevant lines covered (99.71%)

30.48 hits per line

Jobs
ID Job ID Ran Files Coverage
1 28444563093.1 30 Jun 2026 12:34PM UTC 14
99.71
GitHub Action Run
Source Files on build 28444563093
  • Tree
  • List 14
  • Changed 3
  • Source Changed 3
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28444563093
  • e52087e3 on github
  • Prev Build on master (#28433029871)
  • Next Build on master (#28447831089)
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