Skip to content

GH-39976: [C++] Fix out-of-line data size calculation in BinaryViewBuilder::AppendArraySlice#39994

Merged
pitrou merged 3 commits intoapache:mainfrom
zanmato1984:fix-39976
Feb 8, 2024
Merged

GH-39976: [C++] Fix out-of-line data size calculation in BinaryViewBuilder::AppendArraySlice#39994
pitrou merged 3 commits intoapache:mainfrom
zanmato1984:fix-39976

Conversation

@zanmato1984
Copy link
Copy Markdown
Contributor

@zanmato1984 zanmato1984 commented Feb 8, 2024

Rationale for this change

Fix the bug in BinaryViewBuilder::AppendArraySlice that, when calculating out-of-line data size, the array is wrongly iterated.

What changes are included in this PR?

Fix and UT.

Are these changes tested?

UT included.

Are there any user-facing changes?

No.

@zanmato1984
Copy link
Copy Markdown
Contributor Author

cc @pitrou @bkietz

Copy link
Copy Markdown
Member

@mapleFU mapleFU left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@github-actions github-actions bot added awaiting committer review Awaiting committer review and removed awaiting review Awaiting review labels Feb 8, 2024
Copy link
Copy Markdown
Member

@pitrou pitrou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for fixing this. Just one suggestion below.

@pitrou pitrou merged commit 98c4225 into apache:main Feb 8, 2024
@pitrou pitrou removed the awaiting committer review Awaiting committer review label Feb 8, 2024
@github-actions github-actions bot added the awaiting committer review Awaiting committer review label Feb 8, 2024
@conbench-apache-arrow
Copy link
Copy Markdown

After merging your PR, Conbench analyzed the 6 benchmarking runs that have been run so far on merge-commit 98c4225.

There were 5 benchmark results indicating a performance regression:

The full Conbench report has more details.

dgreiss pushed a commit to dgreiss/arrow that referenced this pull request Feb 19, 2024
…ViewBuilder::AppendArraySlice (apache#39994)

### Rationale for this change

Fix the bug in `BinaryViewBuilder::AppendArraySlice` that, when calculating out-of-line data size, the array is wrongly iterated.

### What changes are included in this PR?

Fix and UT.

### Are these changes tested?

UT included.

### Are there any user-facing changes?

No.

* Closes: apache#39976

Authored-by: Ruoxi Sun <zanmato1984@gmail.com>
Signed-off-by: Antoine Pitrou <antoine@python.org>
raulcd pushed a commit that referenced this pull request Feb 20, 2024
…ilder::AppendArraySlice (#39994)

### Rationale for this change

Fix the bug in `BinaryViewBuilder::AppendArraySlice` that, when calculating out-of-line data size, the array is wrongly iterated.

### What changes are included in this PR?

Fix and UT.

### Are these changes tested?

UT included.

### Are there any user-facing changes?

No.

* Closes: #39976

Authored-by: Ruoxi Sun <zanmato1984@gmail.com>
Signed-off-by: Antoine Pitrou <antoine@python.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[C++] ASAN reports heap buffer overflow in TestArray.TestAppendArraySlice

3 participants