E3SM-Project / scorpio

A high-level Parallel I/O Library for structured grid applications
Other
21 stars 16 forks source link

Prevent potential segmentation faults in write_darray_multi_par() #573

Closed dqwu closed 8 months ago

dqwu commented 8 months ago

Resolves memory allocation limitations in write_darray_multi_par() by transitioning startlist and countlist arrays from stack to heap.

This adjustment is crucial for the SUBSET rearranger, especially when dealing with a substantial number of I/O regions, preventing potential segmentation faults on stack in write_darray_multi_par().

Fixes #572