Skip to content

regexp_extract: guard 32-bit offset limits for large inputs #352

Open

Description

@andygrove

regexp_extract always returns Utf8. A caller such as Comet can pass a LargeUtf8 or Utf8View subject or pattern column. Casting a pattern column larger than 2 GiB to Utf8, or building a result larger than that, overflows the 32-bit offsets and panics. It should return an execution error instead, and the output buffer reservation should be capped. Raised by kosiew in #73.

Activity

  1. AnuragRaut08 commented on Nov 18, 2026

    @AnuragRaut08

    I'd like to work on this issue. I'll investigate the offset overflow and buffer reservation handling and put together a fix with regression tests.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions