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

Tatsh / dbeaver-creds / 25095780584
100%

Build:
DEFAULT BRANCH: master
Ran 29 Apr 2026 07:13AM UTC
Jobs 3
Files 4
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

29 Apr 2026 07:12AM UTC coverage: 87.342% (+5.8%) from 81.538%
25095780584

push

github

Tatsh
c: validate PKCS#7 padding manually in the macOS backend

`test_returns_null_on_undecryptable_ciphertext` flips one byte of a
known-good ciphertext and expects decryption to fail. On Linux/OpenSSL
and Windows/BCrypt this works because both APIs validate PKCS#7
padding strictly during decrypt-final and report failure. On
macOS/CommonCrypto with `kCCOptionPKCS7Padding` the API documents
that it *strips* the padding without *validating* it - so a tampered
last block whose decrypted last byte happens to fall in [1, 16] is
silently truncated, the decrypt returns success, and the test fails.

Switch the macOS backend to call `CCCrypt` without
`kCCOptionPKCS7Padding`, then validate the padding by hand: the last
byte must be in [1, kCCBlockSizeAES128] and every padding byte must
equal that value, matching the strict PKCS#7 contract the other two
backends enforce. Behaviour for valid ciphertexts is unchanged; the
behaviour for tampered ciphertexts now matches Linux/Windows.

Signed-off-by: Andrew Udvare <audvare@gmail.com>

8 of 9 new or added lines in 1 file covered. (88.89%)

138 of 158 relevant lines covered (87.34%)

5.23 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
91.3
src/macos.c
Jobs
ID Job ID Ran Files Coverage
1 pwsh - 25095780584.1 29 Apr 2026 07:13AM UTC 1
100.0
GitHub Action Run
2 native-Linux - 25095780584.2 29 Apr 2026 07:13AM UTC 2
77.14
GitHub Action Run
3 native-macOS - 25095780584.3 29 Apr 2026 07:13AM UTC 2
78.85
GitHub Action Run
Source Files on build 25095780584
  • Tree
  • List 4
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25095780584
  • 038cea2e on github
  • Prev Build on master (#25095651768)
  • Next Build on master (#25095937950)
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