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

agronholm / cbor2 / 250 / 4
95%
master: 95%

Build:
DEFAULT BRANCH: master
Ran 21 Jul 2020 04:43PM UTC
Files 5
Run time 1s
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 Jul 2020 04:39PM UTC coverage: 93.867%. Remained the same
TOXENV=py27

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.

704 of 750 relevant lines covered (93.87%)

0.94 hits per line

Source Files on job 250.4 (TOXENV=py27)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 219
  • Travis Job 250.4
  • 63672d7a on github
  • Prev Job for TOXENV=py27 on master (#242.4)
  • Next Job for TOXENV=py27 on master (#252.4)
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