[Pcsclite-cvs-commit] r2596 - trunk/Drivers/ccid/src

rousseau at alioth.debian.org rousseau at alioth.debian.org
Tue Jul 3 16:10:28 UTC 2007


Author: rousseau
Date: 2007-07-03 16:10:28 +0000 (Tue, 03 Jul 2007)
New Revision: 2596

Modified:
   trunk/Drivers/ccid/src/ccid.c
Log:
ccid_error(): increase the size of var_text[] to avoid a buffer overflow

Thanks to Anders Storsveen for the bug report


Modified: trunk/Drivers/ccid/src/ccid.c
===================================================================
--- trunk/Drivers/ccid/src/ccid.c	2007-07-03 15:12:42 UTC (rev 2595)
+++ trunk/Drivers/ccid/src/ccid.c	2007-07-03 16:10:28 UTC (rev 2596)
@@ -323,7 +323,7 @@
 void ccid_error(int error, const char *file, int line, const char *function)
 {
 	const char *text;
-	char var_text[20];
+	char var_text[30];
 
 	switch (error)
 	{




More information about the Pcsclite-cvs-commit mailing list