<div dir="ltr"><div><div><div>Hi All, <br><br></div>I have managed to resolve this issue myself by changing the APDU. I found unexpected behaviour under Windows as well, so I would say it could be differences between readers. <br><br></div>Regards<br><br></div>William To<br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 18, 2016 at 4:50 PM, William To <span dir="ltr"><<a href="mailto:william.to@erg.com.hk" target="_blank">william.to@erg.com.hk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi All, <br><br></div>I also checked the reader's behaviour under Windows by sending the offending command. The card/reader combo returns an unexpected value also. <br><br></div><div>I am looking at circumventing the problem by changing the APDU being sent to the card to see if the issue is fixed. <br></div><div><br></div>Regards<span class="HOEnZb"><font color="#888888"><br><br></font></span></div><span class="HOEnZb"><font color="#888888">William To<br></font></span></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Wed, May 18, 2016 at 4:46 PM, Ludovic Rousseau <span dir="ltr"><<a href="mailto:ludovic.rousseau@gmail.com" target="_blank">ludovic.rousseau@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span>2016-05-18 10:24 GMT+02:00 William To <span dir="ltr"><<a href="mailto:william.to@erg.com.hk" target="_blank">william.to@erg.com.hk</a>></span>:<br></span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><span><div><div>Hi All, <br></div><br></div>Log is here:<br><br>pcscd log:<br><br></span><span>00000169 winscard_svc.c:308:() Received command: TRANSMIT from client 10<br>00000055 winscard.c:1636:() Send Protocol: T=0<br>00000025 APDU: 00 A4 00 00 00<br>00000028 ifdhandler.c:1264:() usb:04e6/5810:libusb:/dev/usb:4e6.5810/0 (lun: 0)<br>00000026 commands.c:1412:() T=0 (extended): 5 bytes<br>00000022 -> 000000 6F 05 00 00 00 00 5C 00 00 00 00 A4 00 00 00<br>00017558
 <- 000000 80 1C 00 00 00 00 5C 00 00 00 6F 18 83 02 3F 00 88 01 00 
8A 01 05 82 02 3F 00 8D 02 00 03 84 00 8C 00 AB 00 90 00<br>00000065 commands.c:1364:() overrun by 26 bytes<br></span></div></div></blockquote><div><br></div><div>The reader sent 28  (0x1C) bytes of data. But the driver was expecting only 2 bytes at most. So 26 bytes are in excess.<br><br></div><div>Maybe it is a problem with your application that is expecting only 2 bytes for this APDU command and passed a reception buffer for only 2 bytes.<br></div></div>Or it is a problem with the Solaris version of pcsc-lite.<br clear="all"></div><span><div class="gmail_extra"><br></div><div class="gmail_extra">Bye<br></div><div class="gmail_extra"><br>-- <br><div> Dr. Ludovic Rousseau</div>
</div></span></div>
<br></div></div><span class="">_______________________________________________<br>
Pcsclite-muscle mailing list<br>
<a href="mailto:Pcsclite-muscle@lists.alioth.debian.org" target="_blank">Pcsclite-muscle@lists.alioth.debian.org</a><br>
<a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle" rel="noreferrer" target="_blank">http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle</a><br></span></blockquote></div><br></div>
</blockquote></div><br></div>