Bug #88051 A Double-Free Issue
Submitted: 11 Oct 2017 8:16 Modified: 16 Nov 2017 13:24
Reporter: Tom Shi Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Replication Severity:S3 (Non-critical)
Version:5.7 OS:Any
Assigned to: CPU Architecture:Any

[11 Oct 2017 8:16] Tom Shi
Description:
The double free is at https://github.com/mysql/mysql-server/blob/5.7/sql/rpl_utility.cc#L1089

The code is as below:

if (entry)
    my_free(entry);
if (preamble)
    my_free(entry); // here, it should be "my_free(preamble)"
if (pos)
    my_free(pos);

How to repeat:
An obvious double-free.
[11 Oct 2017 8:32] MySQL Verification Team
Hello Tom Shi,

Thank you for the report and feedback.

Thanks,
Umesh
[16 Nov 2017 13:24] Margaret Fisher
Posted by developer:
 
No changelog entry needed - closing.