-
Notifications
You must be signed in to change notification settings - Fork 479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG#1618634 [sql] [binlog] fix undefined behavior #947
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[sql/binlog.cc:7072]: (error) Memory pointed to by 'pending' is freed twice. Found by https://github.com/cppcheck/bryongloden
The code in question reads
If the first |
Please open new bugs/PRs should you find new issues. Thanks! |
satya-bodapati
pushed a commit
to satya-bodapati/percona-server
that referenced
this pull request
Feb 22, 2019
) Summary: Jira issue: https://jira.percona.com/browse/FB8-49 Reference patch: facebook/mysql-5.6@915b131 MySQL client doesn't remove padding chars for binary columns. Do the same for RBR. Tools parsing the replication stream vs. the client output can then use memcmp to compare keys. Otherwise, the tools need to handle padding characters correctly. Pull Request resolved: facebook/mysql-5.6#947 Reviewed By: hermanlee Differential Revision: D13972586 Pulled By: hermanlee fbshipit-source-id: a00cb7ab748
inikep
pushed a commit
to inikep/percona-server
that referenced
this pull request
Apr 23, 2020
) Summary: Jira issue: https://jira.percona.com/browse/FB8-49 Reference patch: facebook/mysql-5.6@915b131 MySQL client doesn't remove padding chars for binary columns. Do the same for RBR. Tools parsing the replication stream vs. the client output can then use memcmp to compare keys. Otherwise, the tools need to handle padding characters correctly. Pull Request resolved: facebook/mysql-5.6#947 Reviewed By: hermanlee Differential Revision: D13972586 Pulled By: hermanlee fbshipit-source-id: 310bf42d7fb
inikep
pushed a commit
to inikep/percona-server
that referenced
this pull request
Feb 24, 2021
) Summary: Jira issue: https://jira.percona.com/browse/FB8-49 Reference patch: facebook/mysql-5.6@915b131 MySQL client doesn't remove padding chars for binary columns. Do the same for RBR. Tools parsing the replication stream vs. the client output can then use memcmp to compare keys. Otherwise, the tools need to handle padding characters correctly. Pull Request resolved: facebook/mysql-5.6#947 Reviewed By: hermanlee Differential Revision: D13972586 Pulled By: hermanlee fbshipit-source-id: 310bf42d7fb
inikep
pushed a commit
to inikep/percona-server
that referenced
this pull request
Nov 15, 2021
) (percona#947) Summary: Jira issue: https://jira.percona.com/browse/FB8-49 Reference patch: facebook/mysql-5.6@915b131 MySQL client doesn't remove padding chars for binary columns. Do the same for RBR. Tools parsing the replication stream vs. the client output can then use memcmp to compare keys. Otherwise, the tools need to handle padding characters correctly. Pull Request resolved: facebook/mysql-5.6#947 Differential Revision: D13972586 (facebook/mysql-5.6@2b73efa) Pulled By: hermanlee fbshipit-source-id: a1bf6e34e76
ldonoso
pushed a commit
to ldonoso/percona-server
that referenced
this pull request
Mar 15, 2022
) (percona#947) Summary: Jira issue: https://jira.percona.com/browse/FB8-49 Reference patch: facebook/mysql-5.6@915b131 MySQL client doesn't remove padding chars for binary columns. Do the same for RBR. Tools parsing the replication stream vs. the client output can then use memcmp to compare keys. Otherwise, the tools need to handle padding characters correctly. Pull Request resolved: facebook/mysql-5.6#947 Differential Revision: D13972586 Pulled By: hermanlee
ldonoso
pushed a commit
to ldonoso/percona-server
that referenced
this pull request
Mar 15, 2022
) (percona#947) Summary: Jira issue: https://jira.percona.com/browse/FB8-49 Reference patch: facebook/mysql-5.6@915b131 MySQL client doesn't remove padding chars for binary columns. Do the same for RBR. Tools parsing the replication stream vs. the client output can then use memcmp to compare keys. Otherwise, the tools need to handle padding characters correctly. Pull Request resolved: facebook/mysql-5.6#947 Differential Revision: D13972586 Pulled By: hermanlee
ldonoso
pushed a commit
to ldonoso/percona-server
that referenced
this pull request
Mar 18, 2022
) (percona#947) Summary: Jira issue: https://jira.percona.com/browse/FB8-49 Reference patch: facebook/mysql-5.6@915b131 MySQL client doesn't remove padding chars for binary columns. Do the same for RBR. Tools parsing the replication stream vs. the client output can then use memcmp to compare keys. Otherwise, the tools need to handle padding characters correctly. Pull Request resolved: facebook/mysql-5.6#947 Differential Revision: D13972586 Pulled By: hermanlee
ldonoso
pushed a commit
to ldonoso/percona-server
that referenced
this pull request
Apr 12, 2022
) (percona#947) Summary: Jira issue: https://jira.percona.com/browse/FB8-49 Reference patch: facebook/mysql-5.6@915b131 MySQL client doesn't remove padding chars for binary columns. Do the same for RBR. Tools parsing the replication stream vs. the client output can then use memcmp to compare keys. Otherwise, the tools need to handle padding characters correctly. Pull Request resolved: facebook/mysql-5.6#947 Differential Revision: D13972586 Pulled By: hermanlee
inikep
pushed a commit
to inikep/percona-server
that referenced
this pull request
Apr 17, 2024
) (percona#947) Summary: Jira issue: https://jira.percona.com/browse/FB8-49 Reference patch: facebook/mysql-5.6@915b131 MySQL client doesn't remove padding chars for binary columns. Do the same for RBR. Tools parsing the replication stream vs. the client output can then use memcmp to compare keys. Otherwise, the tools need to handle padding characters correctly. Pull Request resolved: facebook/mysql-5.6#947 Differential Revision: D13972586 Pulled By: hermanlee
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Greetings, on line number 7072 of ‘sql/binlog.cc’ there is a double-delete causing undefined behavior.
So, after calling ‘
delete pending
’ the first time (on line number 7067), we should dopending= NULL
, so if (by any chance), ‘delete pending
’ is called again, nothing will happen.REF: https://bugs.launchpad.net/percona-server/+bug/1618634