List:Commits« Previous MessageNext Message »
From:msvensson Date:December 22 2006 11:35am
Subject:bk commit into 5.1 tree (msvensson:1.2387)
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of msvensson. When msvensson 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, 2006-12-22 12:35:06+01:00, msvensson@stripped +1 -0
  Potential use of NULL pointer in 'plugin_for_each_with_mask', check pointer
  before referencing it.

  sql/sql_plugin.cc@stripped, 2006-12-22 12:35:04+01:00, msvensson@stripped +1 -1
    Make sure the plugin being refernced in the plugins array has not been set to NULL already.

# 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:	msvensson
# Host:	pilot.mysql.com
# Root:	/home/msvensson/mysql/mysql-5.1-new-maint

--- 1.41/sql/sql_plugin.cc	2006-12-22 12:12:57 +01:00
+++ 1.42/sql/sql_plugin.cc	2006-12-22 12:35:04 +01:00
@@ -985,7 +985,7 @@
     {
       rw_rdlock(&THR_LOCK_plugin);
       for (uint i=idx; i < total; i++)
-        if (plugins[i]->state & state_mask)
+        if (plugins[i] && plugins[i]->state & state_mask)
           plugins[i]=0;
       rw_unlock(&THR_LOCK_plugin);
     }
Thread
bk commit into 5.1 tree (msvensson:1.2387)msvensson22 Dec