Skip to content

[C++] Null pointer dereference in SimpleTable constructor #49079

@AliRana30

Description

@AliRana30

Describe the bug

SimpleTable constructor dereferences columns_[0] without null check when num_rows < 0. If the first column pointer is null, this causes undefined behavior/segfault at lines 66-70 and 80-84 in cpp/src/arrow/table.cc.

Component(s)

C++

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions