[Pcsclite-muscle] Possible data truncation on receive in 1.8.14

Marcin Cieslak saper
Fri Nov 13 05:48:03 PST 2015


On Fri, 13 Nov 2015, Ludovic Rousseau wrote:

> Hello,
> 
> 2015-11-13 13:40 GMT+01:00 Marcin Cieslak <saper at saper.info>:
> 
> > Hello,
> >
> > My setup (FreeBSD+OmniKey 4040 PCMCIA+OpenCT IFD) started
> > having trouble after 1.8.14 upgrade (truncated responses
> > from the card terminal that didn't end with 90 00).
> >
> 
> I think you should have the same problem with older versions of pcsc-lite
> as well.

Everything works fine until 8eb9ea1b354b050f997d003cf3b0c5b56f29f9f7
It seems nobody ever used such a large receive buffer (in my
limited experience).

> > The problem turns out is that the receive buffer size
> > is now 65548 bytes on my platform,
> > and my configuration seem to return only
> > 12 bytes with such a large buffer.
> >
> 
> I don't know how a bigger buffer could have a truncation as effect.
> 
> Where exactly does the truncation occurs?

Need to identify: what pcscd is doing it passes buffer 65548 to the
IFD, but 12 bytes only are returned. Will investigate, might
be a bug in the ifd, CT API or somewhere else.

Marcin




More information about the pcsclite-muscle mailing list