[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #EIP-466022]: Superfluous print statement in f90/netcdf_expanded.f90 (4.1.3)



> Dear NetCDF support,
> 
> I wanted to report a bug in the source code of f90/netcdf_expanded.f90
> (4.1.3) that could potentially produce a crash.
> 
> The bug is in line 734 of the source code (routine 
> nf90_put_var_2D_FourByteInt)
> print *, values(1, 1), values(1, 2), values(1, 3), values(1, 4)
> 
> This debugging print statement is potentially dangerous for several
> reasons:
> 
> 1) The print statement is unexpected and could foul up peoples output
> and there scripts
> 
> 2) The elements "values(1,2)" etc may not exist and could hence result
> in a segfault.
> 
> Please remove this line in further implementations.
> 
> Regards,
> Remko
> 

Howdy Remko!

Thanks, this has been fixed for the next release.

In the next release, the fortran libraries are separate from the C library 
(which is still required for the fortran libraries to build.)

Try a beta release of the new fortran libraries here: 
ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-fortran-4.2-beta4.tar.gz

Thanks,

Ed

Ticket Details
===================
Ticket ID: EIP-466022
Department: Support netCDF
Priority: Critical
Status: Closed