Limit S3 Select JSON documents to 10MB (#20439)

Closes #20430

Limit allocations from badly formed documents.
This commit is contained in:
Klaus Post
2024-09-16 09:59:03 -07:00
committed by GitHub
parent 229f04ab79
commit 8a30967542
2 changed files with 6 additions and 1 deletions

View File

@@ -442,6 +442,7 @@ func (s3Select *S3Select) Open(rsc io.ReadSeekCloser) error {
s3Select.recordReader = json.NewPReader(s3Select.progressReader, &s3Select.Input.JSONArgs)
}
} else {
// Document mode.
s3Select.recordReader = json.NewReader(s3Select.progressReader, &s3Select.Input.JSONArgs)
}