Add check for incorrect length values in postgres DataRow parser#47872
Merged
fearful-symmetry merged 5 commits intoelastic:mainfrom Dec 3, 2025
Merged
Conversation
Contributor
🤖 GitHub commentsJust comment with:
|
Contributor
|
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
Contributor
|
Pinging @elastic/sec-linux-platform (Team:Security-Linux Platform) |
nicholasberlin
approved these changes
Dec 3, 2025
Contributor
|
@Mergifyio backport 8.19 9.1 9.2 9.3 |
Contributor
✅ Backports have been createdDetails
|
mergify bot
pushed a commit
that referenced
this pull request
Jan 12, 2026
) * add check for incorrect length values in postgres DataRow parser * add changelog * linter... * linter.... * fix log message (cherry picked from commit ed2d884)
Merged
6 tasks
mergify bot
pushed a commit
that referenced
this pull request
Jan 12, 2026
) * add check for incorrect length values in postgres DataRow parser * add changelog * linter... * linter.... * fix log message (cherry picked from commit ed2d884)
mergify bot
pushed a commit
that referenced
this pull request
Jan 12, 2026
) * add check for incorrect length values in postgres DataRow parser * add changelog * linter... * linter.... * fix log message (cherry picked from commit ed2d884)
This was referenced Jan 12, 2026
Merged
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed commit message
This fixes a bug where a PostgreSQL packed with a DataRow that specified a row count less than the actual count of rows would result in an out of bounds array access and panic. This just adds a length check, and a bit of error cleanup.
Checklist
stresstest.shscript to run them under stress conditions and race detector to verify their stability../changelog/fragmentsusing the changelog tool.