mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
[svn-r2804] Purpose:
Bug Fix Description: Selections in 1-D dataspaces would get into an infinite loop in H5S_hyper_select_iterate_mem_opt (called by H5Diterate and H5Dget_vlen_buf_size) due to some incorrect logic. Solution: Handled 1-D cases correctly and get out of loop. Platforms tested: Eyeballed...
This commit is contained in:
parent
fd36aa4b67
commit
3293e213ce
@ -5221,6 +5221,10 @@ H5S_hyper_select_iterate_mem_opt(H5S_sel_iter_t UNUSED *iter, void *buf, hid_t t
|
||||
tmp_count[fast_dim]--;
|
||||
} /* end while */
|
||||
|
||||
/* Check for getting out of iterator, we're done in the 1-D case */
|
||||
if(ndims==1)
|
||||
goto done; /* Yes, an evil goto.. :-) -QAK */
|
||||
|
||||
/* Work on other dimensions if necessary */
|
||||
if(fast_dim>0 && user_ret==0) {
|
||||
/* Reset the sequence and block counts */
|
||||
|
Loading…
Reference in New Issue
Block a user