1
0
mirror of https://github.com/MariaDB/server.git synced 2026-10-23 18:49:29 +03:00
Files
mariadb/sql/sql_table.cc
Oleksandr Byelkin 1df9d73168 MDEV-41186 Fix stack-buffer-overflow in make_unique_constraint_name
A multi-byte PERIOD name at the 64-character limit (192 bytes) filled
the name buffer exactly, leaving no room for the '_N' suffix appended
when generating a unique name for the implicit CHECK constraint.

Truncate on a character boundary, but only once a suffix is actually
needed (mirroring make_unique_key_name), so a non-colliding name is
never altered.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-01 15:52:50 +02:00

446 KiB