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

ni / nixnet-python / 687 / 1
68%
master: 68%

Build:
DEFAULT BRANCH: master
Ran 02 May 2018 10:43PM UTC
Files 55
Run time 3s
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

02 May 2018 10:08PM UTC coverage: 67.679% (+0.06%) from 67.621%
687.1

Pull #256

travis-ci

web-flow
fix(API): Pass null-terminated char* to driver

This fixes an Ascii decoding bug in the following three properties:

* DatabaseObject.comment
* Frames.set_session_j1939_addr_filter
* Interface.src_term_start_trigger

When using these property setters, we were passing
a char* without null termination to the driver.
Then, when reading these properties with the
getter, we'd get our string back with non-Ascii
characters on the end, which caused an exception
when trying to decode to Ascii.

In the cprops layer for these properties,
we converted strings to a char* using
create_string_buffer with a length argument,
which results in copying over the python
string into the buffer without a null terminator.

Other places in the _funcs.py would just convert
the python strings to a char_p before passing to
the driver, and doing this doesn't guarantee a
null-terminted char*.

The best strategy for converting python strings
to a null-terminated char* is to use
create_string_buffer without a length argument.
Pull Request #256: fix(API): Pass null-terminated char* to driver

4680 of 6915 relevant lines covered (67.68%)

0.68 hits per line

Source Files on job 687.1
  • Tree
  • List 0
  • Changed 5
  • Source Changed 2
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 640
  • Travis Job 687.1
  • 48744b52 on github
  • Prev Job for on master (#682.6)
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