mirror of
https://github.com/apache/arrow.git
synced 2026-10-29 00:56:31 +08:00
Make binary/string constants static to avoid memory-access-related segfaults in third party libraries
Change-Id: Ib8a053485822ea9c4e06b800def9654da9e0f9d9
This commit is contained in:
1 parent
1e65b01386
commit
dca39ce5e0
1 file changed
+3
-2
@@ -24,8 +24,9 @@
|
||||
#include "arrow/type.h"
|
||||
|
||||
namespace arrow {
|
||||
const std::shared_ptr<DataType> kBinary = std::make_shared<BinaryType>();
|
||||
const std::shared_ptr<DataType> kString = std::make_shared<StringType>();
|
||||
|
||||
static std::shared_ptr<DataType> kBinary = std::make_shared<BinaryType>();
|
||||
static std::shared_ptr<DataType> kString = std::make_shared<StringType>();
|
||||
|
||||
BinaryArray::BinaryArray(int32_t length, const std::shared_ptr<Buffer>& offsets,
|
||||
const std::shared_ptr<Buffer>& data, int32_t null_count,
|
||||
|
||||
Reference in new issue
Block a user