mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Avoid memory overruns when buffer_length is too small (when fetching binary data in prepared statements)
include/errmsg.h: Remove compiler warning libmysql/libmysql.c: Avoid memory overruns when buffer_length is too small libmysqld/lib_sql.cc: Fixed function name sql/mysqld.cc: Code cleanup; Added back shared memory support (which was accidently deleted) sql/sql_parse.cc: Clean up multi-query
This commit is contained in:
@@ -30,7 +30,7 @@ extern const char *client_errors[]; /* Error messages */
|
||||
#define CR_MAX_ERROR 2999
|
||||
#if defined(OS2) && defined(MYSQL_SERVER)
|
||||
#define CER(X) client_errors[(X)-CR_MIN_ERROR]
|
||||
#else
|
||||
#elif !defined(ER)
|
||||
#define ER(X) client_errors[(X)-CR_MIN_ERROR]
|
||||
#endif
|
||||
#define CLIENT_ERRMAP 2 /* Errormap used by my_error() */
|
||||
|
Reference in New Issue
Block a user