From 508c578ce43e940b0104e596c09d6dcaffe69db9 Mon Sep 17 00:00:00 2001 From: marko Date: Tue, 4 Jul 2006 21:34:25 +0000 Subject: [PATCH] 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) --- mtr/mtr0log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mtr/mtr0log.c b/mtr/mtr0log.c index 37adfc83a9f..cc9afc4127e 100644 --- a/mtr/mtr0log.c +++ b/mtr/mtr0log.c @@ -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 {