Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Commitlog replayer: Range-check skip call
Fixes #15269 If segment being replayed is corrupted/truncated we can attempt skipping completely bogues byte amounts, which can cause assert (i.e. crash) in file_data_source_impl. This is not a crash-level error, so ensure we range check the distance in the reader. v2: Add to corrupt_size if trying to skip more than available. The amount added is "wrong", but at least will ensure we log the fact that things are broken Closes #15270 (cherry picked from commit 6ffb482)
- Loading branch information