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

LudovicRousseau / pyscard / 148
67%

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

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 2935 relevant lines covered (28.52%)

1.43 hits per line

Jobs
ID Job ID Ran Files Coverage
1 148.1 07 Sep 2020 08:17AM UTC 0
28.49
Travis Job 148.1
2 148.2 07 Sep 2020 08:17AM UTC 0
28.49
Travis Job 148.2
3 148.3 07 Sep 2020 08:17AM UTC 0
28.49
Travis Job 148.3
4 148.4 07 Sep 2020 08:17AM UTC 0
28.49
Travis Job 148.4
5 148.5 07 Sep 2020 08:17AM UTC 0
28.52
Travis Job 148.5
Source Files on build 148
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #148
  • 76b7388b on github
  • Prev Build on master (#147)
  • Next Build on master (#149)
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