Skip to content

Commit

Permalink
Merge pull request #1633 from NOAA-GSD/ejh_hdf4_bug
Browse files Browse the repository at this point in the history
raised NC_MAX_HDF4_NAME length to NC_MAX_NAME
  • Loading branch information
WardF committed Feb 11, 2020
2 parents 8d44380 + cd38a4c commit bd93980
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ This file contains a high-level description of this package's evolution. Release
* [Enhancement] Restore use of szip compression when writing data (including writing in parallel if HDF5 version is 1.10.3 or greater). See [https://github.com/Unidata/netcdf-c/issues/1546].
* [Enhancement] Enable use of compact storage option for small vars in netCDF/HDF5 files. See [https://github.com/Unidata/netcdf-c/issues/1570].
* [Enhancement] Updated benchmarking program bm_file.c to better handle very large files. See [https://github.com/Unidata/netcdf-c/issues/1555].
* [Enhancement] Increased size of maximum allowed name in HDF4 files to NC_MAX_NAME. See [https://github.com/Unidata/netcdf-c/issues/1631].

## 4.7.3 - November 20, 2019

Expand Down
4 changes: 0 additions & 4 deletions include/hdf4dispatch.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@
#include "config.h"
#include "ncdispatch.h"

/** This is the max size of an SD dataset name in HDF4 (from HDF4
* documentation).*/
#define NC_MAX_HDF4_NAME 64

/** This is the max number of dimensions for a HDF4 SD dataset (from
* HDF4 documentation). */
#define NC_MAX_HDF4_DIMS 32
Expand Down
7 changes: 5 additions & 2 deletions include/netcdf.h
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,11 @@ NOTE: The NC_MAX_DIMS, NC_MAX_ATTRS, and NC_MAX_VARS limits
#define NC_MAX_VAR_DIMS 1024 /**< max per variable dimensions */
/**@}*/

/** This is the max size of an SD dataset name in HDF4 (from HDF4 documentation).*/
#define NC_MAX_HDF4_NAME 64
/** The max size of an SD dataset name in HDF4 (from HDF4
* documentation) is 64. But in in the wild we have encountered longer
* names. As long as the HDF4 name is not greater than NC_MAX_NAME,
* our code will be OK. */
#define NC_MAX_HDF4_NAME NC_MAX_NAME

/** In HDF5 files you can set the endianness of variables with
nc_def_var_endian(). This define is used there. */
Expand Down

0 comments on commit bd93980

Please sign in to comment.