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

ni / nixnet-python / 687
68%

Build:
DEFAULT BRANCH: master
Ran 02 May 2018 10:43PM UTC
Jobs 6
Files 55
Run time 5min
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
687

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

30 of 30 new or added lines in 2 files covered. (100.0%)

4680 of 6915 relevant lines covered (67.68%)

4.06 hits per line

Jobs
ID Job ID Ran Files Coverage
1 687.1 02 May 2018 10:43PM UTC 0
67.68
Travis Job 687.1
2 687.2 02 May 2018 10:44PM UTC 0
67.65
Travis Job 687.2
3 687.3 02 May 2018 10:45PM UTC 0
67.65
Travis Job 687.3
4 687.4 02 May 2018 10:48PM UTC 0
67.65
Travis Job 687.4
5 687.5 02 May 2018 10:46PM UTC 0
67.62
Travis Job 687.5
6 687.6 02 May 2018 10:47PM UTC 0
67.62
Travis Job 687.6
Source Files on build 687
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #687
  • Pull Request #256
  • PR Base - master (#682)
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