Skip to content

Commit

Permalink
Merge pull request #2113 from rouault/fix_stack_read_overflow_ncindex…
Browse files Browse the repository at this point in the history
…lookup

Fix a stack-read-overflow in ncindexlookup()
  • Loading branch information
WardF authored Oct 1, 2021
2 parents e763e6c + 0582c20 commit 5cd17ba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libhdf5/hdf5internal.c
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,10 @@ nc4_hdf5_find_grp_var_att(int ncid, int varid, const char *name, int attnum,

/* Give the people what they want. */
if (norm_name)
{
strncpy(norm_name, my_norm_name, NC_MAX_NAME);
norm_name[NC_MAX_NAME] = 0;
}
if (h5)
*h5 = my_h5;
if (grp)
Expand Down

0 comments on commit 5cd17ba

Please sign in to comment.