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:
marko 2006-07-04 21:34:25 +00:00
parent 3e670d86c7
commit 508c578ce4

View file

@ -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 {