diff options
Diffstat (limited to 'tools/h5repack/h5repack_parse.c')
-rw-r--r-- | tools/h5repack/h5repack_parse.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/h5repack/h5repack_parse.c b/tools/h5repack/h5repack_parse.c index 0364206..0f1e0d2 100644 --- a/tools/h5repack/h5repack_parse.c +++ b/tools/h5repack/h5repack_parse.c @@ -399,6 +399,14 @@ obj_list_t* parse_layout(const char *str, *------------------------------------------------------------------------- */ k=0; + + if (j>(int)len) + { + if (obj_list) free(obj_list); + printf("Parse layout error: <%s> Chunk dimensions missing\n",str); + exit(1); + } + for ( i=j, c_index=0; i<len; i++) { c = str[i]; |