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

IJHack / QtPass / 45959187942
95%

Build:
DEFAULT BRANCH: main
Ran 27 Nov 2026 07:45AM UTC
Jobs 1
Files 87
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

27 Nov 2026 07:32AM UTC coverage: 94.816% (+0.001%) from 94.815%
45959187942

push

github

web-flow
Re-encryption: restore a leftover backup without following a link (#2351)

restoreBackup() puts a leftover "<entry>.gpg.reencrypt.bak" back when
"<entry>.gpg" is missing, using QFile::rename. When the plain rename
fails, Qt's rename opens the destination for writing and follows a
symbolic link holding the name, writing the backup's bytes wherever the
link points. Someone who can push to a shared store can push a dangling
link at the entry's name: its target does not exist yet, so it passes the
exists() check, and the next re-encryption creates a file outside the
store.

restoreBackup() now uses Util::replaceFile() without replace, which
renames at the path level and refuses the link itself. Move() without Git
keeps QDir::rename: it already refuses a link at the destination, and
replaceFile has no fallback across filesystems.

placeWithoutReplacing() ignored the result of the unlink after its
linkat(), so replaceFile() could report success with both names in place.
A failed unlink now removes the new name again and returns false.

A tst_imitatepass test pushes a dangling link next to a leftover backup,
runs a re-encryption and checks the link's target is never created; it
fails with QFile::rename. A tst_util test puts the source in a read-only
folder; it fails without the unlink check.

Scan finding ANT-2026-C9L3KHDU.

Signed-off-by: Anne Jan Brouwer <brouwer@annejan.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

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

3 existing lines in 1 file now uncovered.

10188 of 10745 relevant lines covered (94.82%)

25951.53 hits per line

Coverage Regressions

Lines Coverage ∆ File
3
94.24
-2.16% src/nativegrep.cpp
Jobs
ID Job ID Ran Files Coverage
1 45959187942.1 27 Nov 2026 07:45AM UTC 87
94.82
GitHub Action Run
Source Files on build 45959187942
  • Tree
  • List 87
  • Changed 3
  • Source Changed 2
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #45959187942
  • 988492df on github
  • Prev Build on main (#45910052130)
  • Next Build on main (#45978956321)
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