[ 
https://issues.apache.org/jira/browse/PARQUET-1623?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hatem Helal resolved PARQUET-1623.
----------------------------------
    Resolution: Fixed

Issue resolved by pull request 4857

[https://github.com/apache/arrow/pull/4857]

> [C++] Invalid memory access with a magic number of records
> ----------------------------------------------------------
>
>                 Key: PARQUET-1623
>                 URL: https://issues.apache.org/jira/browse/PARQUET-1623
>             Project: Parquet
>          Issue Type: Bug
>          Components: parquet-cpp
>            Reporter: Hatem Helal
>            Assignee: Hatem Helal
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: cpp-1.6.0
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> I've observed a crash due to an invalid memory access when trying to read a 
> parquet file that I created with a single column of double-precision values 
> that occupies a fixed amount of memory.  After some experimentation I found 
> that the following unittest added to {{arrow-reader-writer-test.cc}} will 
> fail when run in an ASAN build.
> {code:java}
> TEST(TestArrowReadWrite, MultiDataPageMagicNumber) {
>   const int num_rows = 262144;  // 2^18
>   std::shared_ptr<Table> table;
>   ASSERT_NO_FATAL_FAILURE(MakeDoubleTable(1, num_rows, 1, &table));
>   std::shared_ptr<Table> result;
>   ASSERT_NO_FATAL_FAILURE(
>       DoSimpleRoundtrip(table, false, table->num_rows(), {}, &result));
>   ASSERT_NO_FATAL_FAILURE(::arrow::AssertTablesEqual(*table, *result));
> }{code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to