MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:jbalint Date:December 7 2007 5:38am
Subject:Connector/ODBC 3.51 commit: r933 - branches/guffert/driver
View as plain text  
Modified:
   branches/guffert/driver/execute.c
Log:
fix possible negative length use

Modified: branches/guffert/driver/execute.c
===================================================================
--- branches/guffert/driver/execute.c	2007-12-07 05:07:04 UTC (rev 932)
+++ branches/guffert/driver/execute.c	2007-12-07 05:38:52 UTC (rev 933)
@@ -260,7 +260,7 @@
         else /* TODO this is stupid, check condition above, shouldn't we be checking only
octet_length, not ptr? */
           length= strlen(data);
 
-        if (!aprec->octet_length_ptr && aprec->octet_length &&
+        if (!aprec->octet_length_ptr && aprec->octet_length > 0
&&
             aprec->octet_length != SQL_SETPARAM_VALUE_MAX)
           length= min(length, aprec->octet_length);
       }

Thread
Connector/ODBC 3.51 commit: r933 - branches/guffert/driverjbalint7 Dec