argument stride in ncmpi_put_vars_all()

Robert Latham robl at mcs.anl.gov
Thu Oct 25 12:17:49 CDT 2007


On Thu, May 24, 2007 at 02:02:08PM -0500, Wei-keng Liao wrote:
> 
> According to the NetCDF C interface guide, the argument stride in 
> functions nc_get_vars_* and nc_put_vars_* can be NULL, which is 
> equivalent to passing (1,1,...,1).
> 
> I checked the source file for ncmpi_put_vars_all(), there is no such 
> checking and can cause application Segmentation fault if NULL is used. 
> This should be easy to correct by using a temp array allocated in 
> ncmpi_put_vars_all().

HI Wei-keng

I know it's been almost half a year since you pointed this out, but I
finally committed a testcase and a fix for this bug.

Good catch!
==rob

-- 
Rob Latham
Mathematics and Computer Science Division    A215 0178 EA2D B059 8CDF
Argonne National Lab, IL USA                 B29D F333 664A 4280 315B




More information about the parallel-netcdf mailing list