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

LudovicRousseau / pyscard / 148 / 2
67%
master: 67%

Build:
DEFAULT BRANCH: master
Ran 07 Sep 2020 08:17AM UTC
Files 65
Run time 6s
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

07 Sep 2020 08:12AM UTC coverage: 28.489%. Remained the same
148.2

push

travis-ci

LudovicRousseau
SCardStatus(): Fix a crash in case of PC/SC error

If SCardStatus() returns an error code then the readername parameter is
not set. So the memory contains random bytes returned by mem_Malloc().

This resulted in strange errors like:
SystemError: ../Objects/listobject.c:305: bad argument to internal function

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "./transmit_card_removed.py", line 72, in <module>
    hresult, reader, state, protocol, atr = SCardStatus(hcard)
  File "/usr/local/lib/python3.7/dist-packages/pyscard-1.9.9-py3.7-linux-x86_64.egg/smartcard/scard/scard.py", line 822, in SCardStatus
    return _scard.SCardStatus(hcard)
SystemError: <built-in function SCardStatus> returned a result with an error set

The code now initialize the reader name with a NUL terminated empty
string.

837 of 2938 relevant lines covered (28.49%)

0.28 hits per line

Source Files on job 148.2
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 146
  • Travis Job 148.2
  • 76b7388b on github
  • Prev Job for on master (#147.1)
  • Next Job for on master (#149.1)
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