-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Merge conflict resolution for MDEV-40365 & co. → 11.4 #5465
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
Open
ParadoxV5
wants to merge
3
commits into
11.4
Choose a base branch
from
MDEV-40365.11.4
base: 11.4
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| # MDEV-39485 Heap-buffer-overflow upon read in `Rows_log_event` constructor | ||
| # | ||
| # This binlog file contains a normal Format Description | ||
| # Event followed by 3 malformed v2 Write Rows Events: | ||
| # 1. A tag followed by no data | ||
| # 2. An undersized tagged data followed by an unrecognized tag | ||
| # 3. A tag followed by a length longer than the entire event | ||
|
|
||
| --source include/not_embedded.inc | ||
|
|
||
| --let SEARCH_PATTERN= [Uu]nknown [Ee]vent | ||
| --let SEARCH_FILE= $MYSQLTEST_VARDIR/tmp/invalid_row_v2_tag.sql | ||
| --exec $MYSQL_BINLOG --force-read --verbose std_data/binlog_invalid_row_v2_tag.001 > $SEARCH_FILE | ||
| --source include/search_pattern_in_file.inc |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| FOUND 3 /[Uu]nknown [Ee]vent/ in invalid_row_v2_tag.sql |
Binary file not shown.
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| SET @saved_dbug= @@GLOBAL.debug_dbug; | ||
| SET @@GLOBAL.debug_dbug= '+d,truncate_fde_at_post_header_len'; | ||
| FLUSH BINARY LOGS; | ||
| SHOW BINLOG EVENTS IN 'master-bin.000002'; | ||
| ERROR HY000: Error when executing command SHOW BINLOG EVENTS: Wrong offset or I/O error | ||
| SET @@GLOBAL.debug_dbug= '+d,truncate_fde_common_header_len'; | ||
| FLUSH BINARY LOGS; | ||
| SHOW BINLOG EVENTS IN 'master-bin.000003'; | ||
| ERROR HY000: Error when executing command SHOW BINLOG EVENTS: Wrong offset or I/O error | ||
| SET @@GLOBAL.debug_dbug= @saved_dbug; | ||
| RESET MASTER; |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| --source include/have_debug.inc | ||
| --source include/have_binlog_format_mixed.inc # format-agnostic | ||
|
|
||
| # OOB read on malformed `Format_description_log_event` | ||
| # | ||
| # Verify that Format Description Events with truncated contents fails gracefully | ||
| # rather than underflow the post-header count and lead to buffer over-read. | ||
|
|
||
| SET @saved_dbug= @@GLOBAL.debug_dbug; | ||
|
|
||
|
|
||
| # MDEV-40366: `used_checksum_alg` | ||
|
|
||
| SET @@GLOBAL.debug_dbug= '+d,truncate_fde_at_post_header_len'; | ||
| FLUSH BINARY LOGS; | ||
|
|
||
| --let $binlog_file= query_get_value(SHOW BINLOG STATUS, File, 1) | ||
| --error ER_ERROR_WHEN_EXECUTING_COMMAND | ||
| --eval SHOW BINLOG EVENTS IN '$binlog_file' | ||
|
|
||
|
|
||
| # MDEV-40365: `common_header_len` & `post_header_len` | ||
|
|
||
| SET @@GLOBAL.debug_dbug= '+d,truncate_fde_common_header_len'; | ||
| FLUSH BINARY LOGS; | ||
|
|
||
| --let $binlog_file= query_get_value(SHOW BINLOG STATUS, File, 1) | ||
| --error ER_ERROR_WHEN_EXECUTING_COMMAND | ||
| --eval SHOW BINLOG EVENTS IN '$binlog_file' | ||
|
|
||
| # Clean-up | ||
| SET @@GLOBAL.debug_dbug= @saved_dbug; | ||
| RESET MASTER; |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vuvova
Looks like your MDEV-30128 purge also dropped MDEV-5115 «RBR from MySQL 5.6 to MariaDB 10.0 does not work»’s ‹Read binlog with v2 row events› test.