Bug #80138 | sprintf undefined behaviour in MYSQL_BIN_LOG::handle_binlog_flush_or_sync_error | ||
---|---|---|---|
Submitted: | 25 Jan 2016 11:30 | Modified: | 27 Jan 2016 6:53 |
Reporter: | Vlad Lesin | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server: Replication | Severity: | S3 (Non-critical) |
Version: | 5.6.28 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[25 Jan 2016 11:30]
Vlad Lesin
[27 Jan 2016 6:47]
MySQL Verification Team
Hello Vlad, Thank you for the report. Thanks, Umesh
[27 Jan 2016 6:52]
MySQL Verification Team
## Per internal discussion with dev's, this is fixed and handled as part of Bug#21276561/Bug#77393 // 5.6.29 6963 void MYSQL_BIN_LOG::handle_binlog_flush_or_sync_error(THD *thd, 6964 bool need_lock_log) 6965 { 6966 char errmsg[MYSQL_ERRMSG_SIZE]; 6967 sprintf(errmsg, "An error occurred during %s stage of the commit. " 6968 "'binlog_error_action' is set to '%s'.", 6969 thd->commit_error== THD::CE_FLUSH_ERROR ? "flush" : "sync", 6970 binlog_error_action == ABORT_SERVER ? "ABORT_SERVER" : "IGNORE_ERROR"); 6971 if (binlog_error_action == ABORT_SERVER) 6972 { 6973 char err_buff[MYSQL_ERRMSG_SIZE]; 6974 sprintf(err_buff, "%s Hence aborting the server.", errmsg); 6975 exec_binlog_error_action_abort(err_buff); 6976 }
[27 Jan 2016 6:53]
MySQL Verification Team
marking as duplicate of Bug #77393