[Pcsclite-cvs-commit] r6691 - trunk/HandlerTest/Host
ludovic.rousseau at free.fr
ludovic.rousseau at free.fr
Tue Jul 30 08:50:01 UTC 2013
Author: rousseau
Date: 2013-07-30 08:50:01 +0000 (Tue, 30 Jul 2013)
New Revision: 6691
Modified:
trunk/HandlerTest/Host/handler_test.c
Log:
Initialize atrlength before using it
Some drivers may check this value before filling the atr[] buffer.
Thanks to Frank Morgner for the patch
Modified: trunk/HandlerTest/Host/handler_test.c
===================================================================
--- trunk/HandlerTest/Host/handler_test.c 2013-07-29 14:17:37 UTC (rev 6690)
+++ trunk/HandlerTest/Host/handler_test.c 2013-07-30 08:50:01 UTC (rev 6691)
@@ -272,7 +272,7 @@
{
int rv, test_rv = 1;
UCHAR atr[MAX_ATR_SIZE];
- DWORD atrlength;
+ DWORD atrlength = MAX_ATR_SIZE;
if (device_name)
{
More information about the Pcsclite-cvs-commit
mailing list