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

thumbor / libthumbor / 39154255360
100%

Build:
DEFAULT BRANCH: master
Ran 18 Oct 2026 06:28PM UTC
Jobs 5
Files 7
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

18 Oct 2026 06:27PM UTC coverage: 100.0%. Remained the same
39154255360

push

github

marcelometal
Compare signatures in constant time and mark MD5 as non-security

BaseUrlSigner.validate compared the expected and the received signature
with ==, which short-circuits on the first differing byte. For a 20-byte
HMAC that leak is hard to exploit over a network, but hmac.compare_digest
exists for exactly this comparison and costs one line. Both sides are
normalized to bytes first so callers that pass the signature as str, which
== silently treated as a mismatch, keep working. A signature that is
neither text nor bytes, such as None, still returns False instead of
reaching compare_digest, which raises TypeError for it. url_for hashes
image_url with MD5 only to build the legacy URL path, so the call now
passes usedforsecurity=False; on interpreters built with FIPS enforcement
md5() raises without that flag, and a test pins it because no other test
would notice it going missing.

Behavior for every existing caller is unchanged except that a str signature
is now compared by value instead of always failing. This overlaps with the
six removal on the same two files and will need a trivial rebase on
whichever lands second.

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

268 of 268 relevant lines covered (100.0%)

5.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3.14 - 39154255360.1 18 Oct 2026 06:28PM UTC 7
100.0
GitHub Action Run
2 run-3.11 - 39154255360.2 18 Oct 2026 06:28PM UTC 7
100.0
GitHub Action Run
3 run-3.15 - 39154255360.3 18 Oct 2026 06:28PM UTC 7
100.0
GitHub Action Run
4 run-3.13 - 39154255360.4 18 Oct 2026 06:28PM UTC 7
100.0
GitHub Action Run
5 run-3.12 - 39154255360.5 18 Oct 2026 06:28PM UTC 7
100.0
GitHub Action Run
Source Files on build 39154255360
  • Tree
  • List 7
  • Changed 2
  • Source Changed 2
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #39154255360
  • de2c5a8a on github
  • Prev Build on master (#39141829422)
  • Next Build on master (#39154363403)
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