Skip to content

Commit

Permalink
Fix a too-small buffer issue in hdp (#527)
Browse files Browse the repository at this point in the history
  • Loading branch information
derobins authored Feb 13, 2024
1 parent e8e53fa commit ad6ea89
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mfhdf/dumper/hdp_sds.c
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ intn
option_mask_string(int32 options_mask, char *opt_mask_strg)
{
intn ret_value = SUCCEED;
char numval[10];
char numval[16];

strcpy(opt_mask_strg, ""); /* init string to empty string */

Expand Down Expand Up @@ -707,8 +707,6 @@ option_mask_string(int32 options_mask, char *opt_mask_strg)

return (ret_value);
} /* option_mask_string */
/* #endif
*/

/*
* Prints compression method and compression information of a data set.
Expand Down

0 comments on commit ad6ea89

Please sign in to comment.