Skip to content

vortex-array: rebuild_trim_elements overflows calculating end offset #6973

@asubiotto

Description

@asubiotto

What happened?

Seeing this:

`offsets + sizes` somehow overflowed:
  Arrow error: Arithmetic overflow: Overflow happened on: 215 + 46

It seems to me that instead of/in addition to casting offsets/sizes to the larger width we should consider casting to the the next width? I guess the problem is that the "end" offset is implicit, so it's fine to narrow the start offset of the last range even though the end offset overflows the width.

Steps to reproduce

I have a vortex file and minimal reproduction test if necessary

Environment

  • Vortex version: 0.59.4 + cherry picks

Additional context

No response

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