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

torproject / tor / 3900 / 5
58%
master: 66%

Build:
Build:
LAST BUILD BRANCH: maint-0.4.3
DEFAULT BRANCH: master
Ran 21 Feb 2019 04:35PM UTC
Files 422
Run time 14min
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

21 Feb 2019 03:07PM UTC coverage: 57.942% (-0.02%) from 57.962%
COVERAGE_OPTIONS="--enable-coverage" HARDENING_OPTIONS=""

push

travis-ci

nmathewson
kist: Don't write above the highwater outbuf mark

KIST works by computing how much should be allowed to write to the kernel for
a given socket, and then it writes that amount to the outbuf.

The problem is that it could be possible that the outbuf already has lots of
data in it from a previous scheduling round (because the kernel is full/busy
and Tor was not able to flush the outbuf yet). KIST ignores that the outbuf
has been filling (is above its "highwater") and writes more anyway. The end
result is that the outbuf length would exceed INT_MAX, hence causing an
assertion error and a corresponding "Bug()" message to get printed to the
logs.

This commit makes it for KIST to take into account the outbuf length when
computing the available space.

Bug found and patch by Rob Jansen.

Closes #29168. TROVE-2019-001.

Signed-off-by: David Goulet <dgoulet@torproject.org>

40285 of 69526 relevant lines covered (57.94%)

27593.37 hits per line

Source Files on job 3900.5 (COVERAGE_OPTIONS="--enable-coverage" HARDENING_OPTIONS="")
  • Tree
  • List 0
  • Changed 57
  • Source Changed 3
  • Coverage Changed 54
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 2679
  • Travis Job 3900.5
  • be84ed1a on github
  • Prev Job for COVERAGE_OPTIONS="--enable-coverage" HARDENING_OPTIONS="" on maint-0.3.3 (#3813.5)
  • Next Job for COVERAGE_OPTIONS="--enable-coverage" HARDENING_OPTIONS="" on maint-0.3.3 (#3915.5)
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