MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:Martin Skold Date:April 21 2006 8:18am
Subject:bk commit into 5.0 tree (mskold:1.2152) BUG#19088
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of marty. When marty does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet
  1.2152 06/04/21 10:17:55 mskold@stripped +1 -0
  Fix for bug#19088: NDBAPI: Segfault in NdbIndexScanOperation::setBound(...)

  ndb/src/ndbapi/NdbScanOperation.cpp
    1.69 06/04/21 10:17:41 mskold@stripped +5 -0
    Fix for bug#19088: NDBAPI: Segfault in NdbIndexScanOperation::setBound(...)

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	mskold
# Host:	blowfish.ndb.mysql.com
# Root:	/usr/local/home/marty/MySQL/mysql-5.0

--- 1.68/ndb/src/ndbapi/NdbScanOperation.cpp	2006-03-23 09:57:45 +01:00
+++ 1.69/ndb/src/ndbapi/NdbScanOperation.cpp	2006-04-21 10:17:41 +02:00
@@ -1086,6 +1086,11 @@
 NdbIndexScanOperation::setBound(const NdbColumnImpl* tAttrInfo, 
 				int type, const void* aValue, Uint32 len)
 {
+  if (!tAttrInfo)
+  {
+    setErrorCodeAbort(4318);    // Invalid attribute
+    return -1;
+  }
   if (theOperationType == OpenRangeScanRequest &&
       (0 <= type && type <= 4) &&
       len <= 8000) {
Thread
bk commit into 5.0 tree (mskold:1.2152) BUG#19088Martin Skold21 Apr