[C++][Gandiva] Fix size 0 case in arena malloc
- Dominant language
- C++
- Stars
- 17.1k
- Forks
- 4.3k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 91
Description
The size 0 case in arena malloc is causing sporadic errors due to null pointer being returned to functions like convert_from which treat this as an error.
**Reporter**: [Siddhant Rao](https://issues.apache.org/jira/browse/ARROW-16191)
#### PRs and other links:
- [GitHub Pull Request #12879](https://github.com/apache/arrow/pull/12879)
**Note**: *This issue was originally created as [ARROW-16191](https://issues.apache.org/jira/browse/ARROW-16191). Please see the [migration documentation](https://github.com/apache/arrow/issues/14542) for further details.*
Contributor guide
Research direction
Start by reviewing the Gandiva arena malloc path and the convert_from functions named in the issue, then inspect linked pull request #12879 for the work already underway. Done means the size-0 case no longer returns a null pointer treated as an error, with the relevant Gandiva tests passing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 15/100