Skip to content

[C++][Gandiva] binary_string can throw an error if input is null #49034

@lriggs

Description

@lriggs

Describe the bug, including details regarding any error messages, version, and platform.

The binary_string function tries to allocate 0 bytes of memory if the input is empty. If this is the first row being processed there will be an error since no memory is allocated.

A fix is to either return early from the function before attempting to allocate memory or add kCanReturnErrors to indicate the errors aren't fatal.

Component(s)

Gandiva

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions