mapleFU opened a new issue, #34496:
URL: https://github.com/apache/arrow/issues/34496
### Describe the bug, including details regarding any error messages,
version, and platform.
In `RecordReaderStressTest.StressTest`.
```c++
std::default_random_engine gen(seed1);
// Generate random number of pages with random number of values per page.
std::uniform_int_distribution<int> d(0, 2000);
const int num_pages = d(gen);
const int levels_per_page = d(gen);
```
If `num_pages == 0`, then, it will cause:
```c++
// Generates pages from randomly generated data
template <typename Type>
static inline int MakePages(...) {
int num_levels = levels_per_page * num_pages; // -> to 0
...
// Create repitition levels
if (max_rep_level > 0) {
rep_levels[0] = 0; // --> invalid memory visit
}
```
This is introduced in https://github.com/apache/arrow/pull/14879
### Component(s)
C++, Parquet
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]