E3SM-Project / scorpio

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

Perform the file name length validation during openfile #516

Closed dqwu closed 1 year ago

dqwu commented 1 year ago

In the openfile function, include a check to ensure that the length of the input file name, including the complete path, does not exceed the limit defined by PIO_MAX_NAME.

Exceeding this limit could cause failures in low-level NetCDF or PnetCDF library calls.