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

agronholm / cbor2 / 250
95%

Build:
DEFAULT BRANCH: master
Ran 21 Jul 2020 04:42PM UTC
Jobs 8
Files 5
Run time 2min
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
250

push

travis-ci-com

Sekenre
Fix negative reference counts in C extension

In the C extension, `cbor2` creates several exceptions using
`PyErr_NewExceptionWithDoc`. Then it adds them to the module using
`PyModule_AddObject`, which steals a reference to the object (decrements
its reference count). Since `cbor2` later tries to decrement these
reference counts again in `cbor2_free`, they can become negative. This
results in undefined behaviour such as segmentation faults.

Fix this by incrementing the reference count for exceptions before
adding them to the module.

Fixes #89.

745 of 746 relevant lines covered (99.87%)

7.28 hits per line

Jobs
ID Job ID Ran Files Coverage
2 250.2 (TOXENV=pypy) 21 Jul 2020 04:43PM UTC 0
92.13
Travis Job 250.2
3 250.3 (TOXENV=pypy3) 21 Jul 2020 04:43PM UTC 0
88.93
Travis Job 250.3
4 250.4 (TOXENV=py27) 21 Jul 2020 04:43PM UTC 0
93.87
Travis Job 250.4
5 250.5 (TOXENV=py35) 21 Jul 2020 04:42PM UTC 0
94.27
Travis Job 250.5
6 250.6 (TOXENV=py36) 21 Jul 2020 04:42PM UTC 0
89.87
Travis Job 250.6
7 250.7 (TOXENV=py37) 21 Jul 2020 04:44PM UTC 0
89.87
Travis Job 250.7
8 250.8 (TOXENV=py38) 21 Jul 2020 04:44PM UTC 0
90.1
Travis Job 250.8
9 250.9 (TOXENV=py38) 21 Jul 2020 04:43PM UTC 0
90.1
Travis Job 250.9
Source Files on build 250
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #250
  • 63672d7a on github
  • Prev Build on master (#242)
  • Next Build on master (#252)
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