-
Notifications
You must be signed in to change notification settings - Fork 713
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix crashing when DocStore indexes contain long document paths
Summary: System crashes while DocStore indexes contain long document paths. This is caused by buffer overwrite in `pack_keys()`. Although the overwrite does not throw exception in the first place, it triggers the assertion in `open_binary_frm()`. Checking the boundary condition fixes this issue. Test Plan: Create a mtr test with the following: let $big_string = `select repeat('a', 2000)`; eval create table t4(a int primary key, b blob, doc document, key(doc.$big_string as string(100))) engine=innodb; Reviewers: santoshb, tianx Reviewed By: tianx
- Loading branch information
Showing
4 changed files
with
45 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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 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 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 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