mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
mlog_parse_index(): Remove an off-by-one error in the bounds check that
would cause the crash recovery of MLOG_COMP_PAGE_REORGANIZE to fail. (Bug #20855)
This commit is contained in:
parent
3e670d86c7
commit
508c578ce4
1 changed files with 1 additions and 1 deletions
|
@ -536,7 +536,7 @@ mlog_parse_index(
|
|||
n_uniq = mach_read_from_2(ptr);
|
||||
ptr += 2;
|
||||
ut_ad(n_uniq <= n);
|
||||
if (end_ptr < ptr + (n + 1) * 2) {
|
||||
if (end_ptr < ptr + n * 2) {
|
||||
return(NULL);
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue