Error: RESOURCE_LEAK (CWE-772): mysql-5.1.70/storage/csv/ha_tina.cc:156: alloc_fn: Storage is returned from allocation function "my_multi_malloc(myf, ...)". mysql-5.1.70/libmysql/mulalloc.c:50:3: alloc_fn: Storage is returned from allocation function "my_malloc(size_t, myf)". mysql-5.1.70/libmysql/my_malloc.c:37:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". mysql-5.1.70/libmysql/my_malloc.c:37:3: var_assign: Assigning: "point" = "malloc(size)". mysql-5.1.70/libmysql/my_malloc.c:59:3: return_alloc: Returning allocated memory "point". mysql-5.1.70/libmysql/mulalloc.c:50:3: var_assign: Assigning: "start" = "my_malloc(tot_length, myFlags)". mysql-5.1.70/libmysql/mulalloc.c:54:3: var_assign: Assigning: "res" = "start". mysql-5.1.70/libmysql/mulalloc.c:62:3: return_alloc: Returning allocated memory "start". mysql-5.1.70/storage/csv/ha_tina.cc:156: leaked_storage: Ignoring storage allocated by "my_multi_malloc(48, &share, 800UL, &tmp_name, length + 1U, NULL)" leaks it. Error: RESOURCE_LEAK (CWE-772): mysql-5.1.70/storage/archive/ha_archive.cc:328: alloc_fn: Storage is returned from allocation function "my_multi_malloc(myf, ...)". mysql-5.1.70/libmysql/mulalloc.c:50:3: alloc_fn: Storage is returned from allocation function "my_malloc(size_t, myf)". mysql-5.1.70/libmysql/my_malloc.c:37:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". mysql-5.1.70/libmysql/my_malloc.c:37:3: var_assign: Assigning: "point" = "malloc(size)". mysql-5.1.70/libmysql/my_malloc.c:59:3: return_alloc: Returning allocated memory "point". mysql-5.1.70/libmysql/mulalloc.c:50:3: var_assign: Assigning: "start" = "my_malloc(tot_length, myFlags)". mysql-5.1.70/libmysql/mulalloc.c:54:3: var_assign: Assigning: "res" = "start". mysql-5.1.70/libmysql/mulalloc.c:62:3: return_alloc: Returning allocated memory "start". mysql-5.1.70/storage/archive/ha_archive.cc:328: leaked_storage: Ignoring storage allocated by "my_multi_malloc(48, &this->share, 50696UL, &tmp_name, length + 1U, NULL)" leaks it. Error: RESOURCE_LEAK (CWE-772): mysql-5.1.70/sql/sql_table.cc:7830: alloc_fn: Storage is returned from allocation function "Sql_alloc::operator new[](size_t)". mysql-5.1.70/sql/sql_list.h:35:5: alloc_fn: Storage is returned from allocation function "sql_alloc(size_t)". mysql-5.1.70/client/mysql.cc:5053:3: alloc_fn: Storage is returned from allocation function "my_malloc(size_t, myf)". mysql-5.1.70/libmysql/my_malloc.c:37:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". mysql-5.1.70/libmysql/my_malloc.c:37:3: var_assign: Assigning: "point" = "malloc(size)". mysql-5.1.70/libmysql/my_malloc.c:59:3: return_alloc: Returning allocated memory "point". mysql-5.1.70/client/mysql.cc:5053:3: return_alloc_fn: Directly returning storage allocated by "my_malloc(size_t, myf)". mysql-5.1.70/sql/sql_list.h:35:5: return_alloc_fn: Directly returning storage allocated by "sql_alloc(size_t)". mysql-5.1.70/sql/sql_table.cc:7830: var_assign: Assigning: "copy" = storage returned from "new Copy_field[to->s->fields]". mysql-5.1.70/sql/sql_table.cc:7851: var_assign: Assigning: "copy_end" = "copy". mysql-5.1.70/sql/sql_table.cc:7869: noescape: Resource "copy_end++" is not freed or pointed-to in function "Copy_field::set(Field *, Field *, bool)". mysql-5.1.70/sql/field_conv.cc:579:18: noescape: "Copy_field::set(Field *, Field *, bool)" does not free or save its pointer parameter "this". mysql-5.1.70/sql/sql_table.cc:7977: noescape: Resource " + @dim0" is not freed or pointed-to in function "Copy_field::~Copy_field()". mysql-5.1.70/sql/field.h:2159:3: noescape: "Copy_field::~Copy_field()" does not free or save its pointer parameter "this". mysql-5.1.70/sql/sql_table.cc:7977: noescape: Resource "" is not freed or pointed-to in function "Sql_alloc::operator delete[](void *, size_t)". mysql-5.1.70/sql/sql_list.h:46:39: noescape: "Sql_alloc::operator delete[](void *, size_t)" does not free or save its pointer parameter "ptr". mysql-5.1.70/sql/sql_table.cc:8010: leaked_storage: Variable "copy_end" going out of scope leaks the storage it points to. mysql-5.1.70/sql/sql_table.cc:8010: leaked_storage: Variable "copy" going out of scope leaks the storage it points to. mysql-5.1.70/sql/sql_table.cc:8010: leaked_storage: Returning without freeing "" leaks the storage that it points to. Error: RESOURCE_LEAK (CWE-772): mysql-5.1.70/sql/sql_table.cc:7830: alloc_fn: Storage is returned from allocation function "Sql_alloc::operator new[](size_t)". mysql-5.1.70/sql/sql_list.h:35:5: alloc_fn: Storage is returned from allocation function "sql_alloc(size_t)". mysql-5.1.70/client/mysql.cc:5053:3: alloc_fn: Storage is returned from allocation function "my_malloc(size_t, myf)". mysql-5.1.70/libmysql/my_malloc.c:37:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". mysql-5.1.70/libmysql/my_malloc.c:37:3: var_assign: Assigning: "point" = "malloc(size)". mysql-5.1.70/libmysql/my_malloc.c:59:3: return_alloc: Returning allocated memory "point". mysql-5.1.70/client/mysql.cc:5053:3: return_alloc_fn: Directly returning storage allocated by "my_malloc(size_t, myf)". mysql-5.1.70/sql/sql_list.h:35:5: return_alloc_fn: Directly returning storage allocated by "sql_alloc(size_t)". mysql-5.1.70/sql/sql_table.cc:7830: var_assign: Assigning: "copy" = storage returned from "new Copy_field[to->s->fields]". mysql-5.1.70/sql/sql_table.cc:7834: leaked_storage: Variable "copy" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): mysql-5.1.70/sql/client.c:2237: alloc_fn: Storage is returned from allocation function "my_multi_malloc(myf, ...)". mysql-5.1.70/libmysql/mulalloc.c:50:3: alloc_fn: Storage is returned from allocation function "my_malloc(size_t, myf)". mysql-5.1.70/libmysql/my_malloc.c:37:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". mysql-5.1.70/libmysql/my_malloc.c:37:3: var_assign: Assigning: "point" = "malloc(size)". mysql-5.1.70/libmysql/my_malloc.c:59:3: return_alloc: Returning allocated memory "point". mysql-5.1.70/libmysql/mulalloc.c:50:3: var_assign: Assigning: "start" = "my_malloc(tot_length, myFlags)". mysql-5.1.70/libmysql/mulalloc.c:54:3: var_assign: Assigning: "res" = "start". mysql-5.1.70/libmysql/mulalloc.c:62:3: return_alloc: Returning allocated memory "start". mysql-5.1.70/sql/client.c:2237: leaked_storage: Ignoring storage allocated by "my_multi_malloc(0, &mysql->host_info, (uint)strlen(host_info) + 1U, &mysql->host, (uint)strlen(host) + 1U, &mysql->unix_socket, (unix_socket ? (uint)strlen(unix_socket) + 1U : 1U), &mysql->server_version, (uint)(end - (char *)net->read_pos), NULL)" leaks it. Error: RESOURCE_LEAK (CWE-772): mysql-5.1.70/server-tools/instance-manager/user_management_commands.cc:133: alloc_fn: Storage is returned from allocation function "get_tty_password(char const *)". mysql-5.1.70/libmysql/get_password.c:217:3: alloc_fn: Storage is returned from allocation function "my_strdup(char const *, myf)". mysql-5.1.70/libmysql/my_malloc.c:91:3: alloc_fn: Storage is returned from allocation function "my_malloc(size_t, myf)". mysql-5.1.70/libmysql/my_malloc.c:37:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". mysql-5.1.70/libmysql/my_malloc.c:37:3: var_assign: Assigning: "point" = "malloc(size)". mysql-5.1.70/libmysql/my_malloc.c:59:3: return_alloc: Returning allocated memory "point". mysql-5.1.70/libmysql/my_malloc.c:91:3: var_assign: Assigning: "ptr" = "my_malloc(length, my_flags)". mysql-5.1.70/libmysql/my_malloc.c:92:5: noescape: Resource "(uchar *)ptr" is not freed or pointed-to in function "__coverity_memcpy(void *, void const *, unsigned long)". mysql-5.1.70/libmysql/my_malloc.c:93:3: return_alloc: Returning allocated memory "ptr". mysql-5.1.70/libmysql/get_password.c:217:3: return_alloc_fn: Directly returning storage allocated by "my_strdup(char const *, myf)". mysql-5.1.70/server-tools/instance-manager/user_management_commands.cc:133: var_assign: Assigning: "passwd1" = storage returned from "get_tty_password("Enter password: ")". mysql-5.1.70/server-tools/instance-manager/user_management_commands.cc:136: noescape: Resource "passwd1" is not freed or pointed-to in function "strcmp(char const *, char const *)". mysql-5.1.70/server-tools/instance-manager/user_management_commands.cc:139: leaked_storage: Variable "passwd1" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): mysql-5.1.70/server-tools/instance-manager/user_management_commands.cc:134: alloc_fn: Storage is returned from allocation function "get_tty_password(char const *)". mysql-5.1.70/libmysql/get_password.c:217:3: alloc_fn: Storage is returned from allocation function "my_strdup(char const *, myf)". mysql-5.1.70/libmysql/my_malloc.c:91:3: alloc_fn: Storage is returned from allocation function "my_malloc(size_t, myf)". mysql-5.1.70/libmysql/my_malloc.c:37:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". mysql-5.1.70/libmysql/my_malloc.c:37:3: var_assign: Assigning: "point" = "malloc(size)". mysql-5.1.70/libmysql/my_malloc.c:59:3: return_alloc: Returning allocated memory "point". mysql-5.1.70/libmysql/my_malloc.c:91:3: var_assign: Assigning: "ptr" = "my_malloc(length, my_flags)". mysql-5.1.70/libmysql/my_malloc.c:92:5: noescape: Resource "(uchar *)ptr" is not freed or pointed-to in function "__coverity_memcpy(void *, void const *, unsigned long)". mysql-5.1.70/libmysql/my_malloc.c:93:3: return_alloc: Returning allocated memory "ptr". mysql-5.1.70/libmysql/get_password.c:217:3: return_alloc_fn: Directly returning storage allocated by "my_strdup(char const *, myf)". mysql-5.1.70/server-tools/instance-manager/user_management_commands.cc:134: var_assign: Assigning: "passwd2" = storage returned from "get_tty_password("Re-type password: ")". mysql-5.1.70/server-tools/instance-manager/user_management_commands.cc:136: noescape: Resource "passwd2" is not freed or pointed-to in function "strcmp(char const *, char const *)". mysql-5.1.70/server-tools/instance-manager/user_management_commands.cc:139: leaked_storage: Variable "passwd2" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): mysql-5.1.70/server-tools/instance-manager/user_management_commands.cc:134: alloc_fn: Storage is returned from allocation function "get_tty_password(char const *)". mysql-5.1.70/libmysql/get_password.c:217:3: alloc_fn: Storage is returned from allocation function "my_strdup(char const *, myf)". mysql-5.1.70/libmysql/my_malloc.c:91:3: alloc_fn: Storage is returned from allocation function "my_malloc(size_t, myf)". mysql-5.1.70/libmysql/my_malloc.c:37:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". mysql-5.1.70/libmysql/my_malloc.c:37:3: var_assign: Assigning: "point" = "malloc(size)". mysql-5.1.70/libmysql/my_malloc.c:59:3: return_alloc: Returning allocated memory "point". mysql-5.1.70/libmysql/my_malloc.c:91:3: var_assign: Assigning: "ptr" = "my_malloc(length, my_flags)". mysql-5.1.70/libmysql/my_malloc.c:92:5: noescape: Resource "(uchar *)ptr" is not freed or pointed-to in function "__coverity_memcpy(void *, void const *, unsigned long)". mysql-5.1.70/libmysql/my_malloc.c:93:3: return_alloc: Returning allocated memory "ptr". mysql-5.1.70/libmysql/get_password.c:217:3: return_alloc_fn: Directly returning storage allocated by "my_strdup(char const *, myf)". mysql-5.1.70/server-tools/instance-manager/user_management_commands.cc:134: var_assign: Assigning: "passwd2" = storage returned from "get_tty_password("Re-type password: ")". mysql-5.1.70/server-tools/instance-manager/user_management_commands.cc:136: noescape: Resource "passwd2" is not freed or pointed-to in function "strcmp(char const *, char const *)". mysql-5.1.70/server-tools/instance-manager/user_management_commands.cc:142: leaked_storage: Variable "passwd2" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): mysql-5.1.70/server-tools/instance-manager/user_management_commands.cc:259: alloc_fn: Storage is returned from allocation function "get_password()". mysql-5.1.70/server-tools/instance-manager/user_management_commands.cc:133:22: alloc_fn: Storage is returned from allocation function "get_tty_password(char const *)". mysql-5.1.70/libmysql/get_password.c:217:3: alloc_fn: Storage is returned from allocation function "my_strdup(char const *, myf)". mysql-5.1.70/libmysql/my_malloc.c:91:3: alloc_fn: Storage is returned from allocation function "my_malloc(size_t, myf)". mysql-5.1.70/libmysql/my_malloc.c:37:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". mysql-5.1.70/libmysql/my_malloc.c:37:3: var_assign: Assigning: "point" = "malloc(size)". mysql-5.1.70/libmysql/my_malloc.c:59:3: return_alloc: Returning allocated memory "point". mysql-5.1.70/libmysql/my_malloc.c:91:3: var_assign: Assigning: "ptr" = "my_malloc(length, my_flags)". mysql-5.1.70/libmysql/my_malloc.c:92:5: noescape: Resource "(uchar *)ptr" is not freed or pointed-to in function "__coverity_memcpy(void *, void const *, unsigned long)". mysql-5.1.70/libmysql/my_malloc.c:93:3: return_alloc: Returning allocated memory "ptr". mysql-5.1.70/libmysql/get_password.c:217:3: return_alloc_fn: Directly returning storage allocated by "my_strdup(char const *, myf)". mysql-5.1.70/server-tools/instance-manager/user_management_commands.cc:133:22: var_assign: Assigning: "passwd1" = "get_tty_password("Enter password: ")". mysql-5.1.70/server-tools/instance-manager/user_management_commands.cc:136:3: noescape: Resource "passwd1" is not freed or pointed-to in function "strcmp(char const *, char const *)". mysql-5.1.70/server-tools/instance-manager/user_management_commands.cc:142:3: return_alloc: Returning allocated memory "passwd1". mysql-5.1.70/server-tools/instance-manager/user_management_commands.cc:259: var_assign: Assigning: "password" = storage returned from "get_password()". mysql-5.1.70/server-tools/instance-manager/user_management_commands.cc:262: noescape: Resource "password" is not freed or pointed-to in function "User::User(LEX_STRING const *, char const *)". mysql-5.1.70/server-tools/instance-manager/user_map.cc:28:57: noescape: "User::User(LEX_STRING const *, char const *)" does not free or save its pointer parameter "password". mysql-5.1.70/server-tools/instance-manager/user_management_commands.cc:273: leaked_storage: Variable "password" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): mysql-5.1.70/server-tools/instance-manager/user_management_commands.cc:354: alloc_fn: Storage is returned from allocation function "get_password()". mysql-5.1.70/server-tools/instance-manager/user_management_commands.cc:133:22: alloc_fn: Storage is returned from allocation function "get_tty_password(char const *)". mysql-5.1.70/libmysql/get_password.c:217:3: alloc_fn: Storage is returned from allocation function "my_strdup(char const *, myf)". mysql-5.1.70/libmysql/my_malloc.c:91:3: alloc_fn: Storage is returned from allocation function "my_malloc(size_t, myf)". mysql-5.1.70/libmysql/my_malloc.c:37:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". mysql-5.1.70/libmysql/my_malloc.c:37:3: var_assign: Assigning: "point" = "malloc(size)". mysql-5.1.70/libmysql/my_malloc.c:59:3: return_alloc: Returning allocated memory "point". mysql-5.1.70/libmysql/my_malloc.c:91:3: var_assign: Assigning: "ptr" = "my_malloc(length, my_flags)". mysql-5.1.70/libmysql/my_malloc.c:92:5: noescape: Resource "(uchar *)ptr" is not freed or pointed-to in function "__coverity_memcpy(void *, void const *, unsigned long)". mysql-5.1.70/libmysql/my_malloc.c:93:3: return_alloc: Returning allocated memory "ptr". mysql-5.1.70/libmysql/get_password.c:217:3: return_alloc_fn: Directly returning storage allocated by "my_strdup(char const *, myf)". mysql-5.1.70/server-tools/instance-manager/user_management_commands.cc:133:22: var_assign: Assigning: "passwd1" = "get_tty_password("Enter password: ")". mysql-5.1.70/server-tools/instance-manager/user_management_commands.cc:136:3: noescape: Resource "passwd1" is not freed or pointed-to in function "strcmp(char const *, char const *)". mysql-5.1.70/server-tools/instance-manager/user_management_commands.cc:142:3: return_alloc: Returning allocated memory "passwd1". mysql-5.1.70/server-tools/instance-manager/user_management_commands.cc:354: var_assign: Assigning: "password" = storage returned from "get_password()". mysql-5.1.70/server-tools/instance-manager/user_management_commands.cc:357: noescape: Resource "password" is not freed or pointed-to in function "User::set_password(char const *)". mysql-5.1.70/server-tools/instance-manager/user_map.h:38:40: noescape: "User::set_password(char const *)" does not free or save its pointer parameter "password". mysql-5.1.70/server-tools/instance-manager/user_management_commands.cc:361: leaked_storage: Variable "password" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): mysql-5.1.70/storage/innobase/handler/ha_innodb.cc:3035: alloc_fn: Storage is returned from allocation function "my_multi_malloc(myf, ...)". mysql-5.1.70/libmysql/mulalloc.c:50:3: alloc_fn: Storage is returned from allocation function "my_malloc(size_t, myf)". mysql-5.1.70/libmysql/my_malloc.c:37:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". mysql-5.1.70/libmysql/my_malloc.c:37:3: var_assign: Assigning: "point" = "malloc(size)". mysql-5.1.70/libmysql/my_malloc.c:59:3: return_alloc: Returning allocated memory "point". mysql-5.1.70/libmysql/mulalloc.c:50:3: var_assign: Assigning: "start" = "my_malloc(tot_length, myFlags)". mysql-5.1.70/libmysql/mulalloc.c:54:3: var_assign: Assigning: "res" = "start". mysql-5.1.70/libmysql/mulalloc.c:62:3: return_alloc: Returning allocated memory "start". mysql-5.1.70/storage/innobase/handler/ha_innodb.cc:3035: leaked_storage: Ignoring storage allocated by "my_multi_malloc(16, &this->upd_buff, this->upd_and_key_val_buff_len, &this->key_val_buff, this->upd_and_key_val_buff_len, NULL)" leaks it. Error: RESOURCE_LEAK (CWE-772): mysql-5.1.70/client/mysqlbinlog.cc:433: alloc_fn: Storage is returned from allocation function "my_malloc(size_t, myf)". mysql-5.1.70/libmysql/my_malloc.c:37:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". mysql-5.1.70/libmysql/my_malloc.c:37:3: var_assign: Assigning: "point" = "malloc(size)". mysql-5.1.70/libmysql/my_malloc.c:59:3: return_alloc: Returning allocated memory "point". mysql-5.1.70/client/mysqlbinlog.cc:433: var_assign: Assigning: "fname" = storage returned from "my_malloc(full_len, 16)". mysql-5.1.70/client/mysqlbinlog.cc:440: noescape: Resource "fname" is not freed or pointed-to in function "memcpy(void *, void const *, size_t)". mysql-5.1.70/client/mysqlbinlog.cc:441: var_assign: Assigning: "ptr" = "fname". mysql-5.1.70/client/mysqlbinlog.cc:442: noescape: Resource "ptr" is not freed or pointed-to in function "memcpy(void *, void const *, size_t)". mysql-5.1.70/client/mysqlbinlog.cc:444: noescape: Resource "ptr" is not freed or pointed-to in function "sprintf(char *, char const *, ...)". mysql-5.1.70/client/mysqlbinlog.cc:446: noescape: Resource "fname" is not freed or pointed-to in function "Load_log_processor::create_unique_file(char *, char *)". mysql-5.1.70/client/mysqlbinlog.cc:178:33: noescape: "Load_log_processor::create_unique_file(char *, char *)" does not free or save its pointer parameter "filename". mysql-5.1.70/client/mysqlbinlog.cc:446: noescape: Resource "ptr" is not freed or pointed-to in function "Load_log_processor::create_unique_file(char *, char *)". mysql-5.1.70/client/mysqlbinlog.cc:178:49: noescape: "Load_log_processor::create_unique_file(char *, char *)" does not free or save its pointer parameter "file_name_end". mysql-5.1.70/client/mysqlbinlog.cc:451: leaked_storage: Variable "ptr" going out of scope leaks the storage it points to. mysql-5.1.70/client/mysqlbinlog.cc:451: leaked_storage: Variable "fname" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): mysql-5.1.70/sql/sql_base.cc:2368: alloc_fn: Storage is returned from allocation function "my_multi_malloc(myf, ...)". mysql-5.1.70/libmysql/mulalloc.c:50:3: alloc_fn: Storage is returned from allocation function "my_malloc(size_t, myf)". mysql-5.1.70/libmysql/my_malloc.c:37:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". mysql-5.1.70/libmysql/my_malloc.c:37:3: var_assign: Assigning: "point" = "malloc(size)". mysql-5.1.70/libmysql/my_malloc.c:59:3: return_alloc: Returning allocated memory "point". mysql-5.1.70/libmysql/mulalloc.c:50:3: var_assign: Assigning: "start" = "my_malloc(tot_length, myFlags)". mysql-5.1.70/libmysql/mulalloc.c:54:3: var_assign: Assigning: "res" = "start". mysql-5.1.70/libmysql/mulalloc.c:62:3: return_alloc: Returning allocated memory "start". mysql-5.1.70/sql/sql_base.cc:2368: leaked_storage: Ignoring storage allocated by "my_multi_malloc(48, &table, 2200UL, &share, 856UL, &key_buff, key_length, 0L)" leaks it. Error: RESOURCE_LEAK (CWE-772): mysql-5.1.70/server-tools/instance-manager/commands.cc:1008: open_fn: Returning handle opened by function "my_open(char const *, int, myf)". mysql-5.1.70/libmysql/my_open.c:70:3: open_fn: Returning handle opened by function "open(char const *, int, ...)". mysql-5.1.70/libmysql/my_open.c:70:3: var_assign: Assigning: "fd" = "open(FileName, Flags, my_umask)". mysql-5.1.70/libmysql/my_open.c:75:3: identity_transfer: Passing variable "fd" as argument 1 to function "my_register_filename(File, char const *, enum file_type, uint, myf)", which returns that argument. mysql-5.1.70/libmysql/my_open.c:152:7: return_parm: Returning parameter "fd". mysql-5.1.70/libmysql/my_open.c:75:3: noescape: Resource "fd" is not freed or pointed-to in function "my_register_filename(File, char const *, enum file_type, uint, myf)". mysql-5.1.70/libmysql/my_open.c:140:32: noescape: "my_register_filename(File, char const *, enum file_type, uint, myf)" does not free or save its handle parameter "fd". mysql-5.1.70/libmysql/my_open.c:75:3: return_handle_fn: Directly returning handle opened by "my_register_filename(File, char const *, enum file_type, uint, myf)". mysql-5.1.70/server-tools/instance-manager/commands.cc:1008: var_assign: Assigning: "fd" = handle returned from "my_open(logpath, 0, 16)". mysql-5.1.70/server-tools/instance-manager/commands.cc:1008: off_by_one: Testing whether handle "fd" is strictly greater than zero is suspicious. Did you intend to include equality with zero? "fd" leaks when it is zero. mysql-5.1.70/server-tools/instance-manager/commands.cc:1009: leaked_handle: Handle variable "fd" going out of scope leaks the handle. Error: RESOURCE_LEAK (CWE-772): mysql-5.1.70/storage/innodb_plugin/handler/ha_innodb.cc:3664: alloc_fn: Storage is returned from allocation function "my_multi_malloc(myf, ...)". mysql-5.1.70/libmysql/mulalloc.c:50:3: alloc_fn: Storage is returned from allocation function "my_malloc(size_t, myf)". mysql-5.1.70/libmysql/my_malloc.c:37:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". mysql-5.1.70/libmysql/my_malloc.c:37:3: var_assign: Assigning: "point" = "malloc(size)". mysql-5.1.70/libmysql/my_malloc.c:59:3: return_alloc: Returning allocated memory "point". mysql-5.1.70/libmysql/mulalloc.c:50:3: var_assign: Assigning: "start" = "my_malloc(tot_length, myFlags)". mysql-5.1.70/libmysql/mulalloc.c:54:3: var_assign: Assigning: "res" = "start". mysql-5.1.70/libmysql/mulalloc.c:62:3: return_alloc: Returning allocated memory "start". mysql-5.1.70/storage/innodb_plugin/handler/ha_innodb.cc:3664: leaked_storage: Ignoring storage allocated by "my_multi_malloc(16, &this->upd_buff, this->upd_and_key_val_buff_len, &this->key_val_buff, this->upd_and_key_val_buff_len, NULL)" leaks it. Error: RESOURCE_LEAK (CWE-772): mysql-5.1.70/server-tools/instance-manager/instance_map.cc:600: open_fn: Returning handle opened by function "my_open(char const *, int, myf)". mysql-5.1.70/libmysql/my_open.c:70:3: open_fn: Returning handle opened by function "open(char const *, int, ...)". mysql-5.1.70/libmysql/my_open.c:70:3: var_assign: Assigning: "fd" = "open(FileName, Flags, my_umask)". mysql-5.1.70/libmysql/my_open.c:75:3: identity_transfer: Passing variable "fd" as argument 1 to function "my_register_filename(File, char const *, enum file_type, uint, myf)", which returns that argument. mysql-5.1.70/libmysql/my_open.c:152:7: return_parm: Returning parameter "fd". mysql-5.1.70/libmysql/my_open.c:75:3: noescape: Resource "fd" is not freed or pointed-to in function "my_register_filename(File, char const *, enum file_type, uint, myf)". mysql-5.1.70/libmysql/my_open.c:140:32: noescape: "my_register_filename(File, char const *, enum file_type, uint, myf)" does not free or save its handle parameter "fd". mysql-5.1.70/libmysql/my_open.c:75:3: return_handle_fn: Directly returning handle opened by "my_register_filename(File, char const *, enum file_type, uint, myf)". mysql-5.1.70/server-tools/instance-manager/instance_map.cc:600: var_assign: Assigning: "cnf_file" = handle returned from "my_open(Options::Main::config_file, 1025, 0)". mysql-5.1.70/server-tools/instance-manager/instance_map.cc:602: off_by_one: Testing whether handle "cnf_file" is strictly greater than zero is suspicious. Did you intend to include equality with zero? "cnf_file" leaks when it is zero. mysql-5.1.70/server-tools/instance-manager/instance_map.cc:607: leaked_handle: Handle variable "cnf_file" going out of scope leaks the handle. Error: RESOURCE_LEAK (CWE-772): mysql-5.1.70/libmysql/client.c:2237: alloc_fn: Storage is returned from allocation function "my_multi_malloc(myf, ...)". mysql-5.1.70/libmysql/mulalloc.c:50:3: alloc_fn: Storage is returned from allocation function "my_malloc(size_t, myf)". mysql-5.1.70/libmysql/my_malloc.c:37:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". mysql-5.1.70/libmysql/my_malloc.c:37:3: var_assign: Assigning: "point" = "malloc(size)". mysql-5.1.70/libmysql/my_malloc.c:59:3: return_alloc: Returning allocated memory "point". mysql-5.1.70/libmysql/mulalloc.c:50:3: var_assign: Assigning: "start" = "my_malloc(tot_length, myFlags)". mysql-5.1.70/libmysql/mulalloc.c:54:3: var_assign: Assigning: "res" = "start". mysql-5.1.70/libmysql/mulalloc.c:62:3: return_alloc: Returning allocated memory "start". mysql-5.1.70/libmysql/client.c:2237: leaked_storage: Ignoring storage allocated by "my_multi_malloc(0, &mysql->host_info, (uint)strlen(host_info) + 1U, &mysql->host, (uint)strlen(host) + 1U, &mysql->unix_socket, (unix_socket ? (uint)strlen(unix_socket) + 1U : 1U), &mysql->server_version, (uint)(end - (char *)net->read_pos), NULL)" leaks it. Error: RESOURCE_LEAK (CWE-772): mysql-5.1.70/sql/sql_db.cc:117: alloc_fn: Storage is returned from allocation function "my_multi_malloc(myf, ...)". mysql-5.1.70/libmysql/mulalloc.c:50:3: alloc_fn: Storage is returned from allocation function "my_malloc(size_t, myf)". mysql-5.1.70/libmysql/my_malloc.c:37:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". mysql-5.1.70/libmysql/my_malloc.c:37:3: var_assign: Assigning: "point" = "malloc(size)". mysql-5.1.70/libmysql/my_malloc.c:59:3: return_alloc: Returning allocated memory "point". mysql-5.1.70/libmysql/mulalloc.c:50:3: var_assign: Assigning: "start" = "my_malloc(tot_length, myFlags)". mysql-5.1.70/libmysql/mulalloc.c:54:3: var_assign: Assigning: "res" = "start". mysql-5.1.70/libmysql/mulalloc.c:62:3: return_alloc: Returning allocated memory "start". mysql-5.1.70/sql/sql_db.cc:117: leaked_storage: Ignoring storage allocated by "my_multi_malloc(48, &opt, 16U, &tmp_name, (uint)length + 1U, NULL)" leaks it. Error: RESOURCE_LEAK (CWE-772): mysql-5.1.70/storage/myisam/mi_open.c:296: alloc_fn: Storage is returned from allocation function "my_multi_malloc(myf, ...)". mysql-5.1.70/libmysql/mulalloc.c:50:3: alloc_fn: Storage is returned from allocation function "my_malloc(size_t, myf)". mysql-5.1.70/libmysql/my_malloc.c:37:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". mysql-5.1.70/libmysql/my_malloc.c:37:3: var_assign: Assigning: "point" = "malloc(size)". mysql-5.1.70/libmysql/my_malloc.c:59:3: return_alloc: Returning allocated memory "point". mysql-5.1.70/libmysql/mulalloc.c:50:3: var_assign: Assigning: "start" = "my_malloc(tot_length, myFlags)". mysql-5.1.70/libmysql/mulalloc.c:54:3: var_assign: Assigning: "res" = "start". mysql-5.1.70/libmysql/mulalloc.c:62:3: return_alloc: Returning allocated memory "start". mysql-5.1.70/storage/myisam/mi_open.c:296: leaked_storage: Ignoring storage allocated by "my_multi_malloc(16, &share, 1176UL, &share->state.rec_per_key_part, 8UL * key_parts, &share->keyinfo, keys * 112UL, &share->uniqueinfo, uniques * 24UL, &share->keyparts, (key_parts + unique_key_parts + keys + uniques) * 32UL, &share->rec, (share->base.fields + 1UL) * 48UL, &share->blobs, 24UL * share->base.blobs, &share->unique_file_name, strlen(name_buff) + 1UL, &share->index_file_name, strlen(index_name) + 1UL, &share->data_file_name, strlen(data_name) + 1UL, &share->state.key_root, keys * 8UL, &share->state.key_del, share->state.header.max_block_size_index * 8UL, &share->key_root_lock, 56UL * keys, &share->mmap_lock, 56UL, NULL)" leaks it. Error: RESOURCE_LEAK (CWE-772): mysql-5.1.70/storage/myisam/mi_open.c:578: alloc_fn: Storage is returned from allocation function "my_multi_malloc(myf, ...)". mysql-5.1.70/libmysql/mulalloc.c:50:3: alloc_fn: Storage is returned from allocation function "my_malloc(size_t, myf)". mysql-5.1.70/libmysql/my_malloc.c:37:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". mysql-5.1.70/libmysql/my_malloc.c:37:3: var_assign: Assigning: "point" = "malloc(size)". mysql-5.1.70/libmysql/my_malloc.c:59:3: return_alloc: Returning allocated memory "point". mysql-5.1.70/libmysql/mulalloc.c:50:3: var_assign: Assigning: "start" = "my_malloc(tot_length, myFlags)". mysql-5.1.70/libmysql/mulalloc.c:54:3: var_assign: Assigning: "res" = "start". mysql-5.1.70/libmysql/mulalloc.c:62:3: return_alloc: Returning allocated memory "start". mysql-5.1.70/storage/myisam/mi_open.c:578: leaked_storage: Ignoring storage allocated by "my_multi_malloc(16, &m_info, 864UL, &info.blobs, 24UL * share->base.blobs, &info.buff, share->base.max_key_block_length * 2U + share->base.max_key_length, &info.lastkey, share->base.max_key_length * 3U + 1U, &info.first_mbr_key, share->base.max_key_length, &info.filename, strlen(name) + 1UL, &info.rtree_recursion_state, (have_rtree ? 1024 : 0), NULL)" leaks it. Error: RESOURCE_LEAK (CWE-772): mysql-5.1.70/storage/innodb_plugin/pars0grm.c:1513: alloc_fn: Storage is returned from allocation function "malloc(size_t)". mysql-5.1.70/storage/innodb_plugin/pars0grm.c:1513: var_assign: Assigning: "yyptr" = storage returned from "malloc(yystacksize * 10UL + 7UL)". mysql-5.1.70/storage/innodb_plugin/pars0grm.c:1523: leaked_storage: Variable "yyptr" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): mysql-5.1.70/libmysql/default_modify.c:139: alloc_fn: Storage is returned from allocation function "my_realloc(void *, size_t, myf)". mysql-5.1.70/libmysql/my_realloc.c:44:5: alloc_fn: Storage is returned from allocation function "my_malloc(size_t, myf)". mysql-5.1.70/libmysql/my_malloc.c:37:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". mysql-5.1.70/libmysql/my_malloc.c:37:3: var_assign: Assigning: "point" = "malloc(size)". mysql-5.1.70/libmysql/my_malloc.c:59:3: return_alloc: Returning allocated memory "point". mysql-5.1.70/libmysql/my_realloc.c:44:5: return_alloc_fn: Directly returning storage allocated by "my_malloc(size_t, myf)". mysql-5.1.70/libmysql/default_modify.c:139: var_assign: Assigning: "file_buffer" = storage returned from "my_realloc(file_buffer, buffer_size + reserve_extended, 144)". mysql-5.1.70/libmysql/default_modify.c:216: noescape: Resource "(uchar *)file_buffer" is not freed or pointed-to in function "my_fwrite(FILE *, uchar const *, size_t, myf)". mysql-5.1.70/libmysql/my_fstream.c:92:45: noescape: "my_fwrite(FILE *, uchar const *, size_t, myf)" does not free or save its pointer parameter "Buffer". mysql-5.1.70/libmysql/default_modify.c:224: leaked_storage: Variable "file_buffer" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): mysql-5.1.70/libmysql_r/default_modify.c:139: alloc_fn: Storage is returned from allocation function "my_realloc(void *, size_t, myf)". mysql-5.1.70/libmysql/my_realloc.c:44:5: alloc_fn: Storage is returned from allocation function "my_malloc(size_t, myf)". mysql-5.1.70/libmysql/my_malloc.c:37:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". mysql-5.1.70/libmysql/my_malloc.c:37:3: var_assign: Assigning: "point" = "malloc(size)". mysql-5.1.70/libmysql/my_malloc.c:59:3: return_alloc: Returning allocated memory "point". mysql-5.1.70/libmysql/my_realloc.c:44:5: return_alloc_fn: Directly returning storage allocated by "my_malloc(size_t, myf)". mysql-5.1.70/libmysql_r/default_modify.c:139: var_assign: Assigning: "file_buffer" = storage returned from "my_realloc(file_buffer, buffer_size + reserve_extended, 144)". mysql-5.1.70/libmysql_r/default_modify.c:216: noescape: Resource "(uchar *)file_buffer" is not freed or pointed-to in function "my_fwrite(FILE *, uchar const *, size_t, myf)". mysql-5.1.70/libmysql/my_fstream.c:92:45: noescape: "my_fwrite(FILE *, uchar const *, size_t, myf)" does not free or save its pointer parameter "Buffer". mysql-5.1.70/libmysql_r/default_modify.c:224: leaked_storage: Variable "file_buffer" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): mysql-5.1.70/mysys/default_modify.c:139: alloc_fn: Storage is returned from allocation function "my_realloc(void *, size_t, myf)". mysql-5.1.70/libmysql/my_realloc.c:44:5: alloc_fn: Storage is returned from allocation function "my_malloc(size_t, myf)". mysql-5.1.70/libmysql/my_malloc.c:37:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". mysql-5.1.70/libmysql/my_malloc.c:37:3: var_assign: Assigning: "point" = "malloc(size)". mysql-5.1.70/libmysql/my_malloc.c:59:3: return_alloc: Returning allocated memory "point". mysql-5.1.70/libmysql/my_realloc.c:44:5: return_alloc_fn: Directly returning storage allocated by "my_malloc(size_t, myf)". mysql-5.1.70/mysys/default_modify.c:139: var_assign: Assigning: "file_buffer" = storage returned from "my_realloc(file_buffer, buffer_size + reserve_extended, 144)". mysql-5.1.70/mysys/default_modify.c:216: noescape: Resource "(uchar *)file_buffer" is not freed or pointed-to in function "my_fwrite(FILE *, uchar const *, size_t, myf)". mysql-5.1.70/libmysql/my_fstream.c:92:45: noescape: "my_fwrite(FILE *, uchar const *, size_t, myf)" does not free or save its pointer parameter "Buffer". mysql-5.1.70/mysys/default_modify.c:224: leaked_storage: Variable "file_buffer" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): mysql-5.1.70/server-tools/instance-manager/priv.cc:54: alloc_fn: Storage is returned from allocation function "my_fopen(char const *, int, myf)". mysql-5.1.70/libmysql/my_fopen.c:68:5: alloc_fn: Storage is returned from allocation function "fopen(char const * restrict, char const * restrict)". mysql-5.1.70/libmysql/my_fopen.c:68:5: var_assign: Assigning: "fd" = "fopen(filename, type)". mysql-5.1.70/libmysql/my_fopen.c:78:5: noescape: Resource "fd" is not freed or pointed-to in function "fileno(FILE *)". mysql-5.1.70/libmysql/my_fopen.c:81:7: return_alloc: Returning allocated memory "fd". mysql-5.1.70/server-tools/instance-manager/priv.cc:54: var_assign: Assigning: "pid_file" = storage returned from "my_fopen(pid_file_name, 65, 0)". mysql-5.1.70/server-tools/instance-manager/priv.cc:64: noescape: Resource "pid_file" is not freed or pointed-to in function "fprintf(FILE *, char const *, ...)". mysql-5.1.70/server-tools/instance-manager/priv.cc:70: leaked_storage: Variable "pid_file" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): mysql-5.1.70/server-tools/instance-manager/user_management_commands.cc:211: alloc_fn: Storage is returned from allocation function "get_password()". mysql-5.1.70/server-tools/instance-manager/user_management_commands.cc:133:22: alloc_fn: Storage is returned from allocation function "get_tty_password(char const *)". mysql-5.1.70/libmysql/get_password.c:217:3: alloc_fn: Storage is returned from allocation function "my_strdup(char const *, myf)". mysql-5.1.70/libmysql/my_malloc.c:91:3: alloc_fn: Storage is returned from allocation function "my_malloc(size_t, myf)". mysql-5.1.70/libmysql/my_malloc.c:37:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". mysql-5.1.70/libmysql/my_malloc.c:37:3: var_assign: Assigning: "point" = "malloc(size)". mysql-5.1.70/libmysql/my_malloc.c:59:3: return_alloc: Returning allocated memory "point". mysql-5.1.70/libmysql/my_malloc.c:91:3: var_assign: Assigning: "ptr" = "my_malloc(length, my_flags)". mysql-5.1.70/libmysql/my_malloc.c:92:5: noescape: Resource "(uchar *)ptr" is not freed or pointed-to in function "__coverity_memcpy(void *, void const *, unsigned long)". mysql-5.1.70/libmysql/my_malloc.c:93:3: return_alloc: Returning allocated memory "ptr". mysql-5.1.70/libmysql/get_password.c:217:3: return_alloc_fn: Directly returning storage allocated by "my_strdup(char const *, myf)". mysql-5.1.70/server-tools/instance-manager/user_management_commands.cc:133:22: var_assign: Assigning: "passwd1" = "get_tty_password("Enter password: ")". mysql-5.1.70/server-tools/instance-manager/user_management_commands.cc:136:3: noescape: Resource "passwd1" is not freed or pointed-to in function "strcmp(char const *, char const *)". mysql-5.1.70/server-tools/instance-manager/user_management_commands.cc:142:3: return_alloc: Returning allocated memory "passwd1". mysql-5.1.70/server-tools/instance-manager/user_management_commands.cc:211: var_assign: Assigning: "password" = storage returned from "get_password()". mysql-5.1.70/server-tools/instance-manager/user_management_commands.cc:215: noescape: Resource "password" is not freed or pointed-to in function "User::User(LEX_STRING const *, char const *)". mysql-5.1.70/server-tools/instance-manager/user_map.cc:28:57: noescape: "User::User(LEX_STRING const *, char const *)" does not free or save its pointer parameter "password". mysql-5.1.70/server-tools/instance-manager/user_management_commands.cc:222: leaked_storage: Variable "password" going out of scope leaks the storage it points to. Error: BUFFER_SIZE (CWE-120): mysql-5.1.70/storage/innobase/handler/ha_innodb.cc:3081: buffer_size: You might overrun the 399 byte destination string "par_case_name" by writing the maximum 999 bytes from "norm_name". Error: BUFFER_SIZE (CWE-120): mysql-5.1.70/storage/innodb_plugin/handler/ha_innodb.cc:3710: buffer_size: You might overrun the 399 byte destination string "par_case_name" by writing the maximum 999 bytes from "norm_name". Error: BUFFER_SIZE_WARNING (CWE-120): mysql-5.1.70/sql/sql_prepare.cc:2765: buffer_size_warning: Calling strncpy with a maximum size argument of 512 bytes on destination array "this->stmt->last_error" of size 512 bytes might leave the destination string unterminated. Error: STRING_OVERFLOW (CWE-120): mysql-5.1.70/sql/sql_trigger.cc:2192: fixed_size_dest: You might overrun the 512 byte fixed-size string "this->m_parse_error_message" by copying "error_message" without checking the length. mysql-5.1.70/sql/sql_trigger.cc:2192: parameter_as_source: Note: This defect has an elevated risk because the source argument is a parameter of the current function. Error: STRING_OVERFLOW (CWE-120): mysql-5.1.70/storage/innobase/handler/ha_innodb.cc:5908: fixed_size_dest: You might overrun the 512 byte fixed-size string "name2" by copying "name" without checking the length. mysql-5.1.70/storage/innobase/handler/ha_innodb.cc:5908: parameter_as_source: Note: This defect has an elevated risk because the source argument is a parameter of the current function. Error: BUFFER_SIZE_WARNING (CWE-120): mysql-5.1.70/sql/sql_prepare.cc:2765: buffer_size_warning: Calling strncpy with a maximum size argument of 512 bytes on destination array "this->stmt->last_error" of size 512 bytes might leave the destination string unterminated. Error: USE_AFTER_FREE (CWE-825): mysql-5.5.32/client/mysqltest.cc:7800: freed_arg: "mysql_stmt_close(MYSQL_STMT *)" frees "stmt". mysql-5.5.32/libmysql/libmysql.c:4685:3: freed_arg: "my_free(void *)" frees parameter "stmt". mysql-5.5.32/mysys/my_malloc.c:134:3: freed_arg: "free(void *)" frees parameter "ptr". mysql-5.5.32/client/mysqltest.cc:7810: deref_arg: Calling "mysql_stmt_errno(MYSQL_STMT *)" dereferences freed pointer "stmt". mysql-5.5.32/libmysql/libmysql.c:4717:3: deref_parm: Directly dereferencing parameter "stmt". Error: USE_AFTER_FREE (CWE-825): mysql-5.5.32/mysys/my_malloc.c:110: freed_arg: "my_free(void *)" frees "oldpoint". mysql-5.5.32/mysys/my_malloc.c:134:3: freed_arg: "free(void *)" frees parameter "ptr". mysql-5.5.32/mysys/my_malloc.c:112: use_after_free: Using freed pointer "oldpoint". Error: USE_AFTER_FREE (CWE-825): mysql-5.5.32/mysys/my_copy.c:98: closed_arg: "my_close(File, myf)" closes "from_file". mysql-5.5.32/mysys/my_open.c:77:5: closed_arg: "close(int)" closes parameter "fd". mysql-5.5.32/mysys/my_copy.c:136: double_close: Calling "my_close(File, myf)" closes handle "from_file" which has already been closed. mysql-5.5.32/mysys/my_open.c:77:5: closed_arg: "close(int)" closes parameter "fd". Error: USE_AFTER_FREE (CWE-825): mysql-5.5.32/mysys/my_copy.c:98: closed_arg: "my_close(File, myf)" closes "to_file". mysql-5.5.32/mysys/my_open.c:77:5: closed_arg: "close(int)" closes parameter "fd". mysql-5.5.32/mysys/my_copy.c:139: double_close: Calling "my_close(File, myf)" closes handle "to_file" which has already been closed. mysql-5.5.32/mysys/my_open.c:77:5: closed_arg: "close(int)" closes parameter "fd". Error: COPY_PASTE_ERROR (CWE-398): mysql-5.5.32/sql/sql_class.cc:3365: original: "this->user" looks like the original copy. mysql-5.5.32/sql/sql_class.cc:3371: copy_paste_error: "user" in "this->user" looks like a copy-paste error. Should it say "external_user" instead? Error: ARRAY_VS_SINGLETON (CWE-119): mysql-5.5.32/sql/log_event.cc:5992: address_of: Taking address with "&this->flags" yields a singleton pointer. mysql-5.5.32/sql/log_event.cc:5992: callee_ptr_arith: Passing "&this->flags" to function "my_b_safe_write(IO_CACHE *, uchar const *, size_t)" which uses it as an array. This might corrupt or misinterpret adjacent memory locations. mysql-5.5.32/mysys/mf_iocache.c:1655:5: callee_ptr_arith: Performing pointer arithmetic on "Buffer" in callee "my_b_append(IO_CACHE *, uchar const *, size_t)". mysql-5.5.32/mysys/mf_iocache.c:1617:3: ptr_arith: Performing pointer arithmetic on "Buffer" in expression "Buffer += rest_length". Error: ARRAY_VS_SINGLETON (CWE-119): mysql-5.5.32/sql/derror.cc:69: address_of: Taking address with "&errmsgs" yields a singleton pointer. mysql-5.5.32/sql/derror.cc:69: callee_ptr_arith: Passing "&errmsgs" to function "read_texts(char const *, char const *, char const ***, uint)" which uses it as an array. This might corrupt or misinterpret adjacent memory locations. mysql-5.5.32/sql/derror.cc:180:5: ptr_arith: Performing pointer arithmetic on "point" in expression "point + i". Error: ARRAY_VS_SINGLETON (CWE-119): mysql-5.5.32/storage/innobase/pars0grm.c:1517: address_of: Taking address with "&yyptr->yyss" yields a singleton pointer. mysql-5.5.32/storage/innobase/pars0grm.c:1517: assign: Assigning: "yyss" = "&yyptr->yyss". mysql-5.5.32/storage/innobase/pars0grm.c:1527: ptr_arith: Using "yyss" as an array. This might corrupt or misinterpret adjacent memory locations. Error: NO_EFFECT (CWE-398): mysql-5.5.32/sql/sql_acl.cc:9497: array_null: Comparing an array to null is not useful: "mpvio.auth_info.authenticated_as". Error: NO_EFFECT (CWE-398): mysql-5.5.32/sql/sql_acl.cc:4957: array_null: Comparing an array to null is not useful: "sctx->priv_user". Error: NO_EFFECT (CWE-398): mysql-5.5.32/sql/sql_acl.cc:7776: array_null: Comparing an array to null is not useful: "!sctx->priv_user". Error: NO_EFFECT (CWE-398): mysql-5.5.32/sql/sql_acl.cc:7776: array_null: Comparing an array to null is not useful: "sctx->priv_user". Error: NO_EFFECT (CWE-398): mysql-5.5.32/sql/slave.cc:4044: array_null: Comparing an array to null is not useful: "mi->master_log_name != NULL". Error: NO_EFFECT (CWE-398): mysql-5.5.32/sql/slave.cc:4286: array_null: Comparing an array to null is not useful: "mi->user == NULL". Error: NO_EFFECT (CWE-398): mysql-5.5.32/sql/field.cc:2355: bad_memset: Memset with fill value '0'. Did you want 0? "memset(to + length + 1, 48, this->dec)". Error: NO_EFFECT (CWE-398): mysql-5.5.32/sql/log_event_old.cc:1695: array_null: Comparing an array to null is not useful: "this->thd->net.last_error". Error: NO_EFFECT (CWE-398): mysql-5.5.32/sql/log_event_old.cc:1733: array_null: Comparing an array to null is not useful: "this->thd->net.last_error". Error: NO_EFFECT (CWE-398): mysql-5.5.32/sql/field.cc:1136: bad_memset: Memset with fill value '0'. Did you want 0? "memset((uchar *)value->ptr(), 48, diff)". Error: NO_EFFECT (CWE-398): mysql-5.5.32/sql/log_event.cc:2408: array_null: Comparing an array to null is not useful: "this->thd->security_ctx->priv_user". Error: NO_EFFECT (CWE-398): mysql-5.5.32/sql/log.cc:1218: array_null: Comparing an array to null is not useful: "sctx->priv_user". Error: NO_EFFECT (CWE-398): mysql-5.5.32/libmysql/libmysql.c:1378: array_null: Comparing an array to null is not useful: "net->last_error". Error: NO_EFFECT (CWE-398): mysql-5.5.32/storage/federated/ha_federated.cc:821: self_assign: Assignment operation "share->username = share->username" has no effect. mysql-5.5.32/storage/federated/ha_federated.cc:834: self_assign: Assignment operation "share->username = share->username" has no effect. Error: NO_EFFECT (CWE-398): mysql-5.5.32/sql/sql_parse.cc:3713: array_null: Comparing an array to null is not useful: "thd->security_ctx->priv_user". Error: NO_EFFECT (CWE-398): mysql-5.5.32/sql/sql_audit.cc:344: array_null: Comparing an array to null is not useful: "!data->class_mask". Error: NO_EFFECT (CWE-398): mysql-5.5.32/sql/sql_audit.cc:344: array_null: Comparing an array to null is not useful: "data->class_mask". Error: NO_EFFECT (CWE-398): mysql-5.5.32/sql/slave.cc:4422: array_null: Comparing an array to null is not useful: "mi->user == NULL". Error: RESOURCE_LEAK (CWE-772): mysql-5.5.32/client/mysql_plugin.c:373: alloc_fn: Storage is returned from allocation function "get_value(char *, char const *)". mysql-5.5.32/client/mysql_plugin.c:196:5: alloc_fn: Storage is returned from allocation function "my_strndup(char const *, size_t, myf)". mysql-5.5.32/mysys/my_malloc.c:161:3: alloc_fn: Storage is returned from allocation function "my_malloc(size_t, myf)". mysql-5.5.32/mysys/my_malloc.c:38:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". mysql-5.5.32/mysys/my_malloc.c:38:3: var_assign: Assigning: "point" = "malloc(size)". mysql-5.5.32/mysys/my_malloc.c:66:3: return_alloc: Returning allocated memory "point". mysql-5.5.32/mysys/my_malloc.c:161:3: var_assign: Assigning: "ptr" = "my_malloc(length + 1UL, my_flags)". mysql-5.5.32/mysys/my_malloc.c:163:5: noescape: Resource "ptr" is not freed or pointed-to in function "__coverity_memcpy(void *, void const *, unsigned long)". mysql-5.5.32/mysys/my_malloc.c:166:3: return_alloc: Returning allocated memory "ptr". mysql-5.5.32/client/mysql_plugin.c:196:5: var_assign: Assigning: "destination" = "my_strndup(s, line_len - start, 8)". mysql-5.5.32/client/mysql_plugin.c:199:3: return_alloc: Returning allocated memory "destination". mysql-5.5.32/client/mysql_plugin.c:373: var_assign: Assigning: "value" = storage returned from "get_value(line, "--datadir")". mysql-5.5.32/client/mysql_plugin.c:375: noescape: Resource "value" is not freed or pointed-to in function "my_strdup(char const *, myf)". mysql-5.5.32/mysys/my_malloc.c:148:29: noescape: "my_strdup(char const *, myf)" does not free or save its pointer parameter "from". mysql-5.5.32/client/mysql_plugin.c:377: overwrite_var: Overwriting "value" in "value = get_value(line, "--basedir")" leaks the storage that "value" points to. Error: RESOURCE_LEAK (CWE-772): mysql-5.5.32/client/mysql_plugin.c:373: alloc_fn: Storage is returned from allocation function "get_value(char *, char const *)". mysql-5.5.32/client/mysql_plugin.c:196:5: alloc_fn: Storage is returned from allocation function "my_strndup(char const *, size_t, myf)". mysql-5.5.32/mysys/my_malloc.c:161:3: alloc_fn: Storage is returned from allocation function "my_malloc(size_t, myf)". mysql-5.5.32/mysys/my_malloc.c:38:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". mysql-5.5.32/mysys/my_malloc.c:38:3: var_assign: Assigning: "point" = "malloc(size)". mysql-5.5.32/mysys/my_malloc.c:66:3: return_alloc: Returning allocated memory "point". mysql-5.5.32/mysys/my_malloc.c:161:3: var_assign: Assigning: "ptr" = "my_malloc(length + 1UL, my_flags)". mysql-5.5.32/mysys/my_malloc.c:163:5: noescape: Resource "ptr" is not freed or pointed-to in function "__coverity_memcpy(void *, void const *, unsigned long)". mysql-5.5.32/mysys/my_malloc.c:166:3: return_alloc: Returning allocated memory "ptr". mysql-5.5.32/client/mysql_plugin.c:196:5: var_assign: Assigning: "destination" = "my_strndup(s, line_len - start, 8)". mysql-5.5.32/client/mysql_plugin.c:199:3: return_alloc: Returning allocated memory "destination". mysql-5.5.32/client/mysql_plugin.c:373: var_assign: Assigning: "value" = storage returned from "get_value(line, "--datadir")". mysql-5.5.32/client/mysql_plugin.c:375: noescape: Resource "value" is not freed or pointed-to in function "my_strdup(char const *, myf)". mysql-5.5.32/mysys/my_malloc.c:148:29: noescape: "my_strdup(char const *, myf)" does not free or save its pointer parameter "from". mysql-5.5.32/client/mysql_plugin.c:381: overwrite_var: Overwriting "value" in "value = get_value(line, "--plugin_dir")" leaks the storage that "value" points to. Error: RESOURCE_LEAK (CWE-772): mysql-5.5.32/client/mysql_plugin.c:373: alloc_fn: Storage is returned from allocation function "get_value(char *, char const *)". mysql-5.5.32/client/mysql_plugin.c:196:5: alloc_fn: Storage is returned from allocation function "my_strndup(char const *, size_t, myf)". mysql-5.5.32/mysys/my_malloc.c:161:3: alloc_fn: Storage is returned from allocation function "my_malloc(size_t, myf)". mysql-5.5.32/mysys/my_malloc.c:38:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". mysql-5.5.32/mysys/my_malloc.c:38:3: var_assign: Assigning: "point" = "malloc(size)". mysql-5.5.32/mysys/my_malloc.c:66:3: return_alloc: Returning allocated memory "point". mysql-5.5.32/mysys/my_malloc.c:161:3: var_assign: Assigning: "ptr" = "my_malloc(length + 1UL, my_flags)". mysql-5.5.32/mysys/my_malloc.c:163:5: noescape: Resource "ptr" is not freed or pointed-to in function "__coverity_memcpy(void *, void const *, unsigned long)". mysql-5.5.32/mysys/my_malloc.c:166:3: return_alloc: Returning allocated memory "ptr". mysql-5.5.32/client/mysql_plugin.c:196:5: var_assign: Assigning: "destination" = "my_strndup(s, line_len - start, 8)". mysql-5.5.32/client/mysql_plugin.c:199:3: return_alloc: Returning allocated memory "destination". mysql-5.5.32/client/mysql_plugin.c:373: var_assign: Assigning: "value" = storage returned from "get_value(line, "--datadir")". mysql-5.5.32/client/mysql_plugin.c:375: noescape: Resource "value" is not freed or pointed-to in function "my_strdup(char const *, myf)". mysql-5.5.32/mysys/my_malloc.c:148:29: noescape: "my_strdup(char const *, myf)" does not free or save its pointer parameter "from". mysql-5.5.32/client/mysql_plugin.c:385: overwrite_var: Overwriting "value" in "value = get_value(line, "--plugin_ini")" leaks the storage that "value" points to. Error: RESOURCE_LEAK (CWE-772): mysql-5.5.32/client/mysql_plugin.c:373: alloc_fn: Storage is returned from allocation function "get_value(char *, char const *)". mysql-5.5.32/client/mysql_plugin.c:196:5: alloc_fn: Storage is returned from allocation function "my_strndup(char const *, size_t, myf)". mysql-5.5.32/mysys/my_malloc.c:161:3: alloc_fn: Storage is returned from allocation function "my_malloc(size_t, myf)". mysql-5.5.32/mysys/my_malloc.c:38:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". mysql-5.5.32/mysys/my_malloc.c:38:3: var_assign: Assigning: "point" = "malloc(size)". mysql-5.5.32/mysys/my_malloc.c:66:3: return_alloc: Returning allocated memory "point". mysql-5.5.32/mysys/my_malloc.c:161:3: var_assign: Assigning: "ptr" = "my_malloc(length + 1UL, my_flags)". mysql-5.5.32/mysys/my_malloc.c:163:5: noescape: Resource "ptr" is not freed or pointed-to in function "__coverity_memcpy(void *, void const *, unsigned long)". mysql-5.5.32/mysys/my_malloc.c:166:3: return_alloc: Returning allocated memory "ptr". mysql-5.5.32/client/mysql_plugin.c:196:5: var_assign: Assigning: "destination" = "my_strndup(s, line_len - start, 8)". mysql-5.5.32/client/mysql_plugin.c:199:3: return_alloc: Returning allocated memory "destination". mysql-5.5.32/client/mysql_plugin.c:373: var_assign: Assigning: "value" = storage returned from "get_value(line, "--datadir")". mysql-5.5.32/client/mysql_plugin.c:375: noescape: Resource "value" is not freed or pointed-to in function "my_strdup(char const *, myf)". mysql-5.5.32/mysys/my_malloc.c:148:29: noescape: "my_strdup(char const *, myf)" does not free or save its pointer parameter "from". mysql-5.5.32/client/mysql_plugin.c:389: leaked_storage: Variable "value" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): mysql-5.5.32/client/mysql_plugin.c:377: alloc_fn: Storage is returned from allocation function "get_value(char *, char const *)". mysql-5.5.32/client/mysql_plugin.c:196:5: alloc_fn: Storage is returned from allocation function "my_strndup(char const *, size_t, myf)". mysql-5.5.32/mysys/my_malloc.c:161:3: alloc_fn: Storage is returned from allocation function "my_malloc(size_t, myf)". mysql-5.5.32/mysys/my_malloc.c:38:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". mysql-5.5.32/mysys/my_malloc.c:38:3: var_assign: Assigning: "point" = "malloc(size)". mysql-5.5.32/mysys/my_malloc.c:66:3: return_alloc: Returning allocated memory "point". mysql-5.5.32/mysys/my_malloc.c:161:3: var_assign: Assigning: "ptr" = "my_malloc(length + 1UL, my_flags)". mysql-5.5.32/mysys/my_malloc.c:163:5: noescape: Resource "ptr" is not freed or pointed-to in function "__coverity_memcpy(void *, void const *, unsigned long)". mysql-5.5.32/mysys/my_malloc.c:166:3: return_alloc: Returning allocated memory "ptr". mysql-5.5.32/client/mysql_plugin.c:196:5: var_assign: Assigning: "destination" = "my_strndup(s, line_len - start, 8)". mysql-5.5.32/client/mysql_plugin.c:199:3: return_alloc: Returning allocated memory "destination". mysql-5.5.32/client/mysql_plugin.c:377: var_assign: Assigning: "value" = storage returned from "get_value(line, "--basedir")". mysql-5.5.32/client/mysql_plugin.c:379: noescape: Resource "value" is not freed or pointed-to in function "my_strdup(char const *, myf)". mysql-5.5.32/mysys/my_malloc.c:148:29: noescape: "my_strdup(char const *, myf)" does not free or save its pointer parameter "from". mysql-5.5.32/client/mysql_plugin.c:381: overwrite_var: Overwriting "value" in "value = get_value(line, "--plugin_dir")" leaks the storage that "value" points to. Error: RESOURCE_LEAK (CWE-772): mysql-5.5.32/client/mysql_plugin.c:377: alloc_fn: Storage is returned from allocation function "get_value(char *, char const *)". mysql-5.5.32/client/mysql_plugin.c:196:5: alloc_fn: Storage is returned from allocation function "my_strndup(char const *, size_t, myf)". mysql-5.5.32/mysys/my_malloc.c:161:3: alloc_fn: Storage is returned from allocation function "my_malloc(size_t, myf)". mysql-5.5.32/mysys/my_malloc.c:38:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". mysql-5.5.32/mysys/my_malloc.c:38:3: var_assign: Assigning: "point" = "malloc(size)". mysql-5.5.32/mysys/my_malloc.c:66:3: return_alloc: Returning allocated memory "point". mysql-5.5.32/mysys/my_malloc.c:161:3: var_assign: Assigning: "ptr" = "my_malloc(length + 1UL, my_flags)". mysql-5.5.32/mysys/my_malloc.c:163:5: noescape: Resource "ptr" is not freed or pointed-to in function "__coverity_memcpy(void *, void const *, unsigned long)". mysql-5.5.32/mysys/my_malloc.c:166:3: return_alloc: Returning allocated memory "ptr". mysql-5.5.32/client/mysql_plugin.c:196:5: var_assign: Assigning: "destination" = "my_strndup(s, line_len - start, 8)". mysql-5.5.32/client/mysql_plugin.c:199:3: return_alloc: Returning allocated memory "destination". mysql-5.5.32/client/mysql_plugin.c:377: var_assign: Assigning: "value" = storage returned from "get_value(line, "--basedir")". mysql-5.5.32/client/mysql_plugin.c:379: noescape: Resource "value" is not freed or pointed-to in function "my_strdup(char const *, myf)". mysql-5.5.32/mysys/my_malloc.c:148:29: noescape: "my_strdup(char const *, myf)" does not free or save its pointer parameter "from". mysql-5.5.32/client/mysql_plugin.c:385: overwrite_var: Overwriting "value" in "value = get_value(line, "--plugin_ini")" leaks the storage that "value" points to. Error: RESOURCE_LEAK (CWE-772): mysql-5.5.32/client/mysql_plugin.c:377: alloc_fn: Storage is returned from allocation function "get_value(char *, char const *)". mysql-5.5.32/client/mysql_plugin.c:196:5: alloc_fn: Storage is returned from allocation function "my_strndup(char const *, size_t, myf)". mysql-5.5.32/mysys/my_malloc.c:161:3: alloc_fn: Storage is returned from allocation function "my_malloc(size_t, myf)". mysql-5.5.32/mysys/my_malloc.c:38:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". mysql-5.5.32/mysys/my_malloc.c:38:3: var_assign: Assigning: "point" = "malloc(size)". mysql-5.5.32/mysys/my_malloc.c:66:3: return_alloc: Returning allocated memory "point". mysql-5.5.32/mysys/my_malloc.c:161:3: var_assign: Assigning: "ptr" = "my_malloc(length + 1UL, my_flags)". mysql-5.5.32/mysys/my_malloc.c:163:5: noescape: Resource "ptr" is not freed or pointed-to in function "__coverity_memcpy(void *, void const *, unsigned long)". mysql-5.5.32/mysys/my_malloc.c:166:3: return_alloc: Returning allocated memory "ptr". mysql-5.5.32/client/mysql_plugin.c:196:5: var_assign: Assigning: "destination" = "my_strndup(s, line_len - start, 8)". mysql-5.5.32/client/mysql_plugin.c:199:3: return_alloc: Returning allocated memory "destination". mysql-5.5.32/client/mysql_plugin.c:377: var_assign: Assigning: "value" = storage returned from "get_value(line, "--basedir")". mysql-5.5.32/client/mysql_plugin.c:379: noescape: Resource "value" is not freed or pointed-to in function "my_strdup(char const *, myf)". mysql-5.5.32/mysys/my_malloc.c:148:29: noescape: "my_strdup(char const *, myf)" does not free or save its pointer parameter "from". mysql-5.5.32/client/mysql_plugin.c:389: leaked_storage: Variable "value" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): mysql-5.5.32/client/mysql_plugin.c:381: alloc_fn: Storage is returned from allocation function "get_value(char *, char const *)". mysql-5.5.32/client/mysql_plugin.c:196:5: alloc_fn: Storage is returned from allocation function "my_strndup(char const *, size_t, myf)". mysql-5.5.32/mysys/my_malloc.c:161:3: alloc_fn: Storage is returned from allocation function "my_malloc(size_t, myf)". mysql-5.5.32/mysys/my_malloc.c:38:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". mysql-5.5.32/mysys/my_malloc.c:38:3: var_assign: Assigning: "point" = "malloc(size)". mysql-5.5.32/mysys/my_malloc.c:66:3: return_alloc: Returning allocated memory "point". mysql-5.5.32/mysys/my_malloc.c:161:3: var_assign: Assigning: "ptr" = "my_malloc(length + 1UL, my_flags)". mysql-5.5.32/mysys/my_malloc.c:163:5: noescape: Resource "ptr" is not freed or pointed-to in function "__coverity_memcpy(void *, void const *, unsigned long)". mysql-5.5.32/mysys/my_malloc.c:166:3: return_alloc: Returning allocated memory "ptr". mysql-5.5.32/client/mysql_plugin.c:196:5: var_assign: Assigning: "destination" = "my_strndup(s, line_len - start, 8)". mysql-5.5.32/client/mysql_plugin.c:199:3: return_alloc: Returning allocated memory "destination". mysql-5.5.32/client/mysql_plugin.c:381: var_assign: Assigning: "value" = storage returned from "get_value(line, "--plugin_dir")". mysql-5.5.32/client/mysql_plugin.c:383: noescape: Resource "value" is not freed or pointed-to in function "my_strdup(char const *, myf)". mysql-5.5.32/mysys/my_malloc.c:148:29: noescape: "my_strdup(char const *, myf)" does not free or save its pointer parameter "from". mysql-5.5.32/client/mysql_plugin.c:385: overwrite_var: Overwriting "value" in "value = get_value(line, "--plugin_ini")" leaks the storage that "value" points to. Error: RESOURCE_LEAK (CWE-772): mysql-5.5.32/client/mysql_plugin.c:381: alloc_fn: Storage is returned from allocation function "get_value(char *, char const *)". mysql-5.5.32/client/mysql_plugin.c:196:5: alloc_fn: Storage is returned from allocation function "my_strndup(char const *, size_t, myf)". mysql-5.5.32/mysys/my_malloc.c:161:3: alloc_fn: Storage is returned from allocation function "my_malloc(size_t, myf)". mysql-5.5.32/mysys/my_malloc.c:38:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". mysql-5.5.32/mysys/my_malloc.c:38:3: var_assign: Assigning: "point" = "malloc(size)". mysql-5.5.32/mysys/my_malloc.c:66:3: return_alloc: Returning allocated memory "point". mysql-5.5.32/mysys/my_malloc.c:161:3: var_assign: Assigning: "ptr" = "my_malloc(length + 1UL, my_flags)". mysql-5.5.32/mysys/my_malloc.c:163:5: noescape: Resource "ptr" is not freed or pointed-to in function "__coverity_memcpy(void *, void const *, unsigned long)". mysql-5.5.32/mysys/my_malloc.c:166:3: return_alloc: Returning allocated memory "ptr". mysql-5.5.32/client/mysql_plugin.c:196:5: var_assign: Assigning: "destination" = "my_strndup(s, line_len - start, 8)". mysql-5.5.32/client/mysql_plugin.c:199:3: return_alloc: Returning allocated memory "destination". mysql-5.5.32/client/mysql_plugin.c:381: var_assign: Assigning: "value" = storage returned from "get_value(line, "--plugin_dir")". mysql-5.5.32/client/mysql_plugin.c:383: noescape: Resource "value" is not freed or pointed-to in function "my_strdup(char const *, myf)". mysql-5.5.32/mysys/my_malloc.c:148:29: noescape: "my_strdup(char const *, myf)" does not free or save its pointer parameter "from". mysql-5.5.32/client/mysql_plugin.c:389: leaked_storage: Variable "value" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): mysql-5.5.32/client/mysql_plugin.c:385: alloc_fn: Storage is returned from allocation function "get_value(char *, char const *)". mysql-5.5.32/client/mysql_plugin.c:196:5: alloc_fn: Storage is returned from allocation function "my_strndup(char const *, size_t, myf)". mysql-5.5.32/mysys/my_malloc.c:161:3: alloc_fn: Storage is returned from allocation function "my_malloc(size_t, myf)". mysql-5.5.32/mysys/my_malloc.c:38:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". mysql-5.5.32/mysys/my_malloc.c:38:3: var_assign: Assigning: "point" = "malloc(size)". mysql-5.5.32/mysys/my_malloc.c:66:3: return_alloc: Returning allocated memory "point". mysql-5.5.32/mysys/my_malloc.c:161:3: var_assign: Assigning: "ptr" = "my_malloc(length + 1UL, my_flags)". mysql-5.5.32/mysys/my_malloc.c:163:5: noescape: Resource "ptr" is not freed or pointed-to in function "__coverity_memcpy(void *, void const *, unsigned long)". mysql-5.5.32/mysys/my_malloc.c:166:3: return_alloc: Returning allocated memory "ptr". mysql-5.5.32/client/mysql_plugin.c:196:5: var_assign: Assigning: "destination" = "my_strndup(s, line_len - start, 8)". mysql-5.5.32/client/mysql_plugin.c:199:3: return_alloc: Returning allocated memory "destination". mysql-5.5.32/client/mysql_plugin.c:385: var_assign: Assigning: "value" = storage returned from "get_value(line, "--plugin_ini")". mysql-5.5.32/client/mysql_plugin.c:387: noescape: Resource "value" is not freed or pointed-to in function "my_strdup(char const *, myf)". mysql-5.5.32/mysys/my_malloc.c:148:29: noescape: "my_strdup(char const *, myf)" does not free or save its pointer parameter "from". mysql-5.5.32/client/mysql_plugin.c:389: leaked_storage: Variable "value" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): mysql-5.5.32/cmd-line-utils/readline/bind.c:2046: alloc_fn: Storage is returned from allocation function "rl_funmap_names(void)". mysql-5.5.32/cmd-line-utils/readline/funmap.c:246:4: alloc_fn: Storage is returned from allocation function "xrealloc(void *, size_t)". mysql-5.5.32/cmd-line-utils/readline/xmalloc.c:73:3: alloc_fn: Storage is returned from allocation function "realloc(void *, size_t)". mysql-5.5.32/cmd-line-utils/readline/xmalloc.c:73:3: var_assign: Assigning: "temp" = "realloc(pointer, bytes)". mysql-5.5.32/cmd-line-utils/readline/xmalloc.c:77:3: return_alloc: Returning allocated memory "temp". mysql-5.5.32/cmd-line-utils/readline/funmap.c:246:4: var_assign: Assigning: "result" = "xrealloc(result, result_size * 8UL)". mysql-5.5.32/cmd-line-utils/readline/funmap.c:253:3: noescape: Resource "result" is not freed or pointed-to in function "qsort(void *, size_t, size_t, __compar_fn_t)". mysql-5.5.32/cmd-line-utils/readline/funmap.c:254:3: return_alloc: Returning allocated memory "result". mysql-5.5.32/cmd-line-utils/readline/bind.c:2046: var_assign: Assigning: "names" = storage returned from "rl_funmap_names()". mysql-5.5.32/cmd-line-utils/readline/bind.c:2103: leaked_storage: Variable "names" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): mysql-5.5.32/sql/sql_select.cc:14502: alloc_fn: Storage is returned from allocation function "my_multi_malloc(myf, ...)". mysql-5.5.32/mysys/mulalloc.c:50:3: alloc_fn: Storage is returned from allocation function "my_malloc(size_t, myf)". mysql-5.5.32/mysys/my_malloc.c:38:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". mysql-5.5.32/mysys/my_malloc.c:38:3: var_assign: Assigning: "point" = "malloc(size)". mysql-5.5.32/mysys/my_malloc.c:66:3: return_alloc: Returning allocated memory "point". mysql-5.5.32/mysys/mulalloc.c:50:3: var_assign: Assigning: "start" = "my_malloc(tot_length, myFlags)". mysql-5.5.32/mysys/mulalloc.c:54:3: var_assign: Assigning: "res" = "start". mysql-5.5.32/mysys/mulalloc.c:62:3: return_alloc: Returning allocated memory "start". mysql-5.5.32/sql/sql_select.cc:14502: leaked_storage: Ignoring storage allocated by "my_multi_malloc(16, &key_buffer, (uint)((key_length + extra_length) * (long)file->stats.records), &field_lengths, (uint)(field_count * 4UL), NULL)" leaks it. Error: RESOURCE_LEAK (CWE-772): mysql-5.5.32/storage/csv/ha_tina.cc:1708: alloc_fn: Storage is returned from allocation function "my_malloc(size_t, myf)". mysql-5.5.32/mysys/my_malloc.c:38:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". mysql-5.5.32/mysys/my_malloc.c:38:3: var_assign: Assigning: "point" = "malloc(size)". mysql-5.5.32/mysys/my_malloc.c:66:3: return_alloc: Returning allocated memory "point". mysql-5.5.32/storage/csv/ha_tina.cc:1708: var_assign: Assigning: "buf" = storage returned from "my_malloc(this->table->s->reclength, 16)". mysql-5.5.32/storage/csv/ha_tina.cc:1713: leaked_storage: Variable "buf" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): mysql-5.5.32/storage/csv/ha_tina.cc:1502: alloc_fn: Storage is returned from allocation function "my_malloc(size_t, myf)". mysql-5.5.32/mysys/my_malloc.c:38:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". mysql-5.5.32/mysys/my_malloc.c:38:3: var_assign: Assigning: "point" = "malloc(size)". mysql-5.5.32/mysys/my_malloc.c:66:3: return_alloc: Returning allocated memory "point". mysql-5.5.32/storage/csv/ha_tina.cc:1502: var_assign: Assigning: "buf" = storage returned from "my_malloc(this->table->s->reclength, 16)". mysql-5.5.32/storage/csv/ha_tina.cc:1507: leaked_storage: Variable "buf" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): mysql-5.5.32/client/mysqladmin.cc:937: alloc_fn: Storage is returned from allocation function "get_tty_password(char const *)". mysql-5.5.32/client/get_password.c:209:3: alloc_fn: Storage is returned from allocation function "my_strdup(char const *, myf)". mysql-5.5.32/mysys/my_malloc.c:152:3: alloc_fn: Storage is returned from allocation function "my_malloc(size_t, myf)". mysql-5.5.32/mysys/my_malloc.c:38:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". mysql-5.5.32/mysys/my_malloc.c:38:3: var_assign: Assigning: "point" = "malloc(size)". mysql-5.5.32/mysys/my_malloc.c:66:3: return_alloc: Returning allocated memory "point". mysql-5.5.32/mysys/my_malloc.c:152:3: var_assign: Assigning: "ptr" = "my_malloc(length, my_flags)". mysql-5.5.32/mysys/my_malloc.c:153:5: noescape: Resource "ptr" is not freed or pointed-to in function "__coverity_memcpy(void *, void const *, unsigned long)". mysql-5.5.32/mysys/my_malloc.c:154:3: return_alloc: Returning allocated memory "ptr". mysql-5.5.32/client/get_password.c:209:3: return_alloc_fn: Directly returning storage allocated by "my_strdup(char const *, myf)". mysql-5.5.32/client/mysqladmin.cc:937: var_assign: Assigning: "typed_password" = storage returned from "get_tty_password("New password: ")". mysql-5.5.32/client/mysqladmin.cc:939: noescape: Resource "typed_password" is not freed or pointed-to in function "strcmp(char const *, char const *)". mysql-5.5.32/client/mysqladmin.cc:993: noescape: Resource "typed_password" is not freed or pointed-to in function "strlen(char const *)". mysql-5.5.32/client/mysqladmin.cc:993: noescape: Resource "typed_password" is not freed or pointed-to in function "my_make_scrambled_password_323(char *, char const *, size_t)". mysql-5.5.32/sql/password.c:148:59: noescape: "my_make_scrambled_password_323(char *, char const *, size_t)" does not free or save its pointer parameter "password". mysql-5.5.32/client/mysqladmin.cc:1005: leaked_storage: Variable "typed_password" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): mysql-5.5.32/client/mysqladmin.cc:937: alloc_fn: Storage is returned from allocation function "get_tty_password(char const *)". mysql-5.5.32/client/get_password.c:209:3: alloc_fn: Storage is returned from allocation function "my_strdup(char const *, myf)". mysql-5.5.32/mysys/my_malloc.c:152:3: alloc_fn: Storage is returned from allocation function "my_malloc(size_t, myf)". mysql-5.5.32/mysys/my_malloc.c:38:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". mysql-5.5.32/mysys/my_malloc.c:38:3: var_assign: Assigning: "point" = "malloc(size)". mysql-5.5.32/mysys/my_malloc.c:66:3: return_alloc: Returning allocated memory "point". mysql-5.5.32/mysys/my_malloc.c:152:3: var_assign: Assigning: "ptr" = "my_malloc(length, my_flags)". mysql-5.5.32/mysys/my_malloc.c:153:5: noescape: Resource "ptr" is not freed or pointed-to in function "__coverity_memcpy(void *, void const *, unsigned long)". mysql-5.5.32/mysys/my_malloc.c:154:3: return_alloc: Returning allocated memory "ptr". mysql-5.5.32/client/get_password.c:209:3: return_alloc_fn: Directly returning storage allocated by "my_strdup(char const *, myf)". mysql-5.5.32/client/mysqladmin.cc:937: var_assign: Assigning: "typed_password" = storage returned from "get_tty_password("New password: ")". mysql-5.5.32/client/mysqladmin.cc:939: noescape: Resource "typed_password" is not freed or pointed-to in function "strcmp(char const *, char const *)". mysql-5.5.32/client/mysqladmin.cc:993: noescape: Resource "typed_password" is not freed or pointed-to in function "strlen(char const *)". mysql-5.5.32/client/mysqladmin.cc:993: noescape: Resource "typed_password" is not freed or pointed-to in function "my_make_scrambled_password_323(char *, char const *, size_t)". mysql-5.5.32/sql/password.c:148:59: noescape: "my_make_scrambled_password_323(char *, char const *, size_t)" does not free or save its pointer parameter "password". mysql-5.5.32/client/mysqladmin.cc:1013: leaked_storage: Variable "typed_password" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): mysql-5.5.32/client/mysqladmin.cc:937: alloc_fn: Storage is returned from allocation function "get_tty_password(char const *)". mysql-5.5.32/client/get_password.c:209:3: alloc_fn: Storage is returned from allocation function "my_strdup(char const *, myf)". mysql-5.5.32/mysys/my_malloc.c:152:3: alloc_fn: Storage is returned from allocation function "my_malloc(size_t, myf)". mysql-5.5.32/mysys/my_malloc.c:38:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". mysql-5.5.32/mysys/my_malloc.c:38:3: var_assign: Assigning: "point" = "malloc(size)". mysql-5.5.32/mysys/my_malloc.c:66:3: return_alloc: Returning allocated memory "point". mysql-5.5.32/mysys/my_malloc.c:152:3: var_assign: Assigning: "ptr" = "my_malloc(length, my_flags)". mysql-5.5.32/mysys/my_malloc.c:153:5: noescape: Resource "ptr" is not freed or pointed-to in function "__coverity_memcpy(void *, void const *, unsigned long)". mysql-5.5.32/mysys/my_malloc.c:154:3: return_alloc: Returning allocated memory "ptr". mysql-5.5.32/client/get_password.c:209:3: return_alloc_fn: Directly returning storage allocated by "my_strdup(char const *, myf)". mysql-5.5.32/client/mysqladmin.cc:937: var_assign: Assigning: "typed_password" = storage returned from "get_tty_password("New password: ")". mysql-5.5.32/client/mysqladmin.cc:939: noescape: Resource "typed_password" is not freed or pointed-to in function "strcmp(char const *, char const *)". mysql-5.5.32/client/mysqladmin.cc:993: noescape: Resource "typed_password" is not freed or pointed-to in function "strlen(char const *)". mysql-5.5.32/client/mysqladmin.cc:993: noescape: Resource "typed_password" is not freed or pointed-to in function "my_make_scrambled_password_323(char *, char const *, size_t)". mysql-5.5.32/sql/password.c:148:59: noescape: "my_make_scrambled_password_323(char *, char const *, size_t)" does not free or save its pointer parameter "password". mysql-5.5.32/client/mysqladmin.cc:1027: leaked_storage: Variable "typed_password" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): mysql-5.5.32/client/mysqladmin.cc:937: alloc_fn: Storage is returned from allocation function "get_tty_password(char const *)". mysql-5.5.32/client/get_password.c:209:3: alloc_fn: Storage is returned from allocation function "my_strdup(char const *, myf)". mysql-5.5.32/mysys/my_malloc.c:152:3: alloc_fn: Storage is returned from allocation function "my_malloc(size_t, myf)". mysql-5.5.32/mysys/my_malloc.c:38:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". mysql-5.5.32/mysys/my_malloc.c:38:3: var_assign: Assigning: "point" = "malloc(size)". mysql-5.5.32/mysys/my_malloc.c:66:3: return_alloc: Returning allocated memory "point". mysql-5.5.32/mysys/my_malloc.c:152:3: var_assign: Assigning: "ptr" = "my_malloc(length, my_flags)". mysql-5.5.32/mysys/my_malloc.c:153:5: noescape: Resource "ptr" is not freed or pointed-to in function "__coverity_memcpy(void *, void const *, unsigned long)". mysql-5.5.32/mysys/my_malloc.c:154:3: return_alloc: Returning allocated memory "ptr". mysql-5.5.32/client/get_password.c:209:3: return_alloc_fn: Directly returning storage allocated by "my_strdup(char const *, myf)". mysql-5.5.32/client/mysqladmin.cc:937: var_assign: Assigning: "typed_password" = storage returned from "get_tty_password("New password: ")". mysql-5.5.32/client/mysqladmin.cc:939: noescape: Resource "typed_password" is not freed or pointed-to in function "strcmp(char const *, char const *)". mysql-5.5.32/client/mysqladmin.cc:942: leaked_storage: Variable "typed_password" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): mysql-5.5.32/client/mysqladmin.cc:937: alloc_fn: Storage is returned from allocation function "get_tty_password(char const *)". mysql-5.5.32/client/get_password.c:209:3: alloc_fn: Storage is returned from allocation function "my_strdup(char const *, myf)". mysql-5.5.32/mysys/my_malloc.c:152:3: alloc_fn: Storage is returned from allocation function "my_malloc(size_t, myf)". mysql-5.5.32/mysys/my_malloc.c:38:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". mysql-5.5.32/mysys/my_malloc.c:38:3: var_assign: Assigning: "point" = "malloc(size)". mysql-5.5.32/mysys/my_malloc.c:66:3: return_alloc: Returning allocated memory "point". mysql-5.5.32/mysys/my_malloc.c:152:3: var_assign: Assigning: "ptr" = "my_malloc(length, my_flags)". mysql-5.5.32/mysys/my_malloc.c:153:5: noescape: Resource "ptr" is not freed or pointed-to in function "__coverity_memcpy(void *, void const *, unsigned long)". mysql-5.5.32/mysys/my_malloc.c:154:3: return_alloc: Returning allocated memory "ptr". mysql-5.5.32/client/get_password.c:209:3: return_alloc_fn: Directly returning storage allocated by "my_strdup(char const *, myf)". mysql-5.5.32/client/mysqladmin.cc:937: var_assign: Assigning: "typed_password" = storage returned from "get_tty_password("New password: ")". mysql-5.5.32/client/mysqladmin.cc:939: noescape: Resource "typed_password" is not freed or pointed-to in function "strcmp(char const *, char const *)". mysql-5.5.32/client/mysqladmin.cc:969: leaked_storage: Variable "typed_password" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): mysql-5.5.32/client/mysqladmin.cc:938: alloc_fn: Storage is returned from allocation function "get_tty_password(char const *)". mysql-5.5.32/client/get_password.c:209:3: alloc_fn: Storage is returned from allocation function "my_strdup(char const *, myf)". mysql-5.5.32/mysys/my_malloc.c:152:3: alloc_fn: Storage is returned from allocation function "my_malloc(size_t, myf)". mysql-5.5.32/mysys/my_malloc.c:38:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". mysql-5.5.32/mysys/my_malloc.c:38:3: var_assign: Assigning: "point" = "malloc(size)". mysql-5.5.32/mysys/my_malloc.c:66:3: return_alloc: Returning allocated memory "point". mysql-5.5.32/mysys/my_malloc.c:152:3: var_assign: Assigning: "ptr" = "my_malloc(length, my_flags)". mysql-5.5.32/mysys/my_malloc.c:153:5: noescape: Resource "ptr" is not freed or pointed-to in function "__coverity_memcpy(void *, void const *, unsigned long)". mysql-5.5.32/mysys/my_malloc.c:154:3: return_alloc: Returning allocated memory "ptr". mysql-5.5.32/client/get_password.c:209:3: return_alloc_fn: Directly returning storage allocated by "my_strdup(char const *, myf)". mysql-5.5.32/client/mysqladmin.cc:938: var_assign: Assigning: "verified" = storage returned from "get_tty_password("Confirm new password: ")". mysql-5.5.32/client/mysqladmin.cc:939: noescape: Resource "verified" is not freed or pointed-to in function "strcmp(char const *, char const *)". mysql-5.5.32/client/mysqladmin.cc:942: leaked_storage: Variable "verified" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): mysql-5.5.32/client/mysqladmin.cc:938: alloc_fn: Storage is returned from allocation function "get_tty_password(char const *)". mysql-5.5.32/client/get_password.c:209:3: alloc_fn: Storage is returned from allocation function "my_strdup(char const *, myf)". mysql-5.5.32/mysys/my_malloc.c:152:3: alloc_fn: Storage is returned from allocation function "my_malloc(size_t, myf)". mysql-5.5.32/mysys/my_malloc.c:38:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". mysql-5.5.32/mysys/my_malloc.c:38:3: var_assign: Assigning: "point" = "malloc(size)". mysql-5.5.32/mysys/my_malloc.c:66:3: return_alloc: Returning allocated memory "point". mysql-5.5.32/mysys/my_malloc.c:152:3: var_assign: Assigning: "ptr" = "my_malloc(length, my_flags)". mysql-5.5.32/mysys/my_malloc.c:153:5: noescape: Resource "ptr" is not freed or pointed-to in function "__coverity_memcpy(void *, void const *, unsigned long)". mysql-5.5.32/mysys/my_malloc.c:154:3: return_alloc: Returning allocated memory "ptr". mysql-5.5.32/client/get_password.c:209:3: return_alloc_fn: Directly returning storage allocated by "my_strdup(char const *, myf)". mysql-5.5.32/client/mysqladmin.cc:938: var_assign: Assigning: "verified" = storage returned from "get_tty_password("Confirm new password: ")". mysql-5.5.32/client/mysqladmin.cc:939: noescape: Resource "verified" is not freed or pointed-to in function "strcmp(char const *, char const *)". mysql-5.5.32/client/mysqladmin.cc:969: leaked_storage: Variable "verified" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): mysql-5.5.32/client/mysqladmin.cc:938: alloc_fn: Storage is returned from allocation function "get_tty_password(char const *)". mysql-5.5.32/client/get_password.c:209:3: alloc_fn: Storage is returned from allocation function "my_strdup(char const *, myf)". mysql-5.5.32/mysys/my_malloc.c:152:3: alloc_fn: Storage is returned from allocation function "my_malloc(size_t, myf)". mysql-5.5.32/mysys/my_malloc.c:38:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". mysql-5.5.32/mysys/my_malloc.c:38:3: var_assign: Assigning: "point" = "malloc(size)". mysql-5.5.32/mysys/my_malloc.c:66:3: return_alloc: Returning allocated memory "point". mysql-5.5.32/mysys/my_malloc.c:152:3: var_assign: Assigning: "ptr" = "my_malloc(length, my_flags)". mysql-5.5.32/mysys/my_malloc.c:153:5: noescape: Resource "ptr" is not freed or pointed-to in function "__coverity_memcpy(void *, void const *, unsigned long)". mysql-5.5.32/mysys/my_malloc.c:154:3: return_alloc: Returning allocated memory "ptr". mysql-5.5.32/client/get_password.c:209:3: return_alloc_fn: Directly returning storage allocated by "my_strdup(char const *, myf)". mysql-5.5.32/client/mysqladmin.cc:938: var_assign: Assigning: "verified" = storage returned from "get_tty_password("Confirm new password: ")". mysql-5.5.32/client/mysqladmin.cc:939: noescape: Resource "verified" is not freed or pointed-to in function "strcmp(char const *, char const *)". mysql-5.5.32/client/mysqladmin.cc:1005: leaked_storage: Variable "verified" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): mysql-5.5.32/client/mysqladmin.cc:938: alloc_fn: Storage is returned from allocation function "get_tty_password(char const *)". mysql-5.5.32/client/get_password.c:209:3: alloc_fn: Storage is returned from allocation function "my_strdup(char const *, myf)". mysql-5.5.32/mysys/my_malloc.c:152:3: alloc_fn: Storage is returned from allocation function "my_malloc(size_t, myf)". mysql-5.5.32/mysys/my_malloc.c:38:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". mysql-5.5.32/mysys/my_malloc.c:38:3: var_assign: Assigning: "point" = "malloc(size)". mysql-5.5.32/mysys/my_malloc.c:66:3: return_alloc: Returning allocated memory "point". mysql-5.5.32/mysys/my_malloc.c:152:3: var_assign: Assigning: "ptr" = "my_malloc(length, my_flags)". mysql-5.5.32/mysys/my_malloc.c:153:5: noescape: Resource "ptr" is not freed or pointed-to in function "__coverity_memcpy(void *, void const *, unsigned long)". mysql-5.5.32/mysys/my_malloc.c:154:3: return_alloc: Returning allocated memory "ptr". mysql-5.5.32/client/get_password.c:209:3: return_alloc_fn: Directly returning storage allocated by "my_strdup(char const *, myf)". mysql-5.5.32/client/mysqladmin.cc:938: var_assign: Assigning: "verified" = storage returned from "get_tty_password("Confirm new password: ")". mysql-5.5.32/client/mysqladmin.cc:939: noescape: Resource "verified" is not freed or pointed-to in function "strcmp(char const *, char const *)". mysql-5.5.32/client/mysqladmin.cc:1013: leaked_storage: Variable "verified" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): mysql-5.5.32/client/mysqladmin.cc:938: alloc_fn: Storage is returned from allocation function "get_tty_password(char const *)". mysql-5.5.32/client/get_password.c:209:3: alloc_fn: Storage is returned from allocation function "my_strdup(char const *, myf)". mysql-5.5.32/mysys/my_malloc.c:152:3: alloc_fn: Storage is returned from allocation function "my_malloc(size_t, myf)". mysql-5.5.32/mysys/my_malloc.c:38:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". mysql-5.5.32/mysys/my_malloc.c:38:3: var_assign: Assigning: "point" = "malloc(size)". mysql-5.5.32/mysys/my_malloc.c:66:3: return_alloc: Returning allocated memory "point". mysql-5.5.32/mysys/my_malloc.c:152:3: var_assign: Assigning: "ptr" = "my_malloc(length, my_flags)". mysql-5.5.32/mysys/my_malloc.c:153:5: noescape: Resource "ptr" is not freed or pointed-to in function "__coverity_memcpy(void *, void const *, unsigned long)". mysql-5.5.32/mysys/my_malloc.c:154:3: return_alloc: Returning allocated memory "ptr". mysql-5.5.32/client/get_password.c:209:3: return_alloc_fn: Directly returning storage allocated by "my_strdup(char const *, myf)". mysql-5.5.32/client/mysqladmin.cc:938: var_assign: Assigning: "verified" = storage returned from "get_tty_password("Confirm new password: ")". mysql-5.5.32/client/mysqladmin.cc:939: noescape: Resource "verified" is not freed or pointed-to in function "strcmp(char const *, char const *)". mysql-5.5.32/client/mysqladmin.cc:1027: leaked_storage: Variable "verified" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): mysql-5.5.32/cmd-line-utils/readline/util.c:191: alloc_fn: Storage is returned from allocation function "tilde_expand(char const *)". mysql-5.5.32/cmd-line-utils/readline/tilde.c:202:5: alloc_fn: Storage is returned from allocation function "xmalloc(size_t)". mysql-5.5.32/cmd-line-utils/readline/xmalloc.c:60:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". mysql-5.5.32/cmd-line-utils/readline/xmalloc.c:60:3: var_assign: Assigning: "temp" = "malloc(bytes)". mysql-5.5.32/cmd-line-utils/readline/xmalloc.c:63:3: return_alloc: Returning allocated memory "temp". mysql-5.5.32/cmd-line-utils/readline/tilde.c:202:5: var_assign: Assigning: "result" = "xmalloc(result_size = strlen(string) + 1UL)". mysql-5.5.32/cmd-line-utils/readline/tilde.c:259:3: return_alloc: Returning allocated memory "result". mysql-5.5.32/cmd-line-utils/readline/util.c:191: var_assign: Assigning: "homedir" = storage returned from "tilde_expand("~")". mysql-5.5.32/cmd-line-utils/readline/util.c:192: noescape: Resource "homedir" is not freed or pointed-to in function "_rl_replace_text(char const *, int, int)". mysql-5.5.32/cmd-line-utils/readline/text.c:182:19: noescape: "_rl_replace_text(char const *, int, int)" does not free or save its pointer parameter "text". mysql-5.5.32/cmd-line-utils/readline/util.c:193: leaked_storage: Variable "homedir" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): mysql-5.5.32/cmd-line-utils/readline/util.c:219: alloc_fn: Storage is returned from allocation function "tilde_expand(char const *)". mysql-5.5.32/cmd-line-utils/readline/tilde.c:202:5: alloc_fn: Storage is returned from allocation function "xmalloc(size_t)". mysql-5.5.32/cmd-line-utils/readline/xmalloc.c:60:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". mysql-5.5.32/cmd-line-utils/readline/xmalloc.c:60:3: var_assign: Assigning: "temp" = "malloc(bytes)". mysql-5.5.32/cmd-line-utils/readline/xmalloc.c:63:3: return_alloc: Returning allocated memory "temp". mysql-5.5.32/cmd-line-utils/readline/tilde.c:202:5: var_assign: Assigning: "result" = "xmalloc(result_size = strlen(string) + 1UL)". mysql-5.5.32/cmd-line-utils/readline/tilde.c:259:3: return_alloc: Returning allocated memory "result". mysql-5.5.32/cmd-line-utils/readline/util.c:219: var_assign: Assigning: "homedir" = storage returned from "tilde_expand(temp)". mysql-5.5.32/cmd-line-utils/readline/util.c:222: noescape: Resource "homedir" is not freed or pointed-to in function "_rl_replace_text(char const *, int, int)". mysql-5.5.32/cmd-line-utils/readline/text.c:182:19: noescape: "_rl_replace_text(char const *, int, int)" does not free or save its pointer parameter "text". mysql-5.5.32/cmd-line-utils/readline/util.c:225: leaked_storage: Variable "homedir" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): mysql-5.5.32/mysys/lf_hash.c:477: alloc_fn: Storage is returned from allocation function "my_malloc(size_t, myf)". mysql-5.5.32/mysys/my_malloc.c:38:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". mysql-5.5.32/mysys/my_malloc.c:38:3: var_assign: Assigning: "point" = "malloc(size)". mysql-5.5.32/mysys/my_malloc.c:66:3: return_alloc: Returning allocated memory "point". mysql-5.5.32/mysys/lf_hash.c:477: var_assign: Assigning: "dummy" = storage returned from "my_malloc(32UL, 16)". mysql-5.5.32/mysys/lf_hash.c:484: leaked_storage: Variable "dummy" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): mysql-5.5.32/cmd-line-utils/readline/histexpand.c:1582: alloc_fn: Storage is returned from allocation function "history_tokenize_internal(char const *, int, int *)". mysql-5.5.32/cmd-line-utils/readline/histexpand.c:1553:2: alloc_fn: Storage is returned from allocation function "xrealloc(void *, size_t)". mysql-5.5.32/cmd-line-utils/readline/xmalloc.c:73:3: alloc_fn: Storage is returned from allocation function "realloc(void *, size_t)". mysql-5.5.32/cmd-line-utils/readline/xmalloc.c:73:3: var_assign: Assigning: "temp" = "realloc(pointer, bytes)". mysql-5.5.32/cmd-line-utils/readline/xmalloc.c:77:3: return_alloc: Returning allocated memory "temp". mysql-5.5.32/cmd-line-utils/readline/histexpand.c:1553:2: var_assign: Assigning: "result" = "xrealloc(result, (size += 10) * 8UL)". mysql-5.5.32/cmd-line-utils/readline/histexpand.c:1530:2: return_alloc: Returning allocated memory "result". mysql-5.5.32/cmd-line-utils/readline/histexpand.c:1582: var_assign: Assigning: "words" = storage returned from "history_tokenize_internal(line, ind, &wind)". mysql-5.5.32/cmd-line-utils/readline/histexpand.c:1584: leaked_storage: Variable "words" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): mysql-5.5.32/extra/comp_err.c:437: alloc_fn: Storage is returned from allocation function "my_fopen(char const *, int, myf)". mysql-5.5.32/mysys/my_fopen.c:54:3: alloc_fn: Storage is returned from allocation function "fopen(char const * restrict, char const * restrict)". mysql-5.5.32/mysys/my_fopen.c:54:3: var_assign: Assigning: "fd" = "fopen(filename, type)". mysql-5.5.32/mysys/my_fopen.c:64:17: noescape: Resource "fd" is not freed or pointed-to in function "my_fileno(FILE *)". mysql-5.5.32/mysys/my_fstream.c:187:21: noescape: "my_fileno(FILE *)" does not free or save its pointer parameter "f". mysql-5.5.32/mysys/my_fopen.c:68:7: return_alloc: Returning allocated memory "fd". mysql-5.5.32/extra/comp_err.c:437: var_assign: Assigning: "file" = storage returned from "my_fopen(file_name, 0, 16)". mysql-5.5.32/extra/comp_err.c:440: noescape: Resource "file" is not freed or pointed-to in function "fgets(char * restrict, int, FILE * restrict)". mysql-5.5.32/extra/comp_err.c:440: noescape: Resource "file" is not freed or pointed-to in function "fgets(char * restrict, int, FILE * restrict)". mysql-5.5.32/extra/comp_err.c:440: noescape: Resource "file" is not freed or pointed-to in function "fgets(char * restrict, int, FILE * restrict)". mysql-5.5.32/extra/comp_err.c:440: noescape: Resource "file" is not freed or pointed-to in function "fgets(char * restrict, int, FILE * restrict)". mysql-5.5.32/extra/comp_err.c:484: leaked_storage: Variable "file" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): mysql-5.5.32/extra/comp_err.c:437: alloc_fn: Storage is returned from allocation function "my_fopen(char const *, int, myf)". mysql-5.5.32/mysys/my_fopen.c:54:3: alloc_fn: Storage is returned from allocation function "fopen(char const * restrict, char const * restrict)". mysql-5.5.32/mysys/my_fopen.c:54:3: var_assign: Assigning: "fd" = "fopen(filename, type)". mysql-5.5.32/mysys/my_fopen.c:64:17: noescape: Resource "fd" is not freed or pointed-to in function "my_fileno(FILE *)". mysql-5.5.32/mysys/my_fstream.c:187:21: noescape: "my_fileno(FILE *)" does not free or save its pointer parameter "f". mysql-5.5.32/mysys/my_fopen.c:68:7: return_alloc: Returning allocated memory "fd". mysql-5.5.32/extra/comp_err.c:437: var_assign: Assigning: "file" = storage returned from "my_fopen(file_name, 0, 16)". mysql-5.5.32/extra/comp_err.c:440: noescape: Resource "file" is not freed or pointed-to in function "fgets(char * restrict, int, FILE * restrict)". mysql-5.5.32/extra/comp_err.c:440: noescape: Resource "file" is not freed or pointed-to in function "fgets(char * restrict, int, FILE * restrict)". mysql-5.5.32/extra/comp_err.c:440: noescape: Resource "file" is not freed or pointed-to in function "fgets(char * restrict, int, FILE * restrict)". mysql-5.5.32/extra/comp_err.c:440: noescape: Resource "file" is not freed or pointed-to in function "fgets(char * restrict, int, FILE * restrict)". mysql-5.5.32/extra/comp_err.c:491: leaked_storage: Variable "file" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): mysql-5.5.32/extra/comp_err.c:437: alloc_fn: Storage is returned from allocation function "my_fopen(char const *, int, myf)". mysql-5.5.32/mysys/my_fopen.c:54:3: alloc_fn: Storage is returned from allocation function "fopen(char const * restrict, char const * restrict)". mysql-5.5.32/mysys/my_fopen.c:54:3: var_assign: Assigning: "fd" = "fopen(filename, type)". mysql-5.5.32/mysys/my_fopen.c:64:17: noescape: Resource "fd" is not freed or pointed-to in function "my_fileno(FILE *)". mysql-5.5.32/mysys/my_fstream.c:187:21: noescape: "my_fileno(FILE *)" does not free or save its pointer parameter "f". mysql-5.5.32/mysys/my_fopen.c:68:7: return_alloc: Returning allocated memory "fd". mysql-5.5.32/extra/comp_err.c:437: var_assign: Assigning: "file" = storage returned from "my_fopen(file_name, 0, 16)". mysql-5.5.32/extra/comp_err.c:440: noescape: Resource "file" is not freed or pointed-to in function "fgets(char * restrict, int, FILE * restrict)". mysql-5.5.32/extra/comp_err.c:440: noescape: Resource "file" is not freed or pointed-to in function "fgets(char * restrict, int, FILE * restrict)". mysql-5.5.32/extra/comp_err.c:440: noescape: Resource "file" is not freed or pointed-to in function "fgets(char * restrict, int, FILE * restrict)". mysql-5.5.32/extra/comp_err.c:440: noescape: Resource "file" is not freed or pointed-to in function "fgets(char * restrict, int, FILE * restrict)". mysql-5.5.32/extra/comp_err.c:498: leaked_storage: Variable "file" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): mysql-5.5.32/extra/comp_err.c:437: alloc_fn: Storage is returned from allocation function "my_fopen(char const *, int, myf)". mysql-5.5.32/mysys/my_fopen.c:54:3: alloc_fn: Storage is returned from allocation function "fopen(char const * restrict, char const * restrict)". mysql-5.5.32/mysys/my_fopen.c:54:3: var_assign: Assigning: "fd" = "fopen(filename, type)". mysql-5.5.32/mysys/my_fopen.c:64:17: noescape: Resource "fd" is not freed or pointed-to in function "my_fileno(FILE *)". mysql-5.5.32/mysys/my_fstream.c:187:21: noescape: "my_fileno(FILE *)" does not free or save its pointer parameter "f". mysql-5.5.32/mysys/my_fopen.c:68:7: return_alloc: Returning allocated memory "fd". mysql-5.5.32/extra/comp_err.c:437: var_assign: Assigning: "file" = storage returned from "my_fopen(file_name, 0, 16)". mysql-5.5.32/extra/comp_err.c:440: noescape: Resource "file" is not freed or pointed-to in function "fgets(char * restrict, int, FILE * restrict)". mysql-5.5.32/extra/comp_err.c:440: noescape: Resource "file" is not freed or pointed-to in function "fgets(char * restrict, int, FILE * restrict)". mysql-5.5.32/extra/comp_err.c:440: noescape: Resource "file" is not freed or pointed-to in function "fgets(char * restrict, int, FILE * restrict)". mysql-5.5.32/extra/comp_err.c:440: noescape: Resource "file" is not freed or pointed-to in function "fgets(char * restrict, int, FILE * restrict)". mysql-5.5.32/extra/comp_err.c:501: leaked_storage: Variable "file" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): mysql-5.5.32/extra/comp_err.c:437: alloc_fn: Storage is returned from allocation function "my_fopen(char const *, int, myf)". mysql-5.5.32/mysys/my_fopen.c:54:3: alloc_fn: Storage is returned from allocation function "fopen(char const * restrict, char const * restrict)". mysql-5.5.32/mysys/my_fopen.c:54:3: var_assign: Assigning: "fd" = "fopen(filename, type)". mysql-5.5.32/mysys/my_fopen.c:64:17: noescape: Resource "fd" is not freed or pointed-to in function "my_fileno(FILE *)". mysql-5.5.32/mysys/my_fstream.c:187:21: noescape: "my_fileno(FILE *)" does not free or save its pointer parameter "f". mysql-5.5.32/mysys/my_fopen.c:68:7: return_alloc: Returning allocated memory "fd". mysql-5.5.32/extra/comp_err.c:437: var_assign: Assigning: "file" = storage returned from "my_fopen(file_name, 0, 16)". mysql-5.5.32/extra/comp_err.c:440: noescape: Resource "file" is not freed or pointed-to in function "fgets(char * restrict, int, FILE * restrict)". mysql-5.5.32/extra/comp_err.c:440: noescape: Resource "file" is not freed or pointed-to in function "fgets(char * restrict, int, FILE * restrict)". mysql-5.5.32/extra/comp_err.c:440: noescape: Resource "file" is not freed or pointed-to in function "fgets(char * restrict, int, FILE * restrict)". mysql-5.5.32/extra/comp_err.c:467: leaked_storage: Variable "file" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): mysql-5.5.32/extra/comp_err.c:437: alloc_fn: Storage is returned from allocation function "my_fopen(char const *, int, myf)". mysql-5.5.32/mysys/my_fopen.c:54:3: alloc_fn: Storage is returned from allocation function "fopen(char const * restrict, char const * restrict)". mysql-5.5.32/mysys/my_fopen.c:54:3: var_assign: Assigning: "fd" = "fopen(filename, type)". mysql-5.5.32/mysys/my_fopen.c:64:17: noescape: Resource "fd" is not freed or pointed-to in function "my_fileno(FILE *)". mysql-5.5.32/mysys/my_fstream.c:187:21: noescape: "my_fileno(FILE *)" does not free or save its pointer parameter "f". mysql-5.5.32/mysys/my_fopen.c:68:7: return_alloc: Returning allocated memory "fd". mysql-5.5.32/extra/comp_err.c:437: var_assign: Assigning: "file" = storage returned from "my_fopen(file_name, 0, 16)". mysql-5.5.32/extra/comp_err.c:440: noescape: Resource "file" is not freed or pointed-to in function "fgets(char * restrict, int, FILE * restrict)". mysql-5.5.32/extra/comp_err.c:440: noescape: Resource "file" is not freed or pointed-to in function "fgets(char * restrict, int, FILE * restrict)". mysql-5.5.32/extra/comp_err.c:447: leaked_storage: Variable "file" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): mysql-5.5.32/extra/comp_err.c:437: alloc_fn: Storage is returned from allocation function "my_fopen(char const *, int, myf)". mysql-5.5.32/mysys/my_fopen.c:54:3: alloc_fn: Storage is returned from allocation function "fopen(char const * restrict, char const * restrict)". mysql-5.5.32/mysys/my_fopen.c:54:3: var_assign: Assigning: "fd" = "fopen(filename, type)". mysql-5.5.32/mysys/my_fopen.c:64:17: noescape: Resource "fd" is not freed or pointed-to in function "my_fileno(FILE *)". mysql-5.5.32/mysys/my_fstream.c:187:21: noescape: "my_fileno(FILE *)" does not free or save its pointer parameter "f". mysql-5.5.32/mysys/my_fopen.c:68:7: return_alloc: Returning allocated memory "fd". mysql-5.5.32/extra/comp_err.c:437: var_assign: Assigning: "file" = storage returned from "my_fopen(file_name, 0, 16)". mysql-5.5.32/extra/comp_err.c:440: noescape: Resource "file" is not freed or pointed-to in function "fgets(char * restrict, int, FILE * restrict)". mysql-5.5.32/extra/comp_err.c:456: leaked_storage: Variable "file" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): mysql-5.5.32/extra/comp_err.c:437: alloc_fn: Storage is returned from allocation function "my_fopen(char const *, int, myf)". mysql-5.5.32/mysys/my_fopen.c:54:3: alloc_fn: Storage is returned from allocation function "fopen(char const * restrict, char const * restrict)". mysql-5.5.32/mysys/my_fopen.c:54:3: var_assign: Assigning: "fd" = "fopen(filename, type)". mysql-5.5.32/mysys/my_fopen.c:64:17: noescape: Resource "fd" is not freed or pointed-to in function "my_fileno(FILE *)". mysql-5.5.32/mysys/my_fstream.c:187:21: noescape: "my_fileno(FILE *)" does not free or save its pointer parameter "f". mysql-5.5.32/mysys/my_fopen.c:68:7: return_alloc: Returning allocated memory "fd". mysql-5.5.32/extra/comp_err.c:437: var_assign: Assigning: "file" = storage returned from "my_fopen(file_name, 0, 16)". mysql-5.5.32/extra/comp_err.c:440: noescape: Resource "file" is not freed or pointed-to in function "fgets(char * restrict, int, FILE * restrict)". mysql-5.5.32/extra/comp_err.c:478: leaked_storage: Variable "file" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): mysql-5.5.32/extra/comp_err.c:437: alloc_fn: Storage is returned from allocation function "my_fopen(char const *, int, myf)". mysql-5.5.32/mysys/my_fopen.c:54:3: alloc_fn: Storage is returned from allocation function "fopen(char const * restrict, char const * restrict)". mysql-5.5.32/mysys/my_fopen.c:54:3: var_assign: Assigning: "fd" = "fopen(filename, type)". mysql-5.5.32/mysys/my_fopen.c:64:17: noescape: Resource "fd" is not freed or pointed-to in function "my_fileno(FILE *)". mysql-5.5.32/mysys/my_fstream.c:187:21: noescape: "my_fileno(FILE *)" does not free or save its pointer parameter "f". mysql-5.5.32/mysys/my_fopen.c:68:7: return_alloc: Returning allocated memory "fd". mysql-5.5.32/extra/comp_err.c:437: var_assign: Assigning: "file" = storage returned from "my_fopen(file_name, 0, 16)". mysql-5.5.32/extra/comp_err.c:440: noescape: Resource "file" is not freed or pointed-to in function "fgets(char * restrict, int, FILE * restrict)". mysql-5.5.32/extra/comp_err.c:509: leaked_storage: Variable "file" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): mysql-5.5.32/extra/comp_err.c:437: alloc_fn: Storage is returned from allocation function "my_fopen(char const *, int, myf)". mysql-5.5.32/mysys/my_fopen.c:54:3: alloc_fn: Storage is returned from allocation function "fopen(char const * restrict, char const * restrict)". mysql-5.5.32/mysys/my_fopen.c:54:3: var_assign: Assigning: "fd" = "fopen(filename, type)". mysql-5.5.32/mysys/my_fopen.c:64:17: noescape: Resource "fd" is not freed or pointed-to in function "my_fileno(FILE *)". mysql-5.5.32/mysys/my_fstream.c:187:21: noescape: "my_fileno(FILE *)" does not free or save its pointer parameter "f". mysql-5.5.32/mysys/my_fopen.c:68:7: return_alloc: Returning allocated memory "fd". mysql-5.5.32/extra/comp_err.c:437: var_assign: Assigning: "file" = storage returned from "my_fopen(file_name, 0, 16)". mysql-5.5.32/extra/comp_err.c:440: noescape: Resource "file" is not freed or pointed-to in function "fgets(char * restrict, int, FILE * restrict)". mysql-5.5.32/extra/comp_err.c:522: leaked_storage: Variable "file" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): mysql-5.5.32/extra/comp_err.c:462: alloc_fn: Storage is returned from allocation function "parse_default_language(char *)". mysql-5.5.32/extra/comp_err.c:587:3: alloc_fn: Storage is returned from allocation function "get_word(char **)". mysql-5.5.32/extra/comp_err.c:790:3: alloc_fn: Storage is returned from allocation function "my_strndup(char const *, size_t, myf)". mysql-5.5.32/mysys/my_malloc.c:161:3: alloc_fn: Storage is returned from allocation function "my_malloc(size_t, myf)". mysql-5.5.32/mysys/my_malloc.c:38:3: alloc_fn: Storage is returned from allocation function "malloc(size_t)". mysql-5.5.32/mysys/my_malloc.c:38:3: var_assign: Assigning: "point" = "malloc(size)". mysql-5.5.32/mysys/my_malloc.c:66:3: return_alloc: Returning allocated memory "point". mysql-5.5.32/mysys/my_malloc.c:161:3: var_assign: Assigning: "ptr" = "my_malloc(length + 1UL, my_flags)". mysql-5.5.32/mysys/my_malloc.c:163:5: noescape: Resource "ptr" is not freed or pointed-to in function "__coverity_memcpy(void *, void const *, unsigned long)". mysql-5.5.32/mysys/my_malloc.c:166:3: return_alloc: Returning allocated memory "ptr". mysql-5.5.32/extra/comp_err.c:790:3: return_alloc_fn: Directly returning storage allocated by "my_strndup(char const *, size_t, myf)". mysql-5.5.32/extra/comp_err.c:587:3: var_assign: Assigning: "slang" = "get_word(&str)". mysql-5.5.32/extra/comp_err.c:601:3: return_alloc: Returning allocated memory "slang". mysql-5.5.32/extra/comp_err.c:462: var_assign: Assigning: "default_language" = storage returned from "parse_default_language(str)". mysql-5.5.32/extra/comp_err.c:462: overwrite_var: Overwriting "default_language" in "default_language = parse_default_language(str)" leaks the storage that "default_language" points to. Error: DEADCODE (CWE-561): mysql-5.5.32/sql/lex_hash.h:6327: assignment: Assigning: "ires" = "(int16)(cur_struct >> 16)". mysql-5.5.32/sql/lex_hash.h:6330: const: At condition "ires >= 0", the value of "ires" must be equal to 0. mysql-5.5.32/sql/lex_hash.h:6330: dead_error_condition: The condition "ires >= 0" must be true. mysql-5.5.32/sql/lex_hash.h:6333: dead_error_line: Execution cannot reach this statement "res = sql_functions - ires ...". Error: DEADCODE (CWE-561): mysql-5.5.32/sql/sql_acl.cc:9497: dead_error_condition: The condition "mpvio.auth_info.authenticated_as" must be true. mysql-5.5.32/sql/sql_acl.cc:9497: dead_error_line: Execution cannot reach this expression ""anonymous"" inside statement "general_log_print(thd, comm...". Error: DEADCODE (CWE-561): mysql-5.5.32/sql/spatial.cc:484: assignment: Assigning: "n_points" = "0U". mysql-5.5.32/sql/spatial.cc:496: incr: Incrementing "n_points". The value of "n_points" is now 1. mysql-5.5.32/sql/spatial.cc:496: incr: Incrementing "n_points". The value of "n_points" is now 2. mysql-5.5.32/sql/spatial.cc:496: incr: Incrementing "n_points". The value of "n_points" is now at least 3. mysql-5.5.32/sql/spatial.cc:500: at_least: At condition "n_points < 1U", the value of "n_points" must be at least 1. mysql-5.5.32/sql/spatial.cc:500: dead_error_condition: The condition "n_points < 1U" cannot be true. mysql-5.5.32/sql/spatial.cc:502: dead_error_begin: Execution cannot reach this statement "trs->set_error_msg("Too few...". Error: DEADCODE (CWE-561): mysql-5.5.32/sql/handler.cc:1084: assignment: Assigning: "all" = "1". mysql-5.5.32/sql/handler.cc:1085: const: At condition "all", the value of "all" must be equal to 1. mysql-5.5.32/sql/handler.cc:1085: dead_error_condition: The condition "all" must be true. mysql-5.5.32/sql/handler.cc:1085: dead_error_line: Execution cannot reach this expression "&thd->transaction.stmt" inside statement "trans = (all ? &thd->transa...". Error: DEADCODE (CWE-561): mysql-5.5.32/sql/sql_acl.cc:6084: equality_cond: Jumping to case "0". mysql-5.5.32/sql/sql_acl.cc:6166: equality_cond: Jumping to case "0". mysql-5.5.32/sql/sql_acl.cc:6207: equality_cond: Jumping to case "0". mysql-5.5.32/sql/sql_acl.cc:6120: equality_cond: Jumping to case "0". mysql-5.5.32/sql/sql_acl.cc:6087: equality_cond: Jumping to case "1". mysql-5.5.32/sql/sql_acl.cc:6126: equality_cond: Jumping to case "1". mysql-5.5.32/sql/sql_acl.cc:6179: equality_cond: Jumping to case "1". mysql-5.5.32/sql/sql_acl.cc:6212: equality_cond: Jumping to case "1". mysql-5.5.32/sql/sql_acl.cc:6090: equality_cond: Jumping to case "2". mysql-5.5.32/sql/sql_acl.cc:6185: equality_cond: Jumping to case "2". mysql-5.5.32/sql/sql_acl.cc:6217: equality_cond: Jumping to case "2". mysql-5.5.32/sql/sql_acl.cc:6132: equality_cond: Jumping to case "2". mysql-5.5.32/sql/sql_acl.cc:6094: equality_cond: Jumping to case "3". mysql-5.5.32/sql/sql_acl.cc:6186: equality_cond: Jumping to case "3". mysql-5.5.32/sql/sql_acl.cc:6218: equality_cond: Jumping to case "3". mysql-5.5.32/sql/sql_acl.cc:6133: equality_cond: Jumping to case "3". mysql-5.5.32/sql/sql_acl.cc:6098: equality_cond: Jumping to case "4". mysql-5.5.32/sql/sql_acl.cc:6187: equality_cond: Jumping to case "4". mysql-5.5.32/sql/sql_acl.cc:6219: equality_cond: Jumping to case "4". mysql-5.5.32/sql/sql_acl.cc:6134: equality_cond: Jumping to case "4". mysql-5.5.32/sql/sql_acl.cc:6102: equality_cond: Jumping to case "5". mysql-5.5.32/sql/sql_acl.cc:6140: equality_cond: Jumping to case "5". mysql-5.5.32/sql/sql_acl.cc:6196: equality_cond: Jumping to case "5". mysql-5.5.32/sql/sql_acl.cc:6228: equality_cond: Jumping to case "5". mysql-5.5.32/sql/sql_acl.cc:6119: between: When switching on "struct_no", the value of "struct_no" must be between 0 and 5. mysql-5.5.32/sql/sql_acl.cc:6119: dead_error_condition: The switch value "struct_no" cannot reach the default case. mysql-5.5.32/sql/sql_acl.cc:6146: dead_error_begin: Execution cannot reach this statement "default:". Error: DEADCODE (CWE-561): mysql-5.5.32/sql/sql_acl.cc:6435: assignment: Assigning: "ret" = "handle_grant_struct(COLUMN_PRIVILEGES_HASH, drop, user_from, user_to) > 0". mysql-5.5.32/sql/sql_acl.cc:6439: between: At condition "ret < 0", the value of "ret" must be between 0 and 1. mysql-5.5.32/sql/sql_acl.cc:6439: dead_error_condition: The condition "ret < 0" cannot be true. mysql-5.5.32/sql/sql_acl.cc:6440: dead_error_line: Execution cannot reach this statement "result = -1;". Error: DEADCODE (CWE-561): mysql-5.5.32/sql/sql_acl.cc:6355: assignment: Assigning: "ret" = "handle_grant_struct(DB_ACL, drop, user_from, user_to) > 0". mysql-5.5.32/sql/sql_acl.cc:6363: between: At condition "ret < 0", the value of "ret" must be between 0 and 1. mysql-5.5.32/sql/sql_acl.cc:6363: dead_error_condition: The condition "ret < 0" cannot be true. mysql-5.5.32/sql/sql_acl.cc:6365: dead_error_begin: Execution cannot reach this statement "result = -1;". Error: DEADCODE (CWE-561): mysql-5.5.32/sql/sql_acl.cc:6394: assignment: Assigning: "ret" = "handle_grant_struct(FUNC_PRIVILEGES_HASH, drop, user_from, user_to) > 0". mysql-5.5.32/sql/sql_acl.cc:6403: between: At condition "ret < 0", the value of "ret" must be between 0 and 1. mysql-5.5.32/sql/sql_acl.cc:6403: dead_error_condition: The condition "ret < 0" cannot be true. mysql-5.5.32/sql/sql_acl.cc:6405: dead_error_begin: Execution cannot reach this statement "result = -1;". Error: DEADCODE (CWE-561): mysql-5.5.32/sql/sql_acl.cc:6379: assignment: Assigning: "ret" = "handle_grant_struct(PROC_PRIVILEGES_HASH, drop, user_from, user_to) > 0". mysql-5.5.32/sql/sql_acl.cc:6388: between: At condition "ret < 0", the value of "ret" must be between 0 and 1. mysql-5.5.32/sql/sql_acl.cc:6388: dead_error_condition: The condition "ret < 0" cannot be true. mysql-5.5.32/sql/sql_acl.cc:6390: dead_error_begin: Execution cannot reach this statement "result = -1;". Error: DEADCODE (CWE-561): mysql-5.5.32/sql/sql_acl.cc:6455: assignment: Assigning: "ret" = "handle_grant_struct(PROXY_USERS_ACL, drop, user_from, user_to) > 0". mysql-5.5.32/sql/sql_acl.cc:6458: between: At condition "ret < 0", the value of "ret" must be between 0 and 1. mysql-5.5.32/sql/sql_acl.cc:6458: dead_error_condition: The condition "ret < 0" cannot be true. mysql-5.5.32/sql/sql_acl.cc:6459: dead_error_line: Execution cannot reach this statement "result = -1;". Error: DEADCODE (CWE-561): mysql-5.5.32/sql/sql_acl.cc:6331: assignment: Assigning: "ret" = "handle_grant_struct(USER_ACL, drop, user_from, user_to) > 0". mysql-5.5.32/sql/sql_acl.cc:6339: const: At condition "ret < 0", the value of "ret" must be equal to 0. mysql-5.5.32/sql/sql_acl.cc:6339: dead_error_condition: The condition "ret < 0" cannot be true. mysql-5.5.32/sql/sql_acl.cc:6341: dead_error_begin: Execution cannot reach this statement "result = -1;". Error: DEADCODE (CWE-561): mysql-5.5.32/sql/filesort.cc:805: assignment: Assigning: "maybe_null" = "item->maybe_null". mysql-5.5.32/sql/filesort.cc:882: const: At condition "maybe_null", the value of "maybe_null" must be equal to 1. mysql-5.5.32/sql/filesort.cc:882: dead_error_condition: The condition "maybe_null" must be true. mysql-5.5.32/sql/filesort.cc:887: dead_error_begin: Execution cannot reach this statement "do { } while (false);". Error: DEADCODE (CWE-561): mysql-5.5.32/strings/ctype-ucs2.c:1391: cond_at_least: Condition "pos", taking true branch. Now the value of "pos" is at least 1. mysql-5.5.32/strings/ctype-ucs2.c:1391: decr: Decrementing "pos". The value of "pos" is now at least 0. mysql-5.5.32/strings/ctype-ucs2.c:1391: cond_const: Condition "pos", taking false branch. Now the value of "pos" is equal to 0. mysql-5.5.32/strings/ctype-ucs2.c:1396: const: At condition "pos", the value of "pos" must be equal to 0. mysql-5.5.32/strings/ctype-ucs2.c:1396: dead_error_condition: The condition "pos" cannot be true. mysql-5.5.32/strings/ctype-ucs2.c:1396: dead_error_line: Execution cannot reach this expression "e + 2 - b0" inside statement "return (size_t)(pos ? e + 2...". Error: DEADCODE (CWE-561): mysql-5.5.32/strings/ctype-utf8.c:2711: assignment: Assigning: "diff_if_only_endspace_difference" = "'\0'". mysql-5.5.32/strings/ctype-utf8.c:2746: const: At condition "diff_if_only_endspace_difference", the value of "diff_if_only_endspace_difference" must be equal to 0. mysql-5.5.32/strings/ctype-utf8.c:2746: dead_error_condition: The condition "diff_if_only_endspace_difference" cannot be true. mysql-5.5.32/strings/ctype-utf8.c:2747: dead_error_line: Execution cannot reach this statement "res = 1;". Error: DEADCODE (CWE-561): mysql-5.5.32/strings/ctype-utf8.c:5154: assignment: Assigning: "diff_if_only_endspace_difference" = "'\0'". mysql-5.5.32/strings/ctype-utf8.c:5187: const: At condition "diff_if_only_endspace_difference", the value of "diff_if_only_endspace_difference" must be equal to 0. mysql-5.5.32/strings/ctype-utf8.c:5187: dead_error_condition: The condition "diff_if_only_endspace_difference" cannot be true. mysql-5.5.32/strings/ctype-utf8.c:5188: dead_error_line: Execution cannot reach this statement "res = 1;". Error: DEADCODE (CWE-561): mysql-5.5.32/storage/innobase/os/os0file.c:4156: cond_cannot_single: Condition "mode == 24UL", taking false branch. Now the value of "mode" cannot be equal to 24. mysql-5.5.32/storage/innobase/os/os0file.c:4212: switch_cannot_set: After following the default case, the value of "mode" cannot be equal to any of {21, 22, 23, 24}. mysql-5.5.32/storage/innobase/os/os0file.c:4186: cannot_single: When switching on "mode", the value of "mode" cannot be equal to 24. mysql-5.5.32/storage/innobase/os/os0file.c:4204: dead_error_condition: The switch value "mode" cannot be "24UL". mysql-5.5.32/storage/innobase/os/os0file.c:4204: dead_error_begin: Execution cannot reach this statement "case 24UL:". Error: DEADCODE (CWE-561): mysql-5.5.32/storage/innobase/handler/ha_innodb.cc:1223: assignment: Assigning: "name" = "path_name + dirname_length(path_name)". mysql-5.5.32/storage/innobase/handler/ha_innodb.cc:1225: notnull: At condition "name", the value of "name" cannot be NULL. mysql-5.5.32/storage/innobase/handler/ha_innodb.cc:1225: dead_error_condition: The condition "name" must be true. mysql-5.5.32/storage/innobase/handler/ha_innodb.cc:1225: dead_error_line: Execution cannot reach this expression ""null"" inside statement "return name ? name : "null";". Error: DEADCODE (CWE-561): mysql-5.5.32/sql/item_strfunc.cc:1091: assignment: Assigning: "strend" = "res->ptr() + res->length()". mysql-5.5.32/sql/item_strfunc.cc:1097: notnull: At condition "strend", the value of "strend" cannot be NULL. mysql-5.5.32/sql/item_strfunc.cc:1097: dead_error_condition: The condition "strend" must be true. mysql-5.5.32/sql/item_strfunc.cc:1097: dead_error_line: Execution cannot reach this expression "NULL" inside statement "end = (strend ? strend - fr...". Error: DEADCODE (CWE-561): mysql-5.5.32/sql/sql_select.cc:15310: assignment: Assigning: "group" = "NULL". mysql-5.5.32/sql/sql_select.cc:15336: assignment: Assigning: "ord_iter" = "group". mysql-5.5.32/sql/sql_select.cc:15336: null: At condition "ord_iter", the value of "ord_iter" must be NULL. mysql-5.5.32/sql/sql_select.cc:15336: dead_error_condition: The condition "ord_iter" cannot be true. mysql-5.5.32/sql/sql_select.cc:15337: dead_error_line: Execution cannot reach this statement "if ((*ord_iter->item)->eq(i...". Error: DEADCODE (CWE-561): mysql-5.5.32/sql-common/my_time.c:537: assignment: Assigning: "found_days" = "'\1'". mysql-5.5.32/sql-common/my_time.c:574: const: At condition "found_days", the value of "found_days" must be equal to 1. mysql-5.5.32/sql-common/my_time.c:574: dead_error_condition: The condition "!found_days" cannot be true. mysql-5.5.32/sql-common/my_time.c:576: dead_error_begin: Execution cannot reach this statement "bmove_upp((uchar *)&date[4]...". Error: DEADCODE (CWE-561): mysql-5.5.32/storage/archive/ha_archive.cc:888: assignment: Assigning: "read_buf" = "NULL". mysql-5.5.32/storage/archive/ha_archive.cc:984: null: At condition "read_buf", the value of "read_buf" must be NULL. mysql-5.5.32/storage/archive/ha_archive.cc:984: dead_error_condition: The condition "read_buf" cannot be true. mysql-5.5.32/storage/archive/ha_archive.cc:985: dead_error_line: Execution cannot reach this statement "my_free(read_buf);". Error: DEADCODE (CWE-561): mysql-5.5.32/client/mysqladmin.cc:615: cond_at_least: Condition "argc < 2", taking false branch. Now the value of "argc" is at least 2. mysql-5.5.32/client/mysqladmin.cc:627: decr: Decrementing "argc". The value of "argc" is now at least 1. mysql-5.5.32/client/mysqladmin.cc:609: decr: Decrementing "argc". The value of "argc" is now at least 0. mysql-5.5.32/client/mysqladmin.cc:609: cond_at_least: Condition "argc > 0", taking true branch. Now the value of "argc" is at least 1. mysql-5.5.32/client/mysqladmin.cc:929: at_least: At condition "argc < 1", the value of "argc" must be at least 1. mysql-5.5.32/client/mysqladmin.cc:929: dead_error_condition: The condition "argc < 1" cannot be true. mysql-5.5.32/client/mysqladmin.cc:931: dead_error_begin: Execution cannot reach this statement "my_printf_error(0U, "Too fe...". Error: DEADCODE (CWE-561): mysql-5.5.32/strings/ctype-bin.c:175: assignment: Assigning: "diff_if_only_endspace_difference" = "'\0'". mysql-5.5.32/strings/ctype-bin.c:192: const: At condition "diff_if_only_endspace_difference", the value of "diff_if_only_endspace_difference" must be equal to 0. mysql-5.5.32/strings/ctype-bin.c:192: dead_error_condition: The condition "diff_if_only_endspace_difference" cannot be true. mysql-5.5.32/strings/ctype-bin.c:193: dead_error_line: Execution cannot reach this statement "res = 1;". Error: DEADCODE (CWE-561): mysql-5.5.32/storage/innobase/btr/btr0cur.c:1464: assignment: Assigning: "big_rec_vec" = "NULL". mysql-5.5.32/storage/innobase/btr/btr0cur.c:1515: null: At condition "(ulint)big_rec_vec", the value of "big_rec_vec" must be NULL. mysql-5.5.32/storage/innobase/btr/btr0cur.c:1515: dead_error_condition: The condition "(ulint)big_rec_vec" cannot be true. mysql-5.5.32/storage/innobase/btr/btr0cur.c:1518: dead_error_begin: Execution cannot reach this statement ";". Error: DEADCODE (CWE-561): mysql-5.5.32/storage/innobase/handler/ha_innodb.cc:5970: assignment: Assigning: "key" = "this->table->key_info + keynr". mysql-5.5.32/storage/innobase/handler/ha_innodb.cc:5981: notnull: At condition "key", the value of "key" cannot be NULL. mysql-5.5.32/storage/innobase/handler/ha_innodb.cc:5981: dead_error_condition: The condition "key" must be true. mysql-5.5.32/storage/innobase/handler/ha_innodb.cc:5981: dead_error_line: Execution cannot reach this expression ""NULL"" inside statement "sql_print_warning("InnoDB c...". Error: DEADCODE (CWE-561): mysql-5.5.32/storage/innobase/ibuf/ibuf0ibuf.c:1970: assignment: Assigning: "i" = "4UL". mysql-5.5.32/storage/innobase/ibuf/ibuf0ibuf.c:1967: assignment: Assigning: "i" = "dict_table_is_comp(index->table) ? 1 : 0". mysql-5.5.32/storage/innobase/ibuf/ibuf0ibuf.c:1976: intervals: When switching on "i", the value of "i" must be in one of the following intervals: {[0,1], [4,4]}. mysql-5.5.32/storage/innobase/ibuf/ibuf0ibuf.c:1976: dead_error_condition: The switch value "i" cannot reach the default case. mysql-5.5.32/storage/innobase/ibuf/ibuf0ibuf.c:1977: dead_error_begin: Execution cannot reach this statement "default:". Error: DEADCODE (CWE-561): mysql-5.5.32/strings/ctype-simple.c:159: assignment: Assigning: "diff_if_only_endspace_difference" = "'\0'". mysql-5.5.32/strings/ctype-simple.c:172: const: At condition "diff_if_only_endspace_difference", the value of "diff_if_only_endspace_difference" must be equal to 0. mysql-5.5.32/strings/ctype-simple.c:172: dead_error_condition: The condition "diff_if_only_endspace_difference" cannot be true. mysql-5.5.32/strings/ctype-simple.c:173: dead_error_line: Execution cannot reach this statement "res = 1;". Error: DEADCODE (CWE-561): mysql-5.5.32/strings/ctype-uca.c:7175: assignment: Assigning: "diff_if_only_endspace_difference" = "'\0'". mysql-5.5.32/strings/ctype-uca.c:7199: const: At condition "diff_if_only_endspace_difference", the value of "diff_if_only_endspace_difference" must be equal to 0. mysql-5.5.32/strings/ctype-uca.c:7199: dead_error_condition: The condition "diff_if_only_endspace_difference" cannot be true. mysql-5.5.32/strings/ctype-uca.c:7199: dead_error_line: Execution cannot reach this expression "1" inside statement "return diff_if_only_endspac...". Error: DEADCODE (CWE-561): mysql-5.5.32/strings/ctype-uca.c:7175: assignment: Assigning: "diff_if_only_endspace_difference" = "'\0'". mysql-5.5.32/strings/ctype-uca.c:7214: const: At condition "diff_if_only_endspace_difference", the value of "diff_if_only_endspace_difference" must be equal to 0. mysql-5.5.32/strings/ctype-uca.c:7214: dead_error_condition: The condition "diff_if_only_endspace_difference" cannot be true. mysql-5.5.32/strings/ctype-uca.c:7214: dead_error_line: Execution cannot reach this expression "-1" inside statement "return diff_if_only_endspac...". Error: DEADCODE (CWE-561): mysql-5.5.32/mysys/my_bitmap.c:61: dead_error_condition: The switch value "(map->n_bits + 7U) / 8U & 3U" cannot reach the default case. mysql-5.5.32/mysys/my_bitmap.c:81: dead_error_line: Execution cannot reach this statement "". Error: DEADCODE (CWE-561): mysql-5.5.32/strings/ctype-ucs2.c:1281: assignment: Assigning: "diff_if_only_endspace_difference" = "'\0'". mysql-5.5.32/strings/ctype-ucs2.c:1314: const: At condition "diff_if_only_endspace_difference", the value of "diff_if_only_endspace_difference" must be equal to 0. mysql-5.5.32/strings/ctype-ucs2.c:1314: dead_error_condition: The condition "diff_if_only_endspace_difference" cannot be true. mysql-5.5.32/strings/ctype-ucs2.c:1315: dead_error_line: Execution cannot reach this statement "res = 1;". Error: DEADCODE (CWE-561): mysql-5.5.32/strings/ctype-ucs2.c:1491: assignment: Assigning: "diff_if_only_endspace_difference" = "'\0'". mysql-5.5.32/strings/ctype-ucs2.c:1521: const: At condition "diff_if_only_endspace_difference", the value of "diff_if_only_endspace_difference" must be equal to 0. mysql-5.5.32/strings/ctype-ucs2.c:1521: dead_error_condition: The condition "diff_if_only_endspace_difference" cannot be true. mysql-5.5.32/strings/ctype-ucs2.c:1522: dead_error_line: Execution cannot reach this statement "res = 1;". Error: DEADCODE (CWE-561): mysql-5.5.32/strings/ctype-ucs2.c:1918: assignment: Assigning: "diff_if_only_endspace_difference" = "'\0'". mysql-5.5.32/strings/ctype-ucs2.c:1951: const: At condition "diff_if_only_endspace_difference", the value of "diff_if_only_endspace_difference" must be equal to 0. mysql-5.5.32/strings/ctype-ucs2.c:1951: dead_error_condition: The condition "diff_if_only_endspace_difference" cannot be true. mysql-5.5.32/strings/ctype-ucs2.c:1952: dead_error_line: Execution cannot reach this statement "res = 1;". Error: DEADCODE (CWE-561): mysql-5.5.32/sql/sql_delete.cc:55: assignment: Assigning: "select" = "NULL". mysql-5.5.32/sql/sql_delete.cc:100: null: At condition "select", the value of "select" must be NULL. mysql-5.5.32/sql/sql_delete.cc:100: dead_error_condition: The condition "select" cannot be true. mysql-5.5.32/sql/sql_delete.cc:100: dead_error_line: Execution cannot reach this statement "select->~SQL_SELECT();". Error: DEADCODE (CWE-561): mysql-5.5.32/strings/ctype-gbk.c:3492: assignment: Assigning: "diff_if_only_endspace_difference" = "'\0'". mysql-5.5.32/strings/ctype-gbk.c:3499: const: At condition "diff_if_only_endspace_difference", the value of "diff_if_only_endspace_difference" must be equal to 0. mysql-5.5.32/strings/ctype-gbk.c:3499: dead_error_condition: The condition "diff_if_only_endspace_difference" cannot be true. mysql-5.5.32/strings/ctype-gbk.c:3500: dead_error_line: Execution cannot reach this statement "res = 1;". Error: DEADCODE (CWE-561): mysql-5.5.32/sql/sql_load.cc:1149: cond_null: Condition "item = it++", taking false branch. Now the value of "item" is NULL. mysql-5.5.32/sql/sql_load.cc:1209: null: At condition "item", the value of "item" must be NULL. mysql-5.5.32/sql/sql_load.cc:1209: dead_error_condition: The condition "item" cannot be true. mysql-5.5.32/sql/sql_load.cc:1212: dead_error_line: Execution cannot reach this statement "if (item == fields_vars->he...". Error: DEADCODE (CWE-561): mysql-5.5.32/strings/ctype-big5.c:890: assignment: Assigning: "diff_if_only_endspace_difference" = "'\0'". mysql-5.5.32/strings/ctype-big5.c:897: const: At condition "diff_if_only_endspace_difference", the value of "diff_if_only_endspace_difference" must be equal to 0. mysql-5.5.32/strings/ctype-big5.c:897: dead_error_condition: The condition "diff_if_only_endspace_difference" cannot be true. mysql-5.5.32/strings/ctype-big5.c:898: dead_error_line: Execution cannot reach this statement "res = 1;". Error: DEADCODE (CWE-561): mysql-5.5.32/strings/ctype-mb.c:531: assignment: Assigning: "diff_if_only_endspace_difference" = "'\0'". mysql-5.5.32/strings/ctype-mb.c:544: const: At condition "diff_if_only_endspace_difference", the value of "diff_if_only_endspace_difference" must be equal to 0. mysql-5.5.32/strings/ctype-mb.c:544: dead_error_condition: The condition "diff_if_only_endspace_difference" cannot be true. mysql-5.5.32/strings/ctype-mb.c:545: dead_error_line: Execution cannot reach this statement "res = 1;". Error: DEADCODE (CWE-561): mysql-5.5.32/strings/ctype-cp932.c:1761: assignment: Assigning: "diff_if_only_endspace_difference" = "'\0'". mysql-5.5.32/strings/ctype-cp932.c:1767: const: At condition "diff_if_only_endspace_difference", the value of "diff_if_only_endspace_difference" must be equal to 0. mysql-5.5.32/strings/ctype-cp932.c:1767: dead_error_condition: The condition "diff_if_only_endspace_difference" cannot be true. mysql-5.5.32/strings/ctype-cp932.c:1768: dead_error_line: Execution cannot reach this statement "res = 1;". Error: DEADCODE (CWE-561): mysql-5.5.32/strings/ctype-sjis.c:1128: assignment: Assigning: "diff_if_only_endspace_difference" = "'\0'". mysql-5.5.32/strings/ctype-sjis.c:1134: const: At condition "diff_if_only_endspace_difference", the value of "diff_if_only_endspace_difference" must be equal to 0. mysql-5.5.32/strings/ctype-sjis.c:1134: dead_error_condition: The condition "diff_if_only_endspace_difference" cannot be true. mysql-5.5.32/strings/ctype-sjis.c:1135: dead_error_line: Execution cannot reach this statement "res = 1;". Error: DEADCODE (CWE-561): mysql-5.5.32/unittest/mysys/lf-t.c:132: assignment: Assigning: "i" = "0". mysql-5.5.32/unittest/mysys/lf-t.c:132: incr: Incrementing "i". The value of "i" is now between 3 and 1000 (inclusive). mysql-5.5.32/unittest/mysys/lf-t.c:132: incr: Incrementing "i". The value of "i" is now 1. mysql-5.5.32/unittest/mysys/lf-t.c:132: incr: Incrementing "i". The value of "i" is now 2. mysql-5.5.32/unittest/mysys/lf-t.c:132: cond_between: Condition "i < 1000", taking true branch. Now the value of "i" is between 2 and 999. mysql-5.5.32/unittest/mysys/lf-t.c:134: assignment: Assigning: "x" = "x * (m + i) + 2271560481U & 0x7fffffffL". mysql-5.5.32/unittest/mysys/lf-t.c:135: between: At condition "x < 0", the value of "x" must be between 0 and 2147483647. mysql-5.5.32/unittest/mysys/lf-t.c:135: dead_error_condition: The condition "x < 0" cannot be true. mysql-5.5.32/unittest/mysys/lf-t.c:135: dead_error_line: Execution cannot reach this expression "-x" inside statement "z = ((x < 0) ? -x : x);". Error: DEADCODE (CWE-561): mysql-5.5.32/unittest/mysys/lf-t.c:132: assignment: Assigning: "i" = "0". mysql-5.5.32/unittest/mysys/lf-t.c:132: incr: Incrementing "i". The value of "i" is now 1. mysql-5.5.32/unittest/mysys/lf-t.c:132: incr: Incrementing "i". The value of "i" is now 2. mysql-5.5.32/unittest/mysys/lf-t.c:132: cond_between: Condition "i < 1000", taking true branch. Now the value of "i" is between 2 and 999. mysql-5.5.32/unittest/mysys/lf-t.c:134: assignment: Assigning: "x" = "x * (m + i) + 2271560481U & 0x7fffffffL". mysql-5.5.32/unittest/mysys/lf-t.c:131: assignment: Assigning: "y" = "x". mysql-5.5.32/unittest/mysys/lf-t.c:142: assignment: Assigning: "i" = "0". mysql-5.5.32/unittest/mysys/lf-t.c:142: incr: Incrementing "i". The value of "i" is now 1. mysql-5.5.32/unittest/mysys/lf-t.c:142: incr: Incrementing "i". The value of "i" is now 2. mysql-5.5.32/unittest/mysys/lf-t.c:142: cond_between: Condition "i < 1000", taking true branch. Now the value of "i" is between 2 and 999. mysql-5.5.32/unittest/mysys/lf-t.c:144: assignment: Assigning: "y" = "y * (m + i) + 2271560481U & 0x7fffffffL". mysql-5.5.32/unittest/mysys/lf-t.c:145: between: At condition "y < 0", the value of "y" must be between 0 and 2147483647. mysql-5.5.32/unittest/mysys/lf-t.c:145: dead_error_condition: The condition "y < 0" cannot be true. mysql-5.5.32/unittest/mysys/lf-t.c:145: dead_error_line: Execution cannot reach this expression "-y" inside statement "z = ((y < 0) ? -y : y);". Error: DEADCODE (CWE-561): mysql-5.5.32/mysys/ptr_cmp.c:61: cond_at_least: Condition "size < 4UL", taking false branch. Now the value of "size" is at least 4. mysql-5.5.32/mysys/ptr_cmp.c:63: at_least: When switching on "size & 3UL", the value of "size" must be at least 4. mysql-5.5.32/mysys/ptr_cmp.c:63: dead_error_condition: The switch value "size & 3UL" cannot reach the default case. mysql-5.5.32/mysys/ptr_cmp.c:69: dead_error_line: Execution cannot reach this statement "return NULL;". Error: DEADCODE (CWE-561): mysql-5.5.32/storage/innobase/handler/handler0alter.cc:1126: assignment: Assigning: "key" = "table->key_info + key_num[n_key]". mysql-5.5.32/storage/innobase/handler/handler0alter.cc:1131: notnull: At condition "key", the value of "key" cannot be NULL. mysql-5.5.32/storage/innobase/handler/handler0alter.cc:1131: dead_error_condition: The condition "key" must be true. mysql-5.5.32/storage/innobase/handler/handler0alter.cc:1131: dead_error_line: Execution cannot reach this expression ""NULL"" inside statement "sql_print_error("InnoDB cou...". Error: DEADCODE (CWE-561): mysql-5.5.32/strings/ctype-latin1.c:597: assignment: Assigning: "diff_if_only_endspace_difference" = "'\0'". mysql-5.5.32/strings/ctype-latin1.c:635: const: At condition "diff_if_only_endspace_difference", the value of "diff_if_only_endspace_difference" must be equal to 0. mysql-5.5.32/strings/ctype-latin1.c:635: dead_error_condition: The condition "diff_if_only_endspace_difference" cannot be true. mysql-5.5.32/strings/ctype-latin1.c:636: dead_error_line: Execution cannot reach this statement "res = 1;". Error: DEADCODE (CWE-561): mysql-5.5.32/strings/ctype-tis620.c:569: assignment: Assigning: "diff_if_only_endspace_difference" = "'\0'". mysql-5.5.32/strings/ctype-tis620.c:596: const: At condition "diff_if_only_endspace_difference", the value of "diff_if_only_endspace_difference" must be equal to 0. mysql-5.5.32/strings/ctype-tis620.c:596: dead_error_condition: The condition "diff_if_only_endspace_difference" cannot be true. mysql-5.5.32/strings/ctype-tis620.c:597: dead_error_line: Execution cannot reach this statement "res = 1;". Error: DEADCODE (CWE-561): mysql-5.5.32/storage/heap/hp_test2.c:218: assignment: Assigning: "error" = "heap_scan(file, record) == 134". mysql-5.5.32/storage/heap/hp_test2.c:224: const: At condition "error", the value of "error" must be equal to 0. mysql-5.5.32/storage/heap/hp_test2.c:224: dead_error_condition: The condition "error" cannot be true. mysql-5.5.32/storage/heap/hp_test2.c:225: dead_error_line: Execution cannot reach this statement "goto err;". Error: DEADCODE (CWE-561): mysql-5.5.32/storage/heap/hp_test2.c:355: assignment: Assigning: "error" = "heap_scan(file, record3) == 134". mysql-5.5.32/storage/heap/hp_test2.c:356: const: At condition "error", the value of "error" must be equal to 0. mysql-5.5.32/storage/heap/hp_test2.c:356: dead_error_condition: The condition "error" cannot be true. mysql-5.5.32/storage/heap/hp_test2.c:357: dead_error_line: Execution cannot reach this statement "goto err;". Error: DEADCODE (CWE-561): mysql-5.5.32/sql/sql_derived.cc:144: assignment: Assigning: "table" = "NULL". mysql-5.5.32/sql/sql_derived.cc:203: null: At condition "table", the value of "table" must be NULL. mysql-5.5.32/sql/sql_derived.cc:203: dead_error_condition: The condition "table" cannot be true. mysql-5.5.32/sql/sql_derived.cc:204: dead_error_line: Execution cannot reach this statement "free_tmp_table(thd, table);". Error: UNINIT (CWE-457): mysql-5.5.32/mysql-test/lib/My/SafeProcess/safe_process.cc:155: var_decl: Declaring variable "sa_abort" without initializer. mysql-5.5.32/mysql-test/lib/My/SafeProcess/safe_process.cc:167: uninit_use_in_call: Using uninitialized value "sa_abort.sa_flags" when calling "sigaction(int, sigaction const *, sigaction *)". Error: VARARGS (CWE-237): mysql-5.5.32/strings/ctype-ucs2.c:994: va_init: Initializing va_list "args". mysql-5.5.32/strings/ctype-ucs2.c:995: missing_va_end: va_end was not called for "args". Error: VARARGS (CWE-237): mysql-5.5.32/strings/ctype-ucs2.c:2095: va_init: Initializing va_list "args". mysql-5.5.32/strings/ctype-ucs2.c:2096: missing_va_end: va_end was not called for "args". Error: VARARGS (CWE-237): mysql-5.5.32/sql/log.cc:4407: va_init: Initializing va_list "args". mysql-5.5.32/sql/log.cc:4429: missing_va_end: va_end was not called for "args". Error: CONSTANT_EXPRESSION_RESULT (CWE-398): mysql-5.5.32/storage/myisam/mi_open.c:877: result_independent_of_operands: "(ulonglong)state->state.checksum >> 32" is 0 regardless of the values of its operands. This occurs as an initializer. Error: CONSTANT_EXPRESSION_RESULT (CWE-398): mysql-5.5.32/sql/item_timefunc.cc:3402: pointless_expression: The expression "val != end && val != end" does not accomplish anything because it evaluates to either of its identical operands, "val != end". Did you intend the operands to be different? Error: CONSTANT_EXPRESSION_RESULT (CWE-398): mysql-5.5.32/storage/innobase/dict/dict0crea.c:120: result_independent_of_operands: "table->flags & (-128 /* ~0 << 6 + 1 */)" is always 0 regardless of the values of its operands. This occurs as the logical operand of '!'. Error: CONSTANT_EXPRESSION_RESULT (CWE-398): mysql-5.5.32/sql/sql_table.cc:744: result_independent_of_operands: "(ulong)const_var >> 16" is 0 regardless of the values of its operands. This occurs as the operand of assignment. Error: CONSTANT_EXPRESSION_RESULT (CWE-398): mysql-5.5.32/sql/sql_table.cc:747: result_independent_of_operands: "(ulong)const_var >> 16" is 0 regardless of the values of its operands. This occurs as the operand of assignment. Error: CONSTANT_EXPRESSION_RESULT (CWE-398): mysql-5.5.32/sql/sql_table.cc:744: result_independent_of_operands: "(ulong)const_var >> 24" is 0 regardless of the values of its operands. This occurs as the operand of assignment. Error: CONSTANT_EXPRESSION_RESULT (CWE-398): mysql-5.5.32/sql/sql_table.cc:747: result_independent_of_operands: "(ulong)const_var >> 24" is 0 regardless of the values of its operands. This occurs as the operand of assignment. Error: UNREACHABLE (CWE-561): mysql-5.5.32/sql/item_xmlfunc.cc:2061: unreachable: This code cannot be reached: "xpath->error = 1;". Error: UNREACHABLE (CWE-561): mysql-5.5.32/sql/sql_plugin.cc:880: unreachable: This code cannot be reached: "plugin_dl_del(dl);". Error: UNUSED_VALUE (CWE-563): mysql-5.5.32/client/mysql.cc:4030: returned_pointer: Pointer "tmp" returned by "strmake(buff, line, 254UL)" is never used. Error: UNUSED_VALUE (CWE-563): mysql-5.5.32/client/mysqldump.c:1404: returned_pointer: Pointer "query_ptr" returned by "strxmov(query_ptr, definer_end, NULL)" is never used. Error: UNUSED_VALUE (CWE-563): mysql-5.5.32/sql/sql_acl.cc:2036: returned_pointer: Pointer "hostname" returned by "calc_ip(hostname + 1, &host->ip_mask, '\0')" is never used. Error: UNUSED_VALUE (CWE-563): mysql-5.5.32/cmd-line-utils/readline/kill.c:568: returned_pointer: Pointer "entry" returned by "previous_history()" is never used. Error: UNUSED_VALUE (CWE-563): mysql-5.5.32/tests/mysql_client_test.c:15473: returned_pointer: Pointer "status" returned by "mysql_stat(mysql)" is never used. Error: UNUSED_VALUE (CWE-563): mysql-5.5.32/tests/mysql_client_test.c:7872: returned_pointer: Pointer "row" returned by "mysql_stmt_row_seek(stmt, row)" is never used. Error: UNUSED_VALUE (CWE-563): mysql-5.5.32/client/mysqlcheck.c:712: returned_pointer: Pointer "end" returned by "strmov(end, " FOR UPGRADE")" is never used. Error: UNUSED_VALUE (CWE-563): mysql-5.5.32/client/mysqlcheck.c:718: returned_pointer: Pointer "end" returned by "strmov(end, " USE_FRM")" is never used. Error: UNUSED_VALUE (CWE-563): mysql-5.5.32/sql/filesort.cc:1471: returned_pointer: Pointer "cs" returned by "sortorder->field->sort_charset()" is never used. Error: UNUSED_VALUE (CWE-563): mysql-5.5.32/sql/log.cc:4692: returned_pointer: Pointer "cache_mngr" returned by "thd_get_ha_data(this, binlog_hton)" is never used. Error: UNUSED_VALUE (CWE-563): mysql-5.5.32/sql/log.cc:4623: returned_pointer: Pointer "cache_mngr" returned by "new (thd_get_ha_data(this, binlog_hton)) binlog_cache_mngr(max_binlog_stmt_cache_size, max_binlog_cache_size, &binlog_stmt_cache_use, &binlog_stmt_cache_disk_use, &binlog_cache_use, &binlog_cache_disk_use)" is never used. Error: UNUSED_VALUE (CWE-563): mysql-5.5.32/sql/event_data_objects.cc:561: returned_pointer: Pointer "ptr" returned by "get_field(&this->mem_root, table->field[ET_FIELD_ORIGINATOR])" is never used. Error: UNUSED_VALUE (CWE-563): mysql-5.5.32/sql/item_subselect.cc:1308: returned_pointer: Pointer "up" returned by "current->return_after_parsing()" is never used. Error: UNUSED_VALUE (CWE-563): mysql-5.5.32/sql/item_subselect.cc:1081: returned_pointer: Pointer "up" returned by "current->return_after_parsing()" is never used. Error: UNUSED_VALUE (CWE-563): mysql-5.5.32/sql/item_subselect.cc:1596: returned_pointer: Pointer "up" returned by "current->return_after_parsing()" is never used. Error: UNUSED_VALUE (CWE-563): mysql-5.5.32/storage/innobase/btr/btr0btr.c:4397: returned_pointer: Pointer "offsets" returned by "btr_page_get_father_block(offsets, heap, index, right_block, &mtr, &right_node_cur)" is never used. Error: UNUSED_VALUE (CWE-563): mysql-5.5.32/storage/innobase/btr/btr0cur.c:4462: returned_pointer: Pointer "rec_block" returned by "buf_page_get_gen(space_id, zip_size, rec_page_no, 2UL, NULL, 10UL, "/builddir/build/BUILD/mysql-5.5.32/storage/innobase/btr/btr0cur.c", 4465UL, &mtr)" is never used. Error: UNUSED_VALUE (CWE-563): mysql-5.5.32/storage/innobase/btr/btr0cur.c:4550: returned_pointer: Pointer "rec_block" returned by "buf_page_get_gen(space_id, zip_size, rec_page_no, 2UL, NULL, 10UL, "/builddir/build/BUILD/mysql-5.5.32/storage/innobase/btr/btr0cur.c", 4553UL, &mtr)" is never used. Error: UNUSED_VALUE (CWE-563): mysql-5.5.32/storage/innobase/row/row0purge.c:721: returned_pointer: Pointer "ptr" returned by "trx_undo_rec_get_partial_row(ptr, clust_index, &node->row, type == 13UL, node->heap)" is never used. Error: UNUSED_VALUE (CWE-563): mysql-5.5.32/client/mysqlshow.c:722: returned_pointer: Pointer "end" returned by "strmov(strmov(strmov(query, "show keys from `"), table), "`")" is never used. Error: UNUSED_VALUE (CWE-563): mysql-5.5.32/storage/myisam/myisamchk.c:1408: returned_pointer: Pointer "end" returned by "strend(end)" is never used. Error: UNUSED_VALUE (CWE-563): mysql-5.5.32/regex/engine.c:317: returned_pointer: Pointer "sp" returned by "ldissect(charset, m, sp, rest, ssub, esub)" is never used. Error: UNUSED_VALUE (CWE-563): mysql-5.5.32/regex/engine.c:388: returned_pointer: Pointer "sp" returned by "ldissect(charset, m, sp, rest, ssub, esub)" is never used. Error: UNUSED_VALUE (CWE-563): mysql-5.5.32/regex/engine.c:353: returned_pointer: Pointer "sp" returned by "ldissect(charset, m, ssp, sep, ssub, esub)" is never used. Error: UNUSED_VALUE (CWE-563): mysql-5.5.32/regex/engine.c:317: returned_pointer: Pointer "sp" returned by "sdissect(charset, m, sp, rest, ssub, esub)" is never used. Error: UNUSED_VALUE (CWE-563): mysql-5.5.32/regex/engine.c:388: returned_pointer: Pointer "sp" returned by "sdissect(charset, m, sp, rest, ssub, esub)" is never used. Error: UNUSED_VALUE (CWE-563): mysql-5.5.32/regex/engine.c:353: returned_pointer: Pointer "sp" returned by "sdissect(charset, m, ssp, sep, ssub, esub)" is never used. Error: UNUSED_VALUE (CWE-563): mysql-5.5.32/sql/unireg.cc:399: returned_pointer: Pointer "field" returned by "it++" is never used. Error: UNUSED_VALUE (CWE-563): mysql-5.5.32/client/mysqlslap.c:1926: returned_pointer: Pointer "row" returned by "mysql_fetch_row(result)" is never used. Error: UNUSED_VALUE (CWE-563): mysql-5.5.32/cmd-line-utils/readline/tilde.c:199: returned_pointer: Pointer "result" returned by "__coverity_strchr(string, 126)" is never used. Error: UNUSED_VALUE (CWE-563): mysql-5.5.32/storage/innobase/row/row0uins.c:286: returned_pointer: Pointer "ptr" returned by "trx_undo_rec_get_row_ref(ptr, clust_index, &node->ref, node->heap)" is never used. Error: RETURN_LOCAL (CWE-562): mysql-5.5.32/storage/myisam/ha_myisam.cc:1215: local_ptr_assign_local: Assigning: "errmsg" = "buf" (address of local variable "buf"). mysql-5.5.32/storage/myisam/ha_myisam.cc:1217: out_of_scope: Variable "buf" goes out of scope. mysql-5.5.32/storage/myisam/ha_myisam.cc:1229: use_invalid: Using "errmsg", which points to an out-of-scope variable "buf".