diff options
author | Neil Fortner <nfortne2@hdfgroup.org> | 2009-06-25 18:56:00 (GMT) |
---|---|---|
committer | Neil Fortner <nfortne2@hdfgroup.org> | 2009-06-25 18:56:00 (GMT) |
commit | 02dc89e00b6ed9c16321861272c06e398832fdb5 (patch) | |
tree | d51d263386a1bef9924d4f2469f9ebc964b57b82 /src | |
parent | 98b20f5bda4e26f3b4df197f74afed3aeef458f2 (diff) | |
download | hdf5-02dc89e00b6ed9c16321861272c06e398832fdb5.zip hdf5-02dc89e00b6ed9c16321861272c06e398832fdb5.tar.gz hdf5-02dc89e00b6ed9c16321861272c06e398832fdb5.tar.bz2 |
[svn-r17108] Purpose: Fix bug in H5Z_filter_info
Description:
Previously, when H5Z_filter_info was called for a filter that was not present,
it would succeed and return the information from one position past the end of
the pipeline, possibly causing a segfault. This affected at least
H5Pget_fitler_by_id1/2, and possibly other API functions. Fixed to properly
return failure.
Tested: jam, linew, smirom (h5committest)
Diffstat (limited to 'src')
-rw-r--r-- | src/H5Z.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1115,7 +1115,7 @@ H5Z_filter_info(const H5O_pline_t *pline, H5Z_filter_t filter) break; /* Check if the filter was not already in the pipeline */ - if(idx>pline->nused) + if(idx>=pline->nused) HGOTO_ERROR(H5E_PLINE, H5E_NOTFOUND, NULL, "filter not in pipeline") /* Set return value */ |