Skip to content

SubbinSizes::exclusive_scan out-of-bounds read with negative index #3879

Description

@jl-wynen

lib/core/subbin_sizes.cpp:106

const auto prev = delta + i >= osize ? 0 : m_sizes[delta + i];

When delta is negative (i.e., x.offset() < offset()), delta + i can be negative. The check >= osize is false for negative values, so the code reads m_sizes at a negative index -- undefined behavior, potential crash or data corruption.

Activity

  1. added theissue type on Apr 10, 2026
  2. added a commit that references this issue on Apr 13, 2026
    42f2151
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions