[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:
Quincey Koziol 2000-11-06 19:27:03 -05:00
parent fd36aa4b67
commit 3293e213ce

View File

@ -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 */