~ubuntu-branches/ubuntu/utopic/mariadb-5.5/utopic-security

« back to all changes in this revision

Viewing changes to sql/sql_plugin.cc

  • Committer: Package Import Robot
  • Author(s): Otto Kekäläinen
  • Date: 2014-04-17 20:55:22 UTC
  • mfrom: (2.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20140417205522-wof4l36nxhlkn89m
* New upstream release, fixing the following security issues:
  * Corresponding MariaDB CVEs for Oracle SPU April 2014 (Closes: #745330)
    - CVE-2014-0384 
    - CVE-2014-2419 
    - CVE-2014-2430 
    - CVE-2014-2431 
    - CVE-2014-2432 
    - CVE-2014-2436 
    - CVE-2014-2438 
    - CVE-2014-2440
* Re-enabled TokuDB with "if arch amd64" in d/rules
* Applied patch to log init output better
  (Closes https://mariadb.atlassian.net/browse/MDEV-5957)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2900
2900
  DBUG_ENTER("intern_sys_var_ptr");
2901
2901
  DBUG_ASSERT(offset >= 0);
2902
2902
  DBUG_ASSERT((uint)offset <= global_system_variables.dynamic_variables_head);
 
2903
  mysql_mutex_assert_not_owner(&LOCK_open);
2903
2904
 
2904
2905
  if (!thd)
2905
2906
    DBUG_RETURN((uchar*) global_system_variables.dynamic_variables_ptr + offset);
3164
3165
 
3165
3166
static SHOW_TYPE pluginvar_show_type(st_mysql_sys_var *plugin_var)
3166
3167
{
3167
 
  switch (plugin_var->flags & PLUGIN_VAR_TYPEMASK) {
 
3168
  switch (plugin_var->flags & (PLUGIN_VAR_TYPEMASK | PLUGIN_VAR_UNSIGNED)) {
3168
3169
  case PLUGIN_VAR_BOOL:
3169
3170
    return SHOW_MY_BOOL;
3170
3171
  case PLUGIN_VAR_INT:
3171
 
    return SHOW_INT;
 
3172
    return SHOW_SINT;
 
3173
  case PLUGIN_VAR_INT | PLUGIN_VAR_UNSIGNED:
 
3174
    return SHOW_UINT;
3172
3175
  case PLUGIN_VAR_LONG:
3173
 
    return SHOW_LONG;
 
3176
    return SHOW_SLONG;
 
3177
  case PLUGIN_VAR_LONG | PLUGIN_VAR_UNSIGNED:
 
3178
    return SHOW_ULONG;
3174
3179
  case PLUGIN_VAR_LONGLONG:
3175
 
    return SHOW_LONGLONG;
 
3180
    return SHOW_SLONGLONG;
 
3181
  case PLUGIN_VAR_LONGLONG | PLUGIN_VAR_UNSIGNED:
 
3182
    return SHOW_ULONGLONG;
3176
3183
  case PLUGIN_VAR_STR:
3177
3184
    return SHOW_CHAR_PTR;
3178
3185
  case PLUGIN_VAR_ENUM: