-
Notifications
You must be signed in to change notification settings - Fork 25k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ESQL: Fix rare bug with empty string (#102350)
This fixes a rare bug that occurs when an empty value lands on the page boundary of the last page. We only allocate the last page if we need some bytes from it. So if you add an empty string to the as the last entry in a BytesRefBlock we don't allocate a whole new slab of bytes to hold the empty string. But, without this change, we attempt to read from the unallocated array. We try to read 0 bytes from it, but still. That's a read past the end of the array. Closes #101969
- Loading branch information
Showing
3 changed files
with
71 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
pr: 102350 | ||
summary: "ESQL: Fix rare bug with empty string" | ||
area: ES|QL | ||
type: bug | ||
issues: | ||
- 101969 |
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