From: Date: April 28 2008 4:23pm Subject: bk commit into 5.1 tree (frazer:1.2589) BUG#36375 List-Archive: http://lists.mysql.com/commits/46125 X-Bug: 36375 Message-Id: <200804281423.m3SENlEs022175@forth.ndb.mysql.com> Below is the list of changes that have just been committed into a local 5.1 repository of frazer. When frazer 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@stripped, 2008-04-28 15:23:30+01:00, frazer@stripped +1 -0 Bug #36375 Issue when old Api scan operation is closed before it has been executed. Uninitialised members are used during scan close, and this can result in a SEGV. Testcase for Bug 36124 provides coverage : testScan -n Bug36124 storage/ndb/src/ndbapi/NdbScanOperation.cpp@stripped, 2008-04-28 15:23:23+01:00, frazer@stripped +5 -0 Bug #36375 Issue when old Api scan operation is closed before it has been executed. Uninitialised members are used during scan close, and this can result in a SEGV. diff -Nrup a/storage/ndb/src/ndbapi/NdbScanOperation.cpp b/storage/ndb/src/ndbapi/NdbScanOperation.cpp --- a/storage/ndb/src/ndbapi/NdbScanOperation.cpp 2008-04-08 23:30:18 +01:00 +++ b/storage/ndb/src/ndbapi/NdbScanOperation.cpp 2008-04-28 15:23:23 +01:00 @@ -121,6 +121,11 @@ NdbScanOperation::init(const NdbTableImp m_executed = false; m_scanUsingOldApi= false; m_interpretedCodeOldApi= NULL; + + m_api_receivers_count = 0; + m_current_api_receiver = 0; + m_sent_receivers_count = 0; + m_conf_receivers_count = 0; return 0; }