summaryrefslogtreecommitdiff
path: root/include/mysql
diff options
context:
space:
mode:
authorunknown <acurtis/antony@xiphis.org/ltamd64.xiphis.org>2008-02-19 12:55:13 -0800
committerunknown <acurtis/antony@xiphis.org/ltamd64.xiphis.org>2008-02-19 12:55:13 -0800
commita1915039e8e202c705b6cde961fd2fb95fa84901 (patch)
treeb6da6282108ece427d765da8c37e9adbfdd42017 /include/mysql
parentc2b6e653205d03554d8a7ed8e3e2668ca52c0817 (diff)
downloadmariadb-git-a1915039e8e202c705b6cde961fd2fb95fa84901.tar.gz
Bug#34598
"crash on hpita: Invalid address alignment" Replace dangerous pointer arithmetic - it may occurr where sizeof(int) is less than size of machine alignment requirement. include/mysql/plugin.h: bug34598 change of update func prototype sql/sql_plugin.cc: bug34598 Avoid dangerous pointer arithmetic which can cause unaligned word access. Change of update function prototype
Diffstat (limited to 'include/mysql')
-rw-r--r--include/mysql/plugin.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mysql/plugin.h b/include/mysql/plugin.h
index 50ec051d111..5094f65cb59 100644
--- a/include/mysql/plugin.h
+++ b/include/mysql/plugin.h
@@ -187,7 +187,7 @@ typedef int (*mysql_var_check_func)(MYSQL_THD thd,
*/
typedef void (*mysql_var_update_func)(MYSQL_THD thd,
struct st_mysql_sys_var *var,
- void *var_ptr, void *save);
+ void *var_ptr, const void *save);
/* the following declarations are for internal use only */