mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-24 15:25:00 +08:00
[svn-r6206]
Purpose: Improve error handling Description: make error handling better for VL string null pointer. Platform tested: arabica
This commit is contained in:
parent
6aa87a74e1
commit
69195e41a9
@ -2238,8 +2238,8 @@ H5T_conv_vlen(hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, hsize_t nelmts,
|
||||
d = *dptr;
|
||||
|
||||
/* Get length of element sequences */
|
||||
seq_len=(*(src->u.vlen.getlen))(src->u.vlen.f,s);
|
||||
assert(seq_len>=0);
|
||||
if((seq_len=(*(src->u.vlen.getlen))(src->u.vlen.f,s))<0)
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "null pointer");
|
||||
H5_CHECK_OVERFLOW(seq_len,hssize_t,size_t);
|
||||
src_size=(size_t)seq_len*src_base_size;
|
||||
dst_size=(size_t)seq_len*dst_base_size;
|
||||
|
Loading…
Reference in New Issue
Block a user