Issue
Resolved an issue where executing DDL operations involving partitioned tables within a single SQL statement could trigger memory corruption, leading to crashes.
Issue Triggering Scenarios
When executing DDL statements, if there are multiple DDL operations in a single SQL statement, the blob_heap pointer from a previously executed DDL is assigned to m_prebuilt->blob_heap, but this pointer is released, and subsequent DDL operations then use this blob_heap, resulting in memory corruption and causing a Crash.
Affected Kernel Versions
MySQL 5.7 versions before 20211102.
Fixed Kernel Version
MySQL 5.7 20250803.
Fixing Methods