[Pcsclite-cvs-commit] r2062 - trunk/PCSC/src

Ludovic Rousseau rousseau at costa.debian.org
Thu May 25 21:50:35 UTC 2006


Author: rousseau
Date: 2006-05-25 21:50:34 +0000 (Thu, 25 May 2006)
New Revision: 2062

Modified:
   trunk/PCSC/src/winscard.c
Log:
SCardTransmit(): do not check if cbSendLength or dwRxLength are >
MAX_BUFFER_SIZE since this is done by the client already


Modified: trunk/PCSC/src/winscard.c
===================================================================
--- trunk/PCSC/src/winscard.c	2006-05-25 21:42:21 UTC (rev 2061)
+++ trunk/PCSC/src/winscard.c	2006-05-25 21:50:34 UTC (rev 2062)
@@ -1420,17 +1420,7 @@
 		}
 	}
 
-	if (cbSendLength > MAX_BUFFER_SIZE)
-	{
-		return SCARD_E_INSUFFICIENT_BUFFER;
-	}
-
 	/*
-	 * Removed - a user may allocate a larger buffer if ( dwRxLength >
-	 * MAX_BUFFER_SIZE ) { return SCARD_E_INSUFFICIENT_BUFFER; }
-	 */
-
-	/*
 	 * Quick fix: PC/SC starts at 1 for bit masking but the IFD_Handler
 	 * just wants 0 or 1
 	 */
@@ -1501,12 +1491,6 @@
 		return SCARD_E_INSUFFICIENT_BUFFER;
 	}
 
-	if (dwRxLength > MAX_BUFFER_SIZE)
-	{
-		*pcbRecvLength = 0;
-		return SCARD_E_INSUFFICIENT_BUFFER;
-	}
-
 	/*
 	 * Successful return
 	 */




More information about the Pcsclite-cvs-commit mailing list