Hello all,

I tried to send extend APDU in opensc-explorer with this command:
apdu 00CA0065000800
and found that the command failed due to insufficient buffer, which had
been automatically allocated:

(The line starting with ">>" is manually added to code by me to track
the process)
> OpenSC [3F00]> apdu 00CA0065000800
> 0xb778f990 12:02:54.903 [opensc-explorer] apdu.c:732:sc_bytes2apdu:
> Case 2 extended APDU, 7 bytes:    ins=ca p1=00 p2=65 lc=0000 le=0800
> Sending: 00 CA 00 65 00 08 00
> 0xb778f990 12:02:54.903 [opensc-explorer] apdu.c:540:sc_transmit_apdu:
> called
> >> Check extended APDU
> >> Ex APDU OK
> >> switch (apdu->cse & SC_APDU_SHORT_MASK)
>   >> SC_APDU_CASE_2_SHORT
>     >> datalen & Lc are OK
>     >> resplen & resp are OK
>     >> Buffer is not enough
> 0xb778f990 12:02:54.903 [opensc-explorer] apdu.c:358:sc_check_apdu:
> Invalid Case 2 extended APDU:
> cse=12 cla=00 ins=ca p1=00 p2=65 lc=0 le=2048
> resp=0xbfe00352 resplen=261 data=(nil) datalen=0
> APDU transmit failed: Invalid arguments

Do we consider this a bug?

-- 
Regards,
Quân

_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to