Skip to content
/ server Public

MDEV-30612: Fix usage of lex->definer in wsrep_create_trigger_query#4798

Open
mariadb-DenisProtivensky wants to merge 1 commit intoMariaDB:10.11from
mariadb-corporation:10.11-MDEV-30612
Open

MDEV-30612: Fix usage of lex->definer in wsrep_create_trigger_query#4798
mariadb-DenisProtivensky wants to merge 1 commit intoMariaDB:10.11from
mariadb-corporation:10.11-MDEV-30612

Conversation

@mariadb-DenisProtivensky
Copy link
Contributor

Setting thd->lex->definer is excessive as it's only used within the function call.
Moreover, it would lead to a use-after-free on the second execution of a CREATE TRIGGER prepared statement.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copy link
Contributor

@janlindstrom janlindstrom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok to push.

@janlindstrom janlindstrom enabled auto-merge (rebase) March 13, 2026 12:46
Setting thd->lex->definer is excessive as it's only used within the
function call.
Moreover, it would lead to a use-after-free on the second execution
of a CREATE TRIGGER prepared statement.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants