Skip to content

Commit 9472ecd

Browse files
committed
Add chunk encoding size check to H5D__chunk_allocate
1 parent cf77b97 commit 9472ecd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/H5Dchunk.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5303,6 +5303,8 @@ H5D__chunk_allocate(const H5D_t *dset, bool full_overwrite, const hsize_t old_di
53035303
if (H5Z_pipeline(pline, 0, &filter_mask, err_detect, filter_cb, &orig_chunk_size, &buf_size,
53045304
&fb_info.fill_buf) < 0)
53055305
HGOTO_ERROR(H5E_PLINE, H5E_WRITEERROR, FAIL, "output pipeline failed");
5306+
5307+
H5D_CHUNK_ENCODE_SIZE_CHECK(&dset->shared->layout, orig_chunk_size, FAIL);
53065308
} /* end if */
53075309

53085310
/* Set chunk size */

0 commit comments

Comments
 (0)