Skip to content

[C++] STL allocator doesn't check for multiplication overflow #31076

Closed

Description

@asfimport

The MemoryPool-backed STL allocator defined in arrow/stl.h has the following code:

    Status s = pool_->Allocate(n * sizeof(T), &data);

but n * sizeof(T) might silently overflow and lead to an incorrect allocation size.

Reporter: Antoine Pitrou / @pitrou

Note: This issue was originally created as ARROW-15615. Please see the migration documentation for further details.

Activity

  1. added a commit that references this issue on Oct 1, 2026
  2. added this to the 27.0.0 milestone on Oct 1, 2026
  3. pitrou commented on Oct 1, 2026

    @pitrou
    Member

    Issue resolved by pull request 51477
    #51477

  4. pitrou commented on Oct 1, 2026

    @pitrou
    Member

    @aikhanjum Can you post here so that we can assign this issue to you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions