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

SRombauts / SQLiteCpp / 28433029871
100%

Build:
DEFAULT BRANCH: master
Ran 30 Jun 2026 09:06AM 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 09:05AM UTC coverage: 99.709% (+0.001%) from 99.708%
28433029871

push

github

web-flow
Fix unreliable 16-byte header check in Database::isUnencrypted() (#553)

isUnencrypted() used ifstream::getline() to read the SQLite magic
string, which stops at a newline or NUL and never compares the 16th
byte, so the security gate was unreliable and could read uninitialized
stack memory on a short file.

- Read exactly 16 raw bytes with read() in binary mode and verify
gcount() == 16 (a shorter file returns false instead of comparing
garbage), then compare with memcmp, mirroring getHeaderInfo().
- Add a regression test covering a valid database, a too-short file, and
a 16-byte garbage header.

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

685 of 687 relevant lines covered (99.71%)

30.36 hits per line

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