Skip to content

[arrow-buffer] Integer overflow in repeat_slice_n_times leads to undefined behavior #9904

@ksj1230

Description

@ksj1230

Description

This issue was previously reported privately and is now being disclosed following coordination with maintainers.

repeat_slice_n_times() computes repeated byte length using unchecked arithmetic.
When the multiplication overflows, capacity checks may be bypassed, leading to insufficient allocation.

This can result in a potential out-of-bounds write via safe Rust APIs.

Fix

See PR #9819

Reported by Sungjin Kim (@ksj1230)

Metadata

Metadata

Assignees

No one assigned

    Labels

    arrowChanges to the arrow crate

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions