meet987654 commented on issue #12472: URL: https://github.com/apache/arrow-rs/issues/12472#issuecomment-7215587704
I reproduced this on main (ede2aeede) on Windows, release build, inside a std::thread::spawn thread (2 MiB stack). With the footer from the report, ParquetMetaDataReader::decode_metadata aborts with thread has overflowed its stack at about 2,430 nested groups (a ~19 KB footer); 2,422 levels still decode to Ok. I'd like to work on this. My plan is to add a maximum schema depth that is checked while the footer schema is decoded, and to return a ParquetError when it is exceeded. Every later recursive walk, including build_reader, then only ever sees bounded schemas. Questions: 1. Is a fixed limit OK, or should it be configurable through ParquetMetaDataOptions? 2. Any preference on the default? It needs headroom below the ~310 levels where build_reader overflows, so something like 100–128 seems safe, and real schemas are far shallower. -- 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]
