Merge pull request #2384 in HDFFV/hdf5 from h5f_decode_length to develop

* commit '158ba17be0ad40e3e47a951c1340710608347772':
  Replace the old H5F_DECODE_LENGTH() implementation with one that initializes the variable it's loading on every path.
This commit is contained in:
David Young 2020-02-20 14:37:35 -06:00
commit c5ab228563

View File

@ -432,7 +432,7 @@ typedef struct H5F_t H5F_t;
default: HDassert("bad sizeof size" && 0); \
}
#define H5F_DECODE_LENGTH(f,p,l) H5F_DECODE_LENGTH_LEN(p,l,H5F_SIZEOF_SIZE(f))
#define H5F_DECODE_LENGTH(f,p,l) DECODE_VAR(p,l,H5F_SIZEOF_SIZE(f))
/*
* Macros that check for overflows. These are somewhat dangerous to fiddle