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

teor2345 / tor / 786
63%
master: 64%

Build:
Build:
LAST BUILD BRANCH: ticket34200
DEFAULT BRANCH: master
Ran 22 Aug 2019 03:00AM UTC
Jobs 1
Files 865
Run time 5415min
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

pending completion
786

push

travis-ci

teor2345
monotime: avoid overflow when converting between coarse and ms on Apple

This fix makes sure that the token bucket rate_per_sec_to_rate_per_step()
can not overflow with large rates on iOS, and any other platform where:
  monotime.numerator^2 / monotime.denominator > 512

It also avoids overflow for any other callers that convert values of:
  msec > 2^64 / (10^6 * monotime.denominator)
  coarse_stamp > 2^64 / (monotime.numerator^2 / monotime.denominator)

(These bounds are approximate: the code does exact calculations.)

Fixes bug 31482; bugfix on 0.3.4.1-alpha.

47273 of 75221 relevant lines covered (62.85%)

48244.1 hits per line

Jobs
ID Job ID Ran Files Coverage
6 786.6 (COVERAGE_OPTIONS="--enable-coverage" HARDENING_OPTIONS="" TOR_TEST_RNG_SEED="636f766572616765") 22 Aug 2019 03:00AM UTC 0
62.85
Travis Job 786.6
Source Files on build 786
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #786
  • e9d52e51 on github
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