Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler.
Number of rules (primarily dangerous function names) in C/C++ ruleset: 223
Examining data/libhdf4-4.2.15/config/cmake_ext_mod/GetTimeOfDayTest.cpp
Examining data/libhdf4-4.2.15/config/cmake_ext_mod/HDFCXXTests.cpp
Examining data/libhdf4-4.2.15/config/cmake_ext_mod/HDFTests.c
Examining data/libhdf4-4.2.15/hdf/examples/AN_create_annotation.c
Examining data/libhdf4-4.2.15/hdf/examples/AN_get_annotation_info.c
Examining data/libhdf4-4.2.15/hdf/examples/AN_read_annotation.c
Examining data/libhdf4-4.2.15/hdf/examples/GR_create_and_write_image.c
Examining data/libhdf4-4.2.15/hdf/examples/GR_get_attribute.c
Examining data/libhdf4-4.2.15/hdf/examples/GR_image_info.c
Examining data/libhdf4-4.2.15/hdf/examples/GR_modify_image.c
Examining data/libhdf4-4.2.15/hdf/examples/GR_read_chunks.c
Examining data/libhdf4-4.2.15/hdf/examples/GR_read_image.c
Examining data/libhdf4-4.2.15/hdf/examples/GR_read_palette.c
Examining data/libhdf4-4.2.15/hdf/examples/GR_set_attribute.c
Examining data/libhdf4-4.2.15/hdf/examples/GR_write_chunks.c
Examining data/libhdf4-4.2.15/hdf/examples/GR_write_palette.c
Examining data/libhdf4-4.2.15/hdf/examples/VD_create_onefield_vdatas.c
Examining data/libhdf4-4.2.15/hdf/examples/VD_create_vdatas.c
Examining data/libhdf4-4.2.15/hdf/examples/VD_get_vdata_info.c
Examining data/libhdf4-4.2.15/hdf/examples/VD_locate_vdata.c
Examining data/libhdf4-4.2.15/hdf/examples/VD_read_from_vdata.c
Examining data/libhdf4-4.2.15/hdf/examples/VD_read_mixed_vdata.c
Examining data/libhdf4-4.2.15/hdf/examples/VD_set_get_vdata_attr.c
Examining data/libhdf4-4.2.15/hdf/examples/VD_write_mixed_vdata.c
Examining data/libhdf4-4.2.15/hdf/examples/VD_write_mixed_vdata_struct.c
Examining data/libhdf4-4.2.15/hdf/examples/VD_write_to_vdata.c
Examining data/libhdf4-4.2.15/hdf/examples/VG_add_sds_to_vgroup.c
Examining data/libhdf4-4.2.15/hdf/examples/VG_create_vgroup.c
Examining data/libhdf4-4.2.15/hdf/examples/VG_get_vgroup_info.c
Examining data/libhdf4-4.2.15/hdf/examples/VG_insert_vdatas_to_vgroup.c
Examining data/libhdf4-4.2.15/hdf/examples/VG_set_get_vgroup_attr.c
Examining data/libhdf4-4.2.15/hdf/examples/VG_vgroup_contents.c
Examining data/libhdf4-4.2.15/hdf/src/atom.c
Examining data/libhdf4-4.2.15/hdf/src/atom.h
Examining data/libhdf4-4.2.15/hdf/src/bitvect.c
Examining data/libhdf4-4.2.15/hdf/src/bitvect.h
Examining data/libhdf4-4.2.15/hdf/src/cdeflate.c
Examining data/libhdf4-4.2.15/hdf/src/cdeflate.h
Examining data/libhdf4-4.2.15/hdf/src/cnbit.c
Examining data/libhdf4-4.2.15/hdf/src/cnbit.h
Examining data/libhdf4-4.2.15/hdf/src/cnone.c
Examining data/libhdf4-4.2.15/hdf/src/cnone.h
Examining data/libhdf4-4.2.15/hdf/src/crle.c
Examining data/libhdf4-4.2.15/hdf/src/crle.h
Examining data/libhdf4-4.2.15/hdf/src/cskphuff.c
Examining data/libhdf4-4.2.15/hdf/src/cskphuff.h
Examining data/libhdf4-4.2.15/hdf/src/cszip.c
Examining data/libhdf4-4.2.15/hdf/src/cszip.h
Examining data/libhdf4-4.2.15/hdf/src/df24.c
Examining data/libhdf4-4.2.15/hdf/src/df24f.c
Examining data/libhdf4-4.2.15/hdf/src/dfan.c
Examining data/libhdf4-4.2.15/hdf/src/dfanf.c
Examining data/libhdf4-4.2.15/hdf/src/dfan.h
Examining data/libhdf4-4.2.15/hdf/src/dfcomp.c
Examining data/libhdf4-4.2.15/hdf/src/dfconv.c
Examining data/libhdf4-4.2.15/hdf/src/dfconvrt.h
Examining data/libhdf4-4.2.15/hdf/src/dff.c
Examining data/libhdf4-4.2.15/hdf/src/dfgr.c
Examining data/libhdf4-4.2.15/hdf/src/dfgr.h
Examining data/libhdf4-4.2.15/hdf/src/dfgroup.c
Examining data/libhdf4-4.2.15/hdf/src/df.h
Examining data/libhdf4-4.2.15/hdf/src/dfi.h
Examining data/libhdf4-4.2.15/hdf/src/dfimcomp.c
Examining data/libhdf4-4.2.15/hdf/src/dfjpeg.c
Examining data/libhdf4-4.2.15/hdf/src/dfknat.c
Examining data/libhdf4-4.2.15/hdf/src/dfkswap.c
Examining data/libhdf4-4.2.15/hdf/src/dfp.c
Examining data/libhdf4-4.2.15/hdf/src/dfpf.c
Examining data/libhdf4-4.2.15/hdf/src/dfr8.c
Examining data/libhdf4-4.2.15/hdf/src/dfr8f.c
Examining data/libhdf4-4.2.15/hdf/src/dfrig.h
Examining data/libhdf4-4.2.15/hdf/src/dfrle.c
Examining data/libhdf4-4.2.15/hdf/src/dfsd.c
Examining data/libhdf4-4.2.15/hdf/src/dfsdf.c
Examining data/libhdf4-4.2.15/hdf/src/dfsd.h
Examining data/libhdf4-4.2.15/hdf/src/dfstubs.c
Examining data/libhdf4-4.2.15/hdf/src/dfstubs.h
Examining data/libhdf4-4.2.15/hdf/src/dfufp2i.c
Examining data/libhdf4-4.2.15/hdf/src/dfufp2if.c
Examining data/libhdf4-4.2.15/hdf/src/dfufp2i.h
Examining data/libhdf4-4.2.15/hdf/src/dfunjpeg.c
Examining data/libhdf4-4.2.15/hdf/src/dfutil.c
Examining data/libhdf4-4.2.15/hdf/src/dfutilf.c
Examining data/libhdf4-4.2.15/hdf/src/dynarray.c
Examining data/libhdf4-4.2.15/hdf/src/dynarray.h
Examining data/libhdf4-4.2.15/hdf/src/glist.c
Examining data/libhdf4-4.2.15/hdf/src/glist.h
Examining data/libhdf4-4.2.15/hdf/src/H4api_adpt.h
Examining data/libhdf4-4.2.15/hdf/src/hbitio.c
Examining data/libhdf4-4.2.15/hdf/src/hbitio.h
Examining data/libhdf4-4.2.15/hdf/src/hblocks.c
Examining data/libhdf4-4.2.15/hdf/src/hbuffer.c
Examining data/libhdf4-4.2.15/hdf/src/hchunks.c
Examining data/libhdf4-4.2.15/hdf/src/hchunks.h
Examining data/libhdf4-4.2.15/hdf/src/hcomp.c
Examining data/libhdf4-4.2.15/hdf/src/hcomp.h
Examining data/libhdf4-4.2.15/hdf/src/hcompi.h
Examining data/libhdf4-4.2.15/hdf/src/hcompri.c
Examining data/libhdf4-4.2.15/hdf/src/hdatainfo.c
Examining data/libhdf4-4.2.15/hdf/src/hdatainfo.h
Examining data/libhdf4-4.2.15/hdf/src/hdfalloc.c
Examining data/libhdf4-4.2.15/hdf/src/hdf.h
Examining data/libhdf4-4.2.15/hdf/src/herr.c
Examining data/libhdf4-4.2.15/hdf/src/herrf.c
Examining data/libhdf4-4.2.15/hdf/src/hextelt.c
Examining data/libhdf4-4.2.15/hdf/src/hfile.c
Examining data/libhdf4-4.2.15/hdf/src/hfilef.c
Examining data/libhdf4-4.2.15/hdf/src/hfile.h
Examining data/libhdf4-4.2.15/hdf/src/hkit.c
Examining data/libhdf4-4.2.15/hdf/src/hkit.h
Examining data/libhdf4-4.2.15/hdf/src/hlimits.h
Examining data/libhdf4-4.2.15/hdf/src/hntdefs.h
Examining data/libhdf4-4.2.15/hdf/src/hproto.h
Examining data/libhdf4-4.2.15/hdf/src/hproto_fortran.h
Examining data/libhdf4-4.2.15/hdf/src/hqueue.h
Examining data/libhdf4-4.2.15/hdf/src/htags.h
Examining data/libhdf4-4.2.15/hdf/src/linklist.c
Examining data/libhdf4-4.2.15/hdf/src/linklist.h
Examining data/libhdf4-4.2.15/hdf/src/maldebug.c
Examining data/libhdf4-4.2.15/hdf/src/maldebug.h
Examining data/libhdf4-4.2.15/hdf/src/mcache.h
Examining data/libhdf4-4.2.15/hdf/src/mfan.c
Examining data/libhdf4-4.2.15/hdf/src/mfanf.c
Examining data/libhdf4-4.2.15/hdf/src/mfan.h
Examining data/libhdf4-4.2.15/hdf/src/mfgr.c
Examining data/libhdf4-4.2.15/hdf/src/mfgrf.c
Examining data/libhdf4-4.2.15/hdf/src/mfgr.h
Examining data/libhdf4-4.2.15/hdf/src/mstdio.c
Examining data/libhdf4-4.2.15/hdf/src/mstdio.h
Examining data/libhdf4-4.2.15/hdf/src/patchlevel.h
Examining data/libhdf4-4.2.15/hdf/src/tbbt.c
Examining data/libhdf4-4.2.15/hdf/src/tbbt.h
Examining data/libhdf4-4.2.15/hdf/src/trace.h
Examining data/libhdf4-4.2.15/hdf/src/vattr.c
Examining data/libhdf4-4.2.15/hdf/src/vattrf.c
Examining data/libhdf4-4.2.15/hdf/src/vattr.h
Examining data/libhdf4-4.2.15/hdf/src/vconv.c
Examining data/libhdf4-4.2.15/hdf/src/vg.c
Examining data/libhdf4-4.2.15/hdf/src/vgf.c
Examining data/libhdf4-4.2.15/hdf/src/vg.h
Examining data/libhdf4-4.2.15/hdf/src/vgint.h
Examining data/libhdf4-4.2.15/hdf/src/vgp.c
Examining data/libhdf4-4.2.15/hdf/src/vhi.c
Examining data/libhdf4-4.2.15/hdf/src/vio.c
Examining data/libhdf4-4.2.15/hdf/src/vparse.c
Examining data/libhdf4-4.2.15/hdf/src/vrw.c
Examining data/libhdf4-4.2.15/hdf/src/vsfld.c
Examining data/libhdf4-4.2.15/hdf/src/hconv.h
Examining data/libhdf4-4.2.15/hdf/src/hdfi.h
Examining data/libhdf4-4.2.15/hdf/src/herr.h
Examining data/libhdf4-4.2.15/hdf/src/hfiledd.c
Examining data/libhdf4-4.2.15/hdf/src/mcache.c
Examining data/libhdf4-4.2.15/hdf/test/an.c
Examining data/libhdf4-4.2.15/hdf/test/anfile.c
Examining data/libhdf4-4.2.15/hdf/test/bitio.c
Examining data/libhdf4-4.2.15/hdf/test/blocks.c
Examining data/libhdf4-4.2.15/hdf/test/buffer.c
Examining data/libhdf4-4.2.15/hdf/test/comp.c
Examining data/libhdf4-4.2.15/hdf/test/conv.c
Examining data/libhdf4-4.2.15/hdf/test/extelt.c
Examining data/libhdf4-4.2.15/hdf/test/file1.c
Examining data/libhdf4-4.2.15/hdf/test/forsupf.c
Examining data/libhdf4-4.2.15/hdf/test/fortest.c
Examining data/libhdf4-4.2.15/hdf/test/fortest.h
Examining data/libhdf4-4.2.15/hdf/test/gentest.c
Examining data/libhdf4-4.2.15/hdf/test/litend.c
Examining data/libhdf4-4.2.15/hdf/test/macros.c
Examining data/libhdf4-4.2.15/hdf/test/man.c
Examining data/libhdf4-4.2.15/hdf/test/mgr.c
Examining data/libhdf4-4.2.15/hdf/test/nbit.c
Examining data/libhdf4-4.2.15/hdf/test/rig.c
Examining data/libhdf4-4.2.15/hdf/test/sdmms.c
Examining data/libhdf4-4.2.15/hdf/test/sdnmms.c
Examining data/libhdf4-4.2.15/hdf/test/sdstr.c
Examining data/libhdf4-4.2.15/hdf/test/slab.c
Examining data/libhdf4-4.2.15/hdf/test/tbv.c
Examining data/libhdf4-4.2.15/hdf/test/tdatainfo.c
Examining data/libhdf4-4.2.15/hdf/test/tdatainfo.h
Examining data/libhdf4-4.2.15/hdf/test/tattdatainfo.c
Examining data/libhdf4-4.2.15/hdf/test/tdfr8.c
Examining data/libhdf4-4.2.15/hdf/test/tdupimgs.c
Examining data/libhdf4-4.2.15/hdf/test/testhdf.c
Examining data/libhdf4-4.2.15/hdf/test/tmgrattr.c
Examining data/libhdf4-4.2.15/hdf/test/tmgrcomp.c
Examining data/libhdf4-4.2.15/hdf/test/tproto.h
Examining data/libhdf4-4.2.15/hdf/test/tree.c
Examining data/libhdf4-4.2.15/hdf/test/tszip.c
Examining data/libhdf4-4.2.15/hdf/test/tusejpegfuncs.c
Examining data/libhdf4-4.2.15/hdf/test/tutils.c
Examining data/libhdf4-4.2.15/hdf/test/tutils.h
Examining data/libhdf4-4.2.15/hdf/test/tvattr.c
Examining data/libhdf4-4.2.15/hdf/test/tvnameclass.c
Examining data/libhdf4-4.2.15/hdf/test/tvset.c
Examining data/libhdf4-4.2.15/hdf/test/tvsfpack.c
Examining data/libhdf4-4.2.15/hdf/test/vers.c
Examining data/libhdf4-4.2.15/hdf/test/chunks.c
Examining data/libhdf4-4.2.15/hdf/test/file.c
Examining data/libhdf4-4.2.15/hdf/util/decompress.c
Examining data/libhdf4-4.2.15/hdf/util/fp2hdf.c
Examining data/libhdf4-4.2.15/hdf/util/fptest.c
Examining data/libhdf4-4.2.15/hdf/util/getopt1.c
Examining data/libhdf4-4.2.15/hdf/util/getopt.c
Examining data/libhdf4-4.2.15/hdf/util/gif2mem.c
Examining data/libhdf4-4.2.15/hdf/util/gif.h
Examining data/libhdf4-4.2.15/hdf/util/hdf24to8.c
Examining data/libhdf4-4.2.15/hdf/util/hdf2jpeg.c
Examining data/libhdf4-4.2.15/hdf/util/hdfcomp.c
Examining data/libhdf4-4.2.15/hdf/util/hdfgifwr.c
Examining data/libhdf4-4.2.15/hdf/util/hdfls.c
Examining data/libhdf4-4.2.15/hdf/util/hdfpack.c
Examining data/libhdf4-4.2.15/hdf/util/hdftopal.c
Examining data/libhdf4-4.2.15/hdf/util/hdftor8.c
Examining data/libhdf4-4.2.15/hdf/util/hdfunpac.c
Examining data/libhdf4-4.2.15/hdf/util/he_cntrl.c
Examining data/libhdf4-4.2.15/hdf/util/he_file.c
Examining data/libhdf4-4.2.15/hdf/util/he.h
Examining data/libhdf4-4.2.15/hdf/util/he_main.c
Examining data/libhdf4-4.2.15/hdf/util/he_proto.h
Examining data/libhdf4-4.2.15/hdf/util/jpeg2hdf.c
Examining data/libhdf4-4.2.15/hdf/util/paltohdf.c
Examining data/libhdf4-4.2.15/hdf/util/r8tohdf.c
Examining data/libhdf4-4.2.15/hdf/util/ristosds.c
Examining data/libhdf4-4.2.15/hdf/util/vmake.c
Examining data/libhdf4-4.2.15/hdf/util/vshow.c
Examining data/libhdf4-4.2.15/hdf/util/hdf2gif.c
Examining data/libhdf4-4.2.15/hdf/util/gif2hdf.c
Examining data/libhdf4-4.2.15/hdf/util/gifread.c
Examining data/libhdf4-4.2.15/hdf/util/writehdf.c
Examining data/libhdf4-4.2.15/hdf/util/he_disp.c
Examining data/libhdf4-4.2.15/hdf/util/hdf8to24.c
Examining data/libhdf4-4.2.15/java/src/jni/h4jni.h
Examining data/libhdf4-4.2.15/java/src/jni/hdfanImp.c
Examining data/libhdf4-4.2.15/java/src/jni/hdfdfpalImp.c
Examining data/libhdf4-4.2.15/java/src/jni/hdfdfuImp.c
Examining data/libhdf4-4.2.15/java/src/jni/hdfexceptionImp.c
Examining data/libhdf4-4.2.15/java/src/jni/hdfgrImp.c
Examining data/libhdf4-4.2.15/java/src/jni/hdfheImp.c
Examining data/libhdf4-4.2.15/java/src/jni/hdfhxImp.c
Examining data/libhdf4-4.2.15/java/src/jni/hdfImp.c
Examining data/libhdf4-4.2.15/java/src/jni/hdfnativeImp.c
Examining data/libhdf4-4.2.15/java/src/jni/hdfr24Imp.c
Examining data/libhdf4-4.2.15/java/src/jni/hdfr8Imp.c
Examining data/libhdf4-4.2.15/java/src/jni/hdfsdsImp.c
Examining data/libhdf4-4.2.15/java/src/jni/hdfstructsutil.c
Examining data/libhdf4-4.2.15/java/src/jni/hdfvdataImp.c
Examining data/libhdf4-4.2.15/java/src/jni/hdfvfImp.c
Examining data/libhdf4-4.2.15/java/src/jni/hdfvgroupImp.c
Examining data/libhdf4-4.2.15/java/src/jni/hdfvhImp.c
Examining data/libhdf4-4.2.15/java/src/jni/hdfvqImp.c
Examining data/libhdf4-4.2.15/java/src/jni/hdfvsqImp.c
Examining data/libhdf4-4.2.15/mfhdf/dumper/hdp.c
Examining data/libhdf4-4.2.15/mfhdf/dumper/hdp_dump.c
Examining data/libhdf4-4.2.15/mfhdf/dumper/hdp_gr.c
Examining data/libhdf4-4.2.15/mfhdf/dumper/hdp.h
Examining data/libhdf4-4.2.15/mfhdf/dumper/hdp_list.c
Examining data/libhdf4-4.2.15/mfhdf/dumper/hdp_rig.c
Examining data/libhdf4-4.2.15/mfhdf/dumper/hdp_sds.c
Examining data/libhdf4-4.2.15/mfhdf/dumper/hdp_util.c
Examining data/libhdf4-4.2.15/mfhdf/dumper/hdp_vg.c
Examining data/libhdf4-4.2.15/mfhdf/dumper/show.c
Examining data/libhdf4-4.2.15/mfhdf/dumper/testfiles/manySDSs.c
Examining data/libhdf4-4.2.15/mfhdf/dumper/testfiles/vslongname.c
Examining data/libhdf4-4.2.15/mfhdf/dumper/hdp_vd.c
Examining data/libhdf4-4.2.15/mfhdf/examples/SD_alter_sds_values.c
Examining data/libhdf4-4.2.15/mfhdf/examples/SD_chunking_example.c
Examining data/libhdf4-4.2.15/mfhdf/examples/SD_compress_sds.c
Examining data/libhdf4-4.2.15/mfhdf/examples/SD_create_sds.c
Examining data/libhdf4-4.2.15/mfhdf/examples/SD_dimscale_vs_sds.c
Examining data/libhdf4-4.2.15/mfhdf/examples/SD_find_sds_by_name.c
Examining data/libhdf4-4.2.15/mfhdf/examples/SD_get_attr.c
Examining data/libhdf4-4.2.15/mfhdf/examples/SD_get_info.c
Examining data/libhdf4-4.2.15/mfhdf/examples/SD_mv_sds_to_external.c
Examining data/libhdf4-4.2.15/mfhdf/examples/SD_read_from_sds.c
Examining data/libhdf4-4.2.15/mfhdf/examples/SD_read_subsets.c
Examining data/libhdf4-4.2.15/mfhdf/examples/SD_set_attr.c
Examining data/libhdf4-4.2.15/mfhdf/examples/SD_set_get_dim_info.c
Examining data/libhdf4-4.2.15/mfhdf/examples/SD_unlimited_sds.c
Examining data/libhdf4-4.2.15/mfhdf/examples/SD_write_slab.c
Examining data/libhdf4-4.2.15/mfhdf/examples/SD_write_to_sds.c
Examining data/libhdf4-4.2.15/mfhdf/fortran/mfsdf.c
Examining data/libhdf4-4.2.15/mfhdf/fortran/mfsdf.h
Examining data/libhdf4-4.2.15/mfhdf/hdfimport/crtSDSfloats.c
Examining data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c
Examining data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimporttest.c
Examining data/libhdf4-4.2.15/mfhdf/hdfimport/gen_sds_floats.c
Examining data/libhdf4-4.2.15/mfhdf/hdiff/hdiff.c
Examining data/libhdf4-4.2.15/mfhdf/hdiff/hdiff.h
Examining data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_array.c
Examining data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_gattr.c
Examining data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_gr.c
Examining data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_list.c
Examining data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_list.h
Examining data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_main.c
Examining data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_misc.c
Examining data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_sds.c
Examining data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_table.c
Examining data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_table.h
Examining data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_vs.c
Examining data/libhdf4-4.2.15/mfhdf/hdiff/hdifftst.c
Examining data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_mattbl.c
Examining data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_mattbl.h
Examining data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_dim.c
Examining data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_dim.h
Examining data/libhdf4-4.2.15/mfhdf/hrepack/hrepack.c
Examining data/libhdf4-4.2.15/mfhdf/hrepack/hrepack.h
Examining data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_an.h
Examining data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_check.c
Examining data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_gr.c
Examining data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_gr.h
Examining data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_lsttable.c
Examining data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_lsttable.h
Examining data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_opttable.c
Examining data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_opttable.h
Examining data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_parse.c
Examining data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_parse.h
Examining data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_sds.h
Examining data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_utils.c
Examining data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_utils.h
Examining data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_vg.c
Examining data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_vg.h
Examining data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_vs.c
Examining data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_vs.h
Examining data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_dim.h
Examining data/libhdf4-4.2.15/mfhdf/hrepack/pal_rgb.h
Examining data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_an.c
Examining data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_list.c
Examining data/libhdf4-4.2.15/mfhdf/hrepack/hrepacktst.c
Examining data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_dim.c
Examining data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_main.c
Examining data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_sds.c
Examining data/libhdf4-4.2.15/mfhdf/libsrc/alloc.h
Examining data/libhdf4-4.2.15/mfhdf/libsrc/array.c
Examining data/libhdf4-4.2.15/mfhdf/libsrc/attr.c
Examining data/libhdf4-4.2.15/mfhdf/libsrc/cdf.c
Examining data/libhdf4-4.2.15/mfhdf/libsrc/dim.c
Examining data/libhdf4-4.2.15/mfhdf/libsrc/error.c
Examining data/libhdf4-4.2.15/mfhdf/libsrc/error.h
Examining data/libhdf4-4.2.15/mfhdf/libsrc/file.c
Examining data/libhdf4-4.2.15/mfhdf/libsrc/globdef.c
Examining data/libhdf4-4.2.15/mfhdf/libsrc/hdf2netcdf.h
Examining data/libhdf4-4.2.15/mfhdf/libsrc/hdfnctest.c
Examining data/libhdf4-4.2.15/mfhdf/libsrc/hdfsds.c
Examining data/libhdf4-4.2.15/mfhdf/libsrc/iarray.c
Examining data/libhdf4-4.2.15/mfhdf/libsrc/local_nc.h
Examining data/libhdf4-4.2.15/mfhdf/libsrc/mfdatainfo.c
Examining data/libhdf4-4.2.15/mfhdf/libsrc/mfdatainfo.h
Examining data/libhdf4-4.2.15/mfhdf/libsrc/mfhdf.h
Examining data/libhdf4-4.2.15/mfhdf/libsrc/mfhdfi.h
Examining data/libhdf4-4.2.15/mfhdf/libsrc/mfprivate.h
Examining data/libhdf4-4.2.15/mfhdf/libsrc/mfsd.c
Examining data/libhdf4-4.2.15/mfhdf/libsrc/nssdc.c
Examining data/libhdf4-4.2.15/mfhdf/libsrc/putget.c
Examining data/libhdf4-4.2.15/mfhdf/libsrc/putgetg.c
Examining data/libhdf4-4.2.15/mfhdf/libsrc/sharray.c
Examining data/libhdf4-4.2.15/mfhdf/libsrc/string.c
Examining data/libhdf4-4.2.15/mfhdf/libsrc/var.c
Examining data/libhdf4-4.2.15/mfhdf/libsrc/xdrstdio.c
Examining data/libhdf4-4.2.15/mfhdf/libsrc/xdrposix.c
Examining data/libhdf4-4.2.15/mfhdf/ncdump/dumplib.c
Examining data/libhdf4-4.2.15/mfhdf/ncdump/dumplib.h
Examining data/libhdf4-4.2.15/mfhdf/ncdump/ncdump.c
Examining data/libhdf4-4.2.15/mfhdf/ncdump/ncdump.h
Examining data/libhdf4-4.2.15/mfhdf/ncdump/vardata.c
Examining data/libhdf4-4.2.15/mfhdf/ncdump/vardata.h
Examining data/libhdf4-4.2.15/mfhdf/ncgen/close.c
Examining data/libhdf4-4.2.15/mfhdf/ncgen/escapes.c
Examining data/libhdf4-4.2.15/mfhdf/ncgen/generate.c
Examining data/libhdf4-4.2.15/mfhdf/ncgen/generic.h
Examining data/libhdf4-4.2.15/mfhdf/ncgen/genlib.c
Examining data/libhdf4-4.2.15/mfhdf/ncgen/genlib.h
Examining data/libhdf4-4.2.15/mfhdf/ncgen/getfill.c
Examining data/libhdf4-4.2.15/mfhdf/ncgen/init.c
Examining data/libhdf4-4.2.15/mfhdf/ncgen/load.c
Examining data/libhdf4-4.2.15/mfhdf/ncgen/main.c
Examining data/libhdf4-4.2.15/mfhdf/ncgen/ncgentab.c
Examining data/libhdf4-4.2.15/mfhdf/ncgen/ncgentab.h
Examining data/libhdf4-4.2.15/mfhdf/ncgen/ncgen.h
Examining data/libhdf4-4.2.15/mfhdf/ncgen/ncgenyy.c
Examining data/libhdf4-4.2.15/mfhdf/nctest/add.c
Examining data/libhdf4-4.2.15/mfhdf/nctest/add.h
Examining data/libhdf4-4.2.15/mfhdf/nctest/cdftests.c
Examining data/libhdf4-4.2.15/mfhdf/nctest/dimtests.c
Examining data/libhdf4-4.2.15/mfhdf/nctest/driver.c
Examining data/libhdf4-4.2.15/mfhdf/nctest/emalloc.c
Examining data/libhdf4-4.2.15/mfhdf/nctest/emalloc.h
Examining data/libhdf4-4.2.15/mfhdf/nctest/error.c
Examining data/libhdf4-4.2.15/mfhdf/nctest/error.h
Examining data/libhdf4-4.2.15/mfhdf/nctest/misctest.c
Examining data/libhdf4-4.2.15/mfhdf/nctest/rec.c
Examining data/libhdf4-4.2.15/mfhdf/nctest/slabs.c
Examining data/libhdf4-4.2.15/mfhdf/nctest/testcdf.h
Examining data/libhdf4-4.2.15/mfhdf/nctest/tests.h
Examining data/libhdf4-4.2.15/mfhdf/nctest/val.c
Examining data/libhdf4-4.2.15/mfhdf/nctest/val.h
Examining data/libhdf4-4.2.15/mfhdf/nctest/vardef.c
Examining data/libhdf4-4.2.15/mfhdf/nctest/varget_unlim.c
Examining data/libhdf4-4.2.15/mfhdf/nctest/varget.c
Examining data/libhdf4-4.2.15/mfhdf/nctest/vargetg.c
Examining data/libhdf4-4.2.15/mfhdf/nctest/varput.c
Examining data/libhdf4-4.2.15/mfhdf/nctest/varputg.c
Examining data/libhdf4-4.2.15/mfhdf/nctest/vartests.c
Examining data/libhdf4-4.2.15/mfhdf/nctest/vputget.c
Examining data/libhdf4-4.2.15/mfhdf/nctest/vputgetg.c
Examining data/libhdf4-4.2.15/mfhdf/nctest/atttests.c
Examining data/libhdf4-4.2.15/mfhdf/test/cdftest.c
Examining data/libhdf4-4.2.15/mfhdf/test/gen_sds_szipped.c
Examining data/libhdf4-4.2.15/mfhdf/test/hdfnctest.c
Examining data/libhdf4-4.2.15/mfhdf/test/hdftest.h
Examining data/libhdf4-4.2.15/mfhdf/test/tattdatainfo.c
Examining data/libhdf4-4.2.15/mfhdf/test/tattributes.c
Examining data/libhdf4-4.2.15/mfhdf/test/tchunk.c
Examining data/libhdf4-4.2.15/mfhdf/test/tcomp.c
Examining data/libhdf4-4.2.15/mfhdf/test/tcoordvar.c
Examining data/libhdf4-4.2.15/mfhdf/test/tdatainfo.c
Examining data/libhdf4-4.2.15/mfhdf/test/tdatasizes.c
Examining data/libhdf4-4.2.15/mfhdf/test/tdim.c
Examining data/libhdf4-4.2.15/mfhdf/test/temptySDSs.c
Examining data/libhdf4-4.2.15/mfhdf/test/texternal.c
Examining data/libhdf4-4.2.15/mfhdf/test/tfile.c
Examining data/libhdf4-4.2.15/mfhdf/test/tmixed_apis.c
Examining data/libhdf4-4.2.15/mfhdf/test/tncunlim.c
Examining data/libhdf4-4.2.15/mfhdf/test/tncvargetfill.c
Examining data/libhdf4-4.2.15/mfhdf/test/tnetcdf.c
Examining data/libhdf4-4.2.15/mfhdf/test/trank0.c
Examining data/libhdf4-4.2.15/mfhdf/test/tsd.c
Examining data/libhdf4-4.2.15/mfhdf/test/tsdsprops.c
Examining data/libhdf4-4.2.15/mfhdf/test/tszip.c
Examining data/libhdf4-4.2.15/mfhdf/test/tunlim.c
Examining data/libhdf4-4.2.15/mfhdf/test/tutils.c
Examining data/libhdf4-4.2.15/mfhdf/test/hdftest.c
Examining data/libhdf4-4.2.15/mfhdf/util/getopt.c
Examining data/libhdf4-4.2.15/mfhdf/xdr/NOTICE.h
Examining data/libhdf4-4.2.15/mfhdf/xdr/byteordr.c
Examining data/libhdf4-4.2.15/mfhdf/xdr/types.h
Examining data/libhdf4-4.2.15/mfhdf/xdr/xdrarray.c
Examining data/libhdf4-4.2.15/mfhdf/xdr/xdr.c
Examining data/libhdf4-4.2.15/mfhdf/xdr/xdrfloat.c
Examining data/libhdf4-4.2.15/mfhdf/xdr/xdr.h
Examining data/libhdf4-4.2.15/mfhdf/xdr/xdrstdio.c
Examining data/libhdf4-4.2.15/mfhdf/xdr/xdrtest.c
Examining data/libhdf4-4.2.15/debian/patches/hdfi.h

FINAL RESULTS:

data/libhdf4-4.2.15/mfhdf/test/cdftest.c:496:2:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
	gets(str);
data/libhdf4-4.2.15/mfhdf/test/cdftest.c:499:2:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
	gets(str);
data/libhdf4-4.2.15/mfhdf/test/tsd.c:60:14:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    status = chmod(FILE_NAME, mode);
data/libhdf4-4.2.15/mfhdf/test/tsd.c:80:14:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    status = chmod(FILE_NAME, mode);
data/libhdf4-4.2.15/config/cmake_ext_mod/HDFTests.c:46:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(formatString, "%%%sd", *currentArg);
data/libhdf4-4.2.15/config/cmake_ext_mod/HDFTests.c:47:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(s, formatString, x);
data/libhdf4-4.2.15/hdf/src/cnbit.c:804:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access_rec->access&DFACC_WRITE)
data/libhdf4-4.2.15/hdf/src/crle.c:519:28:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
          if ((access_rec->access&DFACC_WRITE) && rle_info->rle_state != RLE_INIT)
data/libhdf4-4.2.15/hdf/src/crle.c:703:22:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if ((access_rec->access&DFACC_WRITE) && rle_info->rle_state != RLE_INIT)
data/libhdf4-4.2.15/hdf/src/df.h:87:19:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      intn        access;       /* permitted access types: */
data/libhdf4-4.2.15/hdf/src/hbitio.c:262:22:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (bitfile_rec->access != 'w')
data/libhdf4-4.2.15/hdf/src/hbitio.c:318:22:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (bitfile_rec->access != 'w')
data/libhdf4-4.2.15/hdf/src/hbitio.h:45:19:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      uint8       access;       /* What the access on this file is ('r', 'w', etc..) */
data/libhdf4-4.2.15/hdf/src/hblocks.c:249:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (!(file_rec->access & DFACC_WRITE))
data/libhdf4-4.2.15/hdf/src/hblocks.c:456:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (!(file_rec->access & DFACC_WRITE))
data/libhdf4-4.2.15/hdf/src/hblocks.c:667:42:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (BADFREC(file_rec) || !(file_rec->access & acc_mode))
data/libhdf4-4.2.15/hdf/src/hblocks.c:1715:39:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        *paccess = (int16)access_rec->access;
data/libhdf4-4.2.15/hdf/src/hbuffer.c:478:39:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        *paccess = (int16)access_rec->access;
data/libhdf4-4.2.15/hdf/src/hchunks.c:982:42:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (BADFREC(file_rec) || !(file_rec->access & acc_mode))
data/libhdf4-4.2.15/hdf/src/hchunks.c:1249:27:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
          if (access_rec->access & DFACC_WRITE)
data/libhdf4-4.2.15/hdf/src/hchunks.c:1269:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(v_class,"%s%d",_HDF_CHK_TBL_CLASS,_HDF_CHK_TBL_CLASS_VER);
data/libhdf4-4.2.15/hdf/src/hchunks.c:1549:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (!(file_rec->access & DFACC_WRITE))
data/libhdf4-4.2.15/hdf/src/hchunks.c:1701:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(v_name,"%s%d_%d_%d_%d",_HDF_CHK_TBL_NAME,tag, ref,
data/libhdf4-4.2.15/hdf/src/hchunks.c:1707:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(v_class,"%s%d",_HDF_CHK_TBL_CLASS,_HDF_CHK_TBL_CLASS_VER);
data/libhdf4-4.2.15/hdf/src/hchunks.c:2546:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		    sprintf(v_class,"%s%d",_HDF_CHK_TBL_CLASS,_HDF_CHK_TBL_CLASS_VER);
data/libhdf4-4.2.15/hdf/src/hchunks.c:3036:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (!(file_rec->access & DFACC_READ))
data/libhdf4-4.2.15/hdf/src/hchunks.c:3565:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (!(file_rec->access & DFACC_WRITE))
data/libhdf4-4.2.15/hdf/src/hchunks.c:4293:39:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        *paccess = (int16)access_rec->access;
data/libhdf4-4.2.15/hdf/src/hcomp.c:831:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (!(file_rec->access & DFACC_WRITE))
data/libhdf4-4.2.15/hdf/src/hcomp.c:1175:42:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (BADFREC(file_rec) || !(file_rec->access & acc_mode))
data/libhdf4-4.2.15/hdf/src/hcomp.c:1520:39:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        *paccess = (int16)access_rec->access;
data/libhdf4-4.2.15/hdf/src/hcompri.c:408:39:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        *paccess = (int16)access_rec->access;
data/libhdf4-4.2.15/hdf/src/hdfi.h:1758:30:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
#  define HDstrcat(s1,s2)   (strcat((s1),(s2)))
data/libhdf4-4.2.15/hdf/src/hdfi.h:1760:30:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
#  define HDstrcpy(s,d)     (strcpy((s),(d)))
data/libhdf4-4.2.15/hdf/src/herr.c:51:19:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      intn        system;       /* for system or HDF error */
data/libhdf4-4.2.15/hdf/src/herr.c:217:11:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
          vsprintf(tmp, format, arg_ptr);
data/libhdf4-4.2.15/hdf/src/hextelt.c:118:43:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
            (accrec_t * access_rec, int16 access);
data/libhdf4-4.2.15/hdf/src/hextelt.c:212:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (!(file_rec->access & DFACC_WRITE))
data/libhdf4-4.2.15/hdf/src/hextelt.c:487:42:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (BADFREC(file_rec) || !(file_rec->access & acc_mode))
data/libhdf4-4.2.15/hdf/src/hextelt.c:697:70:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        info->file_external = (hdf_file_t)HI_OPEN(fname, access_rec->access);
data/libhdf4-4.2.15/hdf/src/hextelt.c:777:70:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        info->file_external = (hdf_file_t)HI_OPEN(fname, access_rec->access);
data/libhdf4-4.2.15/hdf/src/hextelt.c:895:39:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        *paccess = (int16)access_rec->access;
data/libhdf4-4.2.15/hdf/src/hfile.c:292:51:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      if ((acc_mode & DFACC_WRITE) && !(file_rec->access & DFACC_WRITE))
data/libhdf4-4.2.15/hdf/src/hfile.c:619:36:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    *paccess = (int16) access_rec->access;
data/libhdf4-4.2.15/hdf/src/hfile.c:663:26:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    *faccess = file_rec->access;
data/libhdf4-4.2.15/hdf/src/hfile.c:758:58:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access_rec == (accrec_t *) NULL || !(access_rec->access & DFACC_READ)
data/libhdf4-4.2.15/hdf/src/hfile.c:961:44:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  if ((flags & DFACC_WRITE) && !(file_rec->access & DFACC_WRITE))
data/libhdf4-4.2.15/hdf/src/hfile.c:1495:24:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      || !(access_rec->access & DFACC_WRITE)
data/libhdf4-4.2.15/hdf/src/hfile.c:2048:56:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  if (access_rec == (accrec_t *) NULL || !(access_rec->access & DFACC_WRITE))
data/libhdf4-4.2.15/hdf/src/hfile.h:275:19:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      intn        access;       /* access mode */
data/libhdf4-4.2.15/hdf/src/hfile.h:326:19:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      uint32      access;       /* access codes */
data/libhdf4-4.2.15/hdf/src/hproto.h:48:27:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
#define HQueryaccess(aid, access)     \
data/libhdf4-4.2.15/hdf/src/hproto.h:51:42:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
             (int32*)   NULL,   (int16*) access, (int16*)  NULL))
data/libhdf4-4.2.15/hdf/src/mfgr.c:2110:19:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (--gr_ptr->access)
data/libhdf4-4.2.15/hdf/src/mfgr.c:2116:20:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if(((file_rec->access)&DFACC_WRITE)!=0)
data/libhdf4-4.2.15/hdf/src/mfgr.c:3522:18:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if(!(ri_ptr->access>0))
data/libhdf4-4.2.15/hdf/src/mfgr.c:3537:18:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if(!(ri_ptr->access>0) && ri_ptr->img_aid!=0)
data/libhdf4-4.2.15/hdf/src/mfgr.h:72:17:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    intn        access;         /* the number of active pointers to this file's GRstuff */
data/libhdf4-4.2.15/hdf/src/mfgr.h:117:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    intn access;                /* the number of times this image has been selected */
data/libhdf4-4.2.15/hdf/src/vattr.c:862:40:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if ((vg->otag != DFTAG_VG) || (vg->access != 'w'))
data/libhdf4-4.2.15/hdf/src/vgint.h:126:19:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      intn        access;       /* 'r' or 'w' */
data/libhdf4-4.2.15/hdf/src/vgint.h:161:19:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      intn        access;       /* 'r' or 'w' */
data/libhdf4-4.2.15/hdf/src/vgint.h:238:19:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      intn        access;       /* the number of active pointers to this file's Vstuff */
data/libhdf4-4.2.15/hdf/src/vgp.c:553:15:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (--vf->access)
data/libhdf4-4.2.15/hdf/src/vgp.c:1248:57:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if((file_rec==NULL || acc_mode=='w') && !(file_rec->access&DFACC_WRITE))
data/libhdf4-4.2.15/hdf/src/vgp.c:1313:44:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                v->vg->access = MAX(v->vg->access, acc_mode);
data/libhdf4-4.2.15/hdf/src/vgp.c:1518:37:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (vg->otag != DFTAG_VG || vg->access != 'w')
data/libhdf4-4.2.15/hdf/src/vgp.c:2359:27:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (vg == NULL || vg->access!='w')
data/libhdf4-4.2.15/hdf/src/vgp.c:2431:27:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (vg == NULL || vg->access != 'w')
data/libhdf4-4.2.15/hdf/src/vgp.c:3192:20:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if(!(file_rec->access & DFACC_WRITE))
data/libhdf4-4.2.15/hdf/src/vrw.c:531:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (vs->access != 'w')
data/libhdf4-4.2.15/hdf/src/vsfld.c:669:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (vs->access != 'w')
data/libhdf4-4.2.15/hdf/test/bitio.c:168:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(datafile, srcdir);
data/libhdf4-4.2.15/hdf/test/bitio.c:171:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(datafile, DATAFILE_NAME);
data/libhdf4-4.2.15/hdf/test/buffer.c:165:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(fullname, base_name);
data/libhdf4-4.2.15/hdf/test/file1.c:68:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(fname, "%s%1d.hdf", TESTFILE_NAME, i);
data/libhdf4-4.2.15/hdf/test/forsupf.c:59:18:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    ret = (intf) system(fn);
data/libhdf4-4.2.15/hdf/test/forsupf.c:91:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(testfile, srcdir);
data/libhdf4-4.2.15/hdf/test/forsupf.c:94:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(testfile, c_name);
data/libhdf4-4.2.15/hdf/test/fortest.c:228:13:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    return (system("./fortestF"));
data/libhdf4-4.2.15/hdf/test/litend.c:92:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(filename, srcdir);
data/libhdf4-4.2.15/hdf/test/litend.c:95:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(filename, FILENAME);
data/libhdf4-4.2.15/hdf/test/mgr.c:259:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(datafile, srcdir);
data/libhdf4-4.2.15/hdf/test/mgr.c:262:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(datafile, DATAFILE);
data/libhdf4-4.2.15/hdf/test/mgr.c:1789:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(datafile, srcdir);
data/libhdf4-4.2.15/hdf/test/mgr.c:1792:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(datafile, DATAFILE);
data/libhdf4-4.2.15/hdf/test/mgr.c:2888:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(oldrlefile, srcdir);
data/libhdf4-4.2.15/hdf/test/mgr.c:2891:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(oldrlefile, OLDRLEFILE);
data/libhdf4-4.2.15/hdf/test/mgr.c:2958:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(oldgreyjpegfile, srcdir);
data/libhdf4-4.2.15/hdf/test/mgr.c:2961:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(oldgreyjpegfile, OLDGREYJPEGFILE);
data/libhdf4-4.2.15/hdf/test/mgr.c:3021:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(oldjpegfile, srcdir);
data/libhdf4-4.2.15/hdf/test/mgr.c:3024:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(oldjpegfile, OLDJPEGFILE);
data/libhdf4-4.2.15/hdf/test/mgr.c:3123:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(gr_r24file, srcdir);
data/libhdf4-4.2.15/hdf/test/mgr.c:3126:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(gr_r24file, GR_R24FILE);
data/libhdf4-4.2.15/hdf/test/mgr.c:3400:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(gr_r24file, srcdir);
data/libhdf4-4.2.15/hdf/test/mgr.c:3403:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(gr_r24file, GR_R24FILE);
data/libhdf4-4.2.15/hdf/test/testhdf.c:303:11:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
          system("rm -f *.hdf *.tmp");
data/libhdf4-4.2.15/hdf/test/tutils.c:65:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(tempfile, srcdir);
data/libhdf4-4.2.15/hdf/test/tutils.c:82:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(tempfile, basename);
data/libhdf4-4.2.15/hdf/util/fp2hdf.c:400:18:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          (void) fprintf(stderr, err1, argc);
data/libhdf4-4.2.15/hdf/util/fp2hdf.c:551:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/hdf/util/fp2hdf.c:565:42:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                                  (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/hdf/util/fp2hdf.c:636:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/hdf/util/fp2hdf.c:643:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err4, infile);
data/libhdf4-4.2.15/hdf/util/fp2hdf.c:665:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err2, inp->rank, infile);
data/libhdf4-4.2.15/hdf/util/fp2hdf.c:678:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/hdf/util/fp2hdf.c:687:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/hdf/util/fp2hdf.c:692:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/hdf/util/fp2hdf.c:702:18:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          (void) fprintf(stderr, err3, infile);
data/libhdf4-4.2.15/hdf/util/fp2hdf.c:740:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/hdf/util/fp2hdf.c:749:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/hdf/util/fp2hdf.c:757:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/hdf/util/fp2hdf.c:789:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/hdf/util/fp2hdf.c:801:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/hdf/util/fp2hdf.c:837:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/hdf/util/fp2hdf.c:842:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/hdf/util/fp2hdf.c:943:36:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                            (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/hdf/util/fp2hdf.c:952:36:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                            (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/hdf/util/fp2hdf.c:964:36:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                            (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/hdf/util/fp2hdf.c:973:36:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                            (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/hdf/util/fp2hdf.c:982:36:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                            (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/hdf/util/fp2hdf.c:1083:22:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
              (void) fprintf(stderr, err1, s);
data/libhdf4-4.2.15/hdf/util/fp2hdf.c:1119:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/hdf/util/fp2hdf.c:1124:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err2, infile);
data/libhdf4-4.2.15/hdf/util/fp2hdf.c:1138:30:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                      (void) fprintf(stderr, err2, infile);
data/libhdf4-4.2.15/hdf/util/fp2hdf.c:1148:30:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                      (void) fprintf(stderr, err3, infile);
data/libhdf4-4.2.15/hdf/util/fp2hdf.c:1731:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err1, palfile);
data/libhdf4-4.2.15/hdf/util/fp2hdf.c:1743:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err2, palfile);
data/libhdf4-4.2.15/hdf/util/fp2hdf.c:1748:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err1, palfile);
data/libhdf4-4.2.15/hdf/util/fp2hdf.c:1753:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err1, palfile);
data/libhdf4-4.2.15/hdf/util/fp2hdf.c:1758:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err1, palfile);
data/libhdf4-4.2.15/hdf/util/fp2hdf.c:1973:18:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          (void) fprintf(stderr, err1, opt->outfile);
data/libhdf4-4.2.15/hdf/util/fp2hdf.c:2138:30:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                      (void) fprintf(stderr, err3b, "Horiz.");
data/libhdf4-4.2.15/hdf/util/fp2hdf.c:2139:30:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                      (void) fprintf(stderr, err3c, "horiz.");
data/libhdf4-4.2.15/hdf/util/fp2hdf.c:2140:30:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                      (void) fprintf(stderr, err3d, in.dims[0]);
data/libhdf4-4.2.15/hdf/util/fp2hdf.c:2148:30:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                      (void) fprintf(stderr, err3b, "Vert.");
data/libhdf4-4.2.15/hdf/util/fp2hdf.c:2149:30:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                      (void) fprintf(stderr, err3c, "vert.");
data/libhdf4-4.2.15/hdf/util/fp2hdf.c:2150:30:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                      (void) fprintf(stderr, err3d, in.dims[1]);
data/libhdf4-4.2.15/hdf/util/fp2hdf.c:2163:36:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                            (void) fprintf(stderr, err3b, "Depth");
data/libhdf4-4.2.15/hdf/util/fp2hdf.c:2164:36:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                            (void) fprintf(stderr, err3c, "depth");
data/libhdf4-4.2.15/hdf/util/fp2hdf.c:2165:36:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                            (void) fprintf(stderr, err3d,
data/libhdf4-4.2.15/hdf/util/hdf2jpeg.c:98:23:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                      sprintf(scratch, jfif_name, image_desc.ref);
data/libhdf4-4.2.15/hdf/util/hdf2jpeg.c:175:23:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                      sprintf(scratch, jfif_name, image_desc.ref);
data/libhdf4-4.2.15/hdf/util/hdf2jpeg.c:248:23:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                      sprintf(scratch, jfif_name, image_desc.ref);
data/libhdf4-4.2.15/hdf/util/hdf2jpeg.c:315:23:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                      sprintf(scratch, jfif_name, image_desc.ref);
data/libhdf4-4.2.15/hdf/util/hdftor8.c:391:5:  [4] (buffer) scanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    scanf("%s", template);
data/libhdf4-4.2.15/hdf/util/hdfunpac.c:83:27:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                          strcpy(datafilename, *argv++);
data/libhdf4-4.2.15/hdf/util/hdfunpac.c:110:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(datafilename, DefaultDatafile);
data/libhdf4-4.2.15/hdf/util/he_file.c:128:15:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
          if (execl(editor, editor, file, 0) == -1)
data/libhdf4-4.2.15/hdf/util/he_file.c:144:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(cmd, "%s %s", editor, file);
data/libhdf4-4.2.15/hdf/util/he_file.c:145:13:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
            system(cmd);
data/libhdf4-4.2.15/hdf/util/he_main.c:217:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void) sprintf(s, "%she%d.%d", TDIR, (int)getpid(), count);
data/libhdf4-4.2.15/java/src/jni/hdfImp.c:38:50:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
(JNIEnv *env, jclass clss, jstring hdfFile, jint access, jint ndds)
data/libhdf4-4.2.15/java/src/jni/hdfImp.c:47:36:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        retVal = Hopen(file, (intn)access, (int16)ndds);
data/libhdf4-4.2.15/java/src/jni/hdfImp.c:375:51:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
(JNIEnv *env, jclass clss, jstring filename, jint access, jshort n_dds)
data/libhdf4-4.2.15/java/src/jni/hdfImp.c:382:43:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        rval = HDFopen((char *)str, (intn)access, (int16)n_dds);
data/libhdf4-4.2.15/java/src/jni/hdfsdsImp.c:38:51:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
(JNIEnv *env, jclass clss, jstring filename, jint access)
data/libhdf4-4.2.15/java/src/jni/hdfsdsImp.c:45:38:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        sdid = SDstart(fname, (int32)access);
data/libhdf4-4.2.15/java/src/jni/hdfvdataImp.c:36:20:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    const char    *access;
data/libhdf4-4.2.15/java/src/jni/hdfvdataImp.c:39:33:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    PIN_JAVA_STRING(accessmode, access);
data/libhdf4-4.2.15/java/src/jni/hdfvdataImp.c:41:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access != NULL) {
data/libhdf4-4.2.15/java/src/jni/hdfvdataImp.c:43:49:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        retVal = VSattach(id, (int32)vdata_ref, access);
data/libhdf4-4.2.15/java/src/jni/hdfvdataImp.c:45:39:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        UNPIN_JAVA_STRING(accessmode, access);
data/libhdf4-4.2.15/java/src/jni/hdfvgroupImp.c:52:18:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    const char  *access;
data/libhdf4-4.2.15/java/src/jni/hdfvgroupImp.c:55:33:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    PIN_JAVA_STRING(accessmode, access);
data/libhdf4-4.2.15/java/src/jni/hdfvgroupImp.c:57:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access != NULL) {
data/libhdf4-4.2.15/java/src/jni/hdfvgroupImp.c:59:49:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        retVal = Vattach(id, (int32)vgroup_ref, access);
data/libhdf4-4.2.15/java/src/jni/hdfvgroupImp.c:61:39:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        UNPIN_JAVA_STRING(accessmode, access);
data/libhdf4-4.2.15/java/src/jni/hdfvgroupImp.c:640:51:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
(JNIEnv *env, jclass clss, jstring filename, jint access, jshort ndds)
data/libhdf4-4.2.15/java/src/jni/hdfvgroupImp.c:648:42:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        rval = Vopen((char *)str, (intn) access, (int16) ndds);
data/libhdf4-4.2.15/mfhdf/dumper/hdp.h:74:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, txt, par1 ); \
data/libhdf4-4.2.15/mfhdf/dumper/hdp.h:79:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, txt, par1, par2); \
data/libhdf4-4.2.15/mfhdf/dumper/hdp.h:84:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, txt, par1, par2, par3); \
data/libhdf4-4.2.15/mfhdf/dumper/hdp.h:89:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, txt, par1, par2, par3, par4); \
data/libhdf4-4.2.15/mfhdf/dumper/hdp.h:94:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, txt, par1, par2, par3, par4, par5); \
data/libhdf4-4.2.15/mfhdf/dumper/hdp.h:99:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, txt, par1, par2, par3, par4, par5, par6); \
data/libhdf4-4.2.15/mfhdf/dumper/hdp.h:126:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, txt, par1 ); \
data/libhdf4-4.2.15/mfhdf/dumper/hdp.h:132:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, txt, par1, par2); \
data/libhdf4-4.2.15/mfhdf/dumper/hdp.h:138:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, txt, par1, par2, par3); \
data/libhdf4-4.2.15/mfhdf/dumper/hdp.h:144:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, txt, par1, par2, par3, par4); \
data/libhdf4-4.2.15/mfhdf/dumper/hdp.h:154:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, txt, par1, par2 ); \
data/libhdf4-4.2.15/mfhdf/dumper/hdp.h:179:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, txt, par1 ); \
data/libhdf4-4.2.15/mfhdf/dumper/hdp.h:185:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, txt, par1, par2); \
data/libhdf4-4.2.15/mfhdf/dumper/hdp.h:191:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, txt, par1, par2, par3 ); \
data/libhdf4-4.2.15/mfhdf/dumper/hdp.h:197:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, txt, par1, par2, par3, par4 ); \
data/libhdf4-4.2.15/mfhdf/dumper/hdp.h:208:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, txt, par1, par2 ); \
data/libhdf4-4.2.15/mfhdf/dumper/hdp.h:213:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, txt, par1, par2, par3 ); \
data/libhdf4-4.2.15/mfhdf/dumper/hdp_list.c:254:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf( error_item, "object tag=%d, ref=%d, in file %s", tag, ref, fname ); 
data/libhdf4-4.2.15/mfhdf/dumper/hdp_sds.c:788:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat (opt_mask_strg, numval);
data/libhdf4-4.2.15/mfhdf/fortran/mfsdf.c:827:27:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
nscstart(_fcd name, intf *access, intf *namelen)
data/libhdf4-4.2.15/mfhdf/fortran/mfsdf.c:829:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
nscstart(name, access, namelen)
data/libhdf4-4.2.15/mfhdf/fortran/mfsdf.c:831:11:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    intf *access;
data/libhdf4-4.2.15/mfhdf/fortran/mfsdf.c:840:31:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    ret = (intf) SDstart(fn, *access);
data/libhdf4-4.2.15/mfhdf/fortran/mfsdf.h:94:53:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
HDFFCLIBAPI FRETVAL(intf) nscstart(_fcd name, intf *access, intf *namelen);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:527:18:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          (void) fprintf(stderr, err1, argc);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:698:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(infile, infile_info.filename);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:723:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:739:42:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                                  (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:768:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:797:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:827:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:857:42:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                                  (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:956:20:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            (void) fprintf(stderr, err5, sd_index);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:970:20:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:978:20:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            (void) fprintf(stderr, err4, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1000:20:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            (void) fprintf(stderr, err2, in->rank, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1013:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1022:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1027:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1037:18:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          (void) fprintf(stderr, err3, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1076:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1084:16:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1092:16:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1123:16:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1131:16:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1161:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1173:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1204:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1216:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1245:16:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1254:12:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1285:16:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1294:16:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1349:16:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1354:16:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1364:16:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1369:16:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1379:16:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1384:16:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1395:16:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1400:16:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1411:16:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1416:16:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1524:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(infile, infile_info.filename);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1534:20:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1543:20:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1556:20:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1565:20:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1574:20:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1589:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1598:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1610:20:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1620:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1630:20:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1645:20:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1655:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1668:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1677:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1686:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1701:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1710:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1723:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1732:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1741:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1756:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1765:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1778:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1787:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1796:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1905:22:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
              (void) fprintf(stderr, err1, s);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1946:16:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        (void) fprintf(stderr, err1, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1951:16:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        (void) fprintf(stderr, err2, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1970:28:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                    (void) fprintf(stderr, err4, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1979:20:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            (void) fprintf(stderr, err4, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:2000:20:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            (void) fprintf(stderr, err3, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:2005:20:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            (void) fprintf(stderr, err4, infile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:2593:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err1, palfile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:2605:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err2, palfile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:2610:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err1, palfile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:2615:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err1, palfile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:2620:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                (void) fprintf(stderr, err1, palfile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:3066:18:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          (void) fprintf(stderr, err1, opt->outfile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:3074:12:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    (void) fprintf(stderr, err1a, opt->outfile);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:3101:16:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        (void) fprintf(stderr, err1a, opt->infiles[i].filename);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:3325:30:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                      (void) fprintf(stderr, err3b, "Horiz.");
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:3326:30:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                      (void) fprintf(stderr, err3c, "horiz.");
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:3327:30:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                      (void) fprintf(stderr, err3d, in.dims[0]);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:3335:30:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                      (void) fprintf(stderr, err3b, "Vert.");
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:3336:30:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                      (void) fprintf(stderr, err3c, "vert.");
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:3337:30:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                      (void) fprintf(stderr, err3d, in.dims[1]);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:3350:36:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                            (void) fprintf(stderr, err3b, "Depth");
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:3351:36:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                            (void) fprintf(stderr, err3c, "depth");
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:3352:36:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                            (void) fprintf(stderr, err3d, in.dims[2]);
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff.h:18:25:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define  Printf  (void) printf
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_array.c:284:12:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
           printf(SPACES);
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_array.c:285:12:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
           printf(I8FORMATP_NOTCOMP,*i1ptr1,*i1ptr2);
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_array.c:297:20:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                   printf(SPACES);
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_array.c:298:20:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                   printf(I8FORMATP,*i1ptr1,*i1ptr2,per*100);
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_array.c:309:6:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
     printf(SPACES);
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_array.c:310:6:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
     printf(I8FORMAT,*i1ptr1,*i1ptr2,abs(*i1ptr1-*i1ptr2));
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_array.c:373:12:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
           printf(SPACES);
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_array.c:374:12:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
           printf(I16FORMATP_NOTCOMP,*i2ptr1,*i2ptr2);
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_array.c:386:20:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                   printf(SPACES);
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_array.c:387:20:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                   printf(I16FORMATP,*i2ptr1,*i2ptr2,per*100);
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_array.c:399:6:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
     printf(SPACES);
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_array.c:400:6:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
     printf(I16FORMAT,*i2ptr1,*i2ptr2,abs(*i2ptr1-*i2ptr2));
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_array.c:460:13:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            printf(SPACES);
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_array.c:461:13:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            printf(IFORMATP_NOTCOMP,*i4ptr1,*i4ptr2);
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_array.c:473:21:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                    printf(SPACES);
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_array.c:474:21:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                    printf(IFORMATP,*i4ptr1,*i4ptr2,per*100);
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_array.c:485:6:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
     printf(SPACES);
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_array.c:486:6:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
     printf(IFORMAT,*i4ptr1,*i4ptr2,i4_diff);
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_array.c:549:12:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
           printf(SPACES);
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_array.c:550:12:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
           printf(FFORMATP_NOTCOMP,*fptr1,*fptr2);
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_array.c:562:20:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                   printf(SPACES);
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_array.c:563:20:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                   printf(FFORMATP,*fptr1,*fptr2,per*100);
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_array.c:574:6:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
     printf(SPACES);
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_array.c:575:6:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
     printf(FFORMAT,*fptr1,*fptr2,fabs(*fptr1-*fptr2));
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_array.c:634:12:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
           printf(SPACES);
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_array.c:635:12:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
           printf(FFORMATP_NOTCOMP,*dptr1,*dptr2);
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_array.c:647:20:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                   printf(SPACES);
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_array.c:648:20:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                   printf(FFORMATP,*dptr1,*dptr2,per*100);
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_array.c:660:6:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
     printf(SPACES);
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_array.c:661:6:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
     printf(FFORMAT,*dptr1,*dptr2,fabs(*dptr1-*dptr2));
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_misc.c:53:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
 (void) strcpy(newc, cp); /* copy last component of path */
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_misc.c:199:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
   (void) sprintf(gps, f_fmt, * gp.fp++);
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_misc.c:211:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
   (void) sprintf(gps, d_fmt, *gp.dp++);
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_misc.c:269:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(*cpp, cp);
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_table.c:76:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
 strcpy(table->objs[i].obj_name,path);
data/libhdf4-4.2.15/mfhdf/hrepack/hrepack.c:392:12:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
        rc=fscanf(fp, "%s", stype);
data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_dim.c:531:8:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
       printf(PFORMAT,
data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_gr.c:355:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(PFORMAT,
data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_list.c:238:17:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                printf(PFORMAT1,"","",obj_name);
data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_list.c:502:17:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                printf(PFORMAT,"","","",vg_name);  
data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_list.c:815:21:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                    printf(PFORMAT,"","","",path);    
data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_sds.c:1057:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf(PFORMAT,
data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_utils.c:89:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy( path, path_name );
data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_utils.c:91:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat( path, obj_name ); 
data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_utils.c:96:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy( path, obj_name ); 
data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_vs.c:99:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(PFORMAT,"","","",path);    
data/libhdf4-4.2.15/mfhdf/hrepack/hrepacktst.c:116:5:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    fscanf( f, "%s", str );
data/libhdf4-4.2.15/mfhdf/hrepack/hrepacktst.c:118:5:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    fscanf( f, "%s", str );
data/libhdf4-4.2.15/mfhdf/hrepack/hrepacktst.c:120:5:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    fscanf( f, "%s", str );
data/libhdf4-4.2.15/mfhdf/libsrc/error.c:68:1:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
vfprintf(stream, fmt, va_alist)
data/libhdf4-4.2.15/mfhdf/libsrc/error.c:115:16:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        (void) vfprintf(stderr,fmt,args) ;
data/libhdf4-4.2.15/mfhdf/libsrc/error.c:173:10:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		(void) vfprintf(stderr,fmt,args) ;
data/libhdf4-4.2.15/mfhdf/libsrc/file.c:591:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(tnbuf,proto) ;
data/libhdf4-4.2.15/mfhdf/libsrc/file.c:610:12:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    (void) strcat(begin, seed) ;
data/libhdf4-4.2.15/mfhdf/libsrc/file.c:633:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    for(*cp = 'a' ; access(tnbuf, 0) == 0 ; )
data/libhdf4-4.2.15/mfhdf/libsrc/file.c:987:11:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
          strcpy(realpath, stash->path) ;
data/libhdf4-4.2.15/mfhdf/libsrc/hdfsds.c:584:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(hremark,"%s-%d",_HDF_Remarks,i+1);
data/libhdf4-4.2.15/mfhdf/libsrc/hdfsds.c:704:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(hlabel,"%s-%d",_HDF_AnnoLabel,i+1);
data/libhdf4-4.2.15/mfhdf/libsrc/nssdc.c:331:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(dimname, "%s_REC", name);
data/libhdf4-4.2.15/mfhdf/libsrc/nssdc.c:519:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(dimname, "%s%d_%d", name, (int)rank, (int)dim_sz[j]);
data/libhdf4-4.2.15/mfhdf/libsrc/xdrstdio.c:303:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if( access(path, F_OK) != -1 )
data/libhdf4-4.2.15/mfhdf/ncdump/dumplib.c:49:12:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    (void) vfprintf(stderr,fmt,args) ;
data/libhdf4-4.2.15/mfhdf/ncdump/dumplib.c:109:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(formats[3], flt);
data/libhdf4-4.2.15/mfhdf/ncdump/dumplib.c:110:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(formats[4], dbl);
data/libhdf4-4.2.15/mfhdf/ncdump/ncdump.c:74:12:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    (void) strcpy(new, cp);	/* copy last component of path */
data/libhdf4-4.2.15/mfhdf/ncdump/ncdump.c:222:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	    (void) sprintf(gps, f_fmt, * gp.fp++);
data/libhdf4-4.2.15/mfhdf/ncdump/ncdump.c:234:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	    (void) sprintf(gps, d_fmt, *gp.dp++);
data/libhdf4-4.2.15/mfhdf/ncdump/ncdump.c:600:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(*cpp, cp);
data/libhdf4-4.2.15/mfhdf/ncdump/ncdump.h:7:25:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define  Printf  (void) printf
data/libhdf4-4.2.15/mfhdf/ncdump/vardata.c:79:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	    (void) sprintf(sout, fmt, *gp.cp++);
data/libhdf4-4.2.15/mfhdf/ncdump/vardata.c:83:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	(void) sprintf(sout, fmt, *gp.cp++);
data/libhdf4-4.2.15/mfhdf/ncdump/vardata.c:133:10:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		(void) sprintf(sout, fmt, *gp.cp++);
data/libhdf4-4.2.15/mfhdf/ncdump/vardata.c:137:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	    (void) sprintf(sout, fmt, *gp.cp++);
data/libhdf4-4.2.15/mfhdf/ncdump/vardata.c:144:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	    (void) sprintf(sout, fmt, *gp.sp++);
data/libhdf4-4.2.15/mfhdf/ncdump/vardata.c:148:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	(void) sprintf(sout, fmt, *gp.sp++);
data/libhdf4-4.2.15/mfhdf/ncdump/vardata.c:154:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	    (void) sprintf(sout, fmt, *gp.lp++);
data/libhdf4-4.2.15/mfhdf/ncdump/vardata.c:158:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	(void) sprintf(sout, fmt, *gp.lp++);
data/libhdf4-4.2.15/mfhdf/ncdump/vardata.c:167:10:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		(void) sprintf(sout, fmt, *gp.fp);
data/libhdf4-4.2.15/mfhdf/ncdump/vardata.c:176:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	  (void) sprintf(sout, fmt, *gp.fp);
data/libhdf4-4.2.15/mfhdf/ncdump/vardata.c:186:10:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		(void) sprintf(sout, fmt, *gp.dp);
data/libhdf4-4.2.15/mfhdf/ncdump/vardata.c:195:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	  (void) sprintf(sout, fmt, *gp.dp);
data/libhdf4-4.2.15/mfhdf/ncgen/close.c:25:23:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define fpr    (void) fprintf
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:113:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(stmnt, "main() {\t\t\t/* create %s */", filename);
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:125:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(s2,
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:137:6:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	    strcat(stmnt, s2);
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:152:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(s2, "%s_id%s",
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:163:6:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	    strcat(stmnt, s2);
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:189:10:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		(void) strcpy(type_name,ncctype(atts[iatt].type));
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:192:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		    sprintf(stmnt, "   %s  %s_val;", type_name, type_name);
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:213:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(stmnt,
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:227:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(stmnt,
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:239:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	  sprintf(stmnt,
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:244:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	  sprintf(stmnt,
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:258:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(stmnt,
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:265:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(stmnt,
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:272:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(stmnt,
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:291:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(stmnt,
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:303:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(stmnt, "   %s_val = %s;",
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:307:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(stmnt,
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:321:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		    sprintf(stmnt, "   %s_%s[%d] = %s;",
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:330:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(stmnt,
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:434:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(s2, "%sdim%s", dims[idim].name,
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:443:6:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	    strcat(stmnt, s2);
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:457:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(s2, "%sid%s", vars[ivar].name,
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:466:6:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	    strcat(stmnt, s2);
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:491:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		    sprintf(stmnt, "%s %s", ncftype(vars[ivar].type),
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:495:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		    sprintf(stmnt, "%s %s(", ncftype(vars[ivar].type),
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:500:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
			strcat(stmnt, s2);
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:506:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		    strcat(stmnt, s2);
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:517:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(stmnt, "%s*%d %s", ncftype(vars[ivar].type),
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:540:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(stmnt, "%s  %sval(%d)", ncftype(types[itype]),
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:550:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(stmnt, "ncid = nccre (\'%s\', NCCLOB, iret)", filename);
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:558:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	  sprintf(stmnt, "%sdim = ncddef(ncid, \'%s\', NCUNLIM, iret)",
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:561:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	  sprintf(stmnt, "%sdim = ncddef(ncid, \'%s\', %d, iret)",
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:571:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(stmnt, "dims(%d) = %sdim",
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:577:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(stmnt, 
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:584:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(stmnt, 
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:602:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(stmnt, 
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:614:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		    sprintf(stmnt, "%sval(%d) = %s",
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:622:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(stmnt,
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:1002:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat(cp, tstr);
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:1028:6:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	    strcat(cp, tstr);
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:1054:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	(void) strcpy(filename,netcdfname);
data/libhdf4-4.2.15/mfhdf/ncgen/genlib.c:51:12:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    (void) vfprintf(stderr,fmt,args) ;
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:94:23:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define fpr    (void) fprintf
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:145:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(stmnt, "   {\t\t\t/* store %s */", vars[varnum].name);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:149:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(stmnt, "    static long %s_start[] = {", vars[varnum].name);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:151:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	  sprintf(s2, "%ld%s",
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:155:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	  sprintf(s2, "%d%s",
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:158:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat(stmnt, s2);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:160:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(s2, "%d%s",
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:163:6:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	    strcat(stmnt, s2);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:168:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(stmnt, "    static long %s_edges[] = {", vars[varnum].name);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:170:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	  sprintf(s2, "%d%s",
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:174:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	  sprintf(s2, "%ld%s",
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:177:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat(stmnt, s2);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:179:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(s2, "%ld%s",
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:182:6:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	    strcat(stmnt, s2);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:187:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(stmnt, "    static %s %s[] = {",
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:195:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(s2, "%s", val_string);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:196:6:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	    strcat(stmnt, s2);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:243:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		  strcat(stmnt, s2);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:246:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		    strcpy(stmnt,s2);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:273:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		  strcat(stmnt, s2);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:276:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		    strcpy(stmnt,s2);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:284:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(stmnt,
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:294:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(stmnt, "    static %s %s = {",
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:301:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(s2, "%s", val_string);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:302:6:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	    strcat(stmnt, s2);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:308:6:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	    strcat(stmnt, s2);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:313:6:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	    strcat(stmnt, s2);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:318:6:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	    strcat(stmnt, s2);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:323:6:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	    strcat(stmnt, s2);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:329:6:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	    strcat(stmnt, s2);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:336:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(stmnt,
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:362:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(s, t);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:365:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat(s, t);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:386:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(stmnt, "* store %s", vars[varnum].name);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:421:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(stmnt, "data %s /",vars[varnum].name);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:428:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(s2, "%s, ", val_string);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:481:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(stmnt, "call ncvpt(ncid, %sid, corner, edges, %s, iret)",
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:487:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(stmnt, "%s = %s",vars[varnum].name, val_string);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:497:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(stmnt, "call ncvptc(ncid, %sid, corner, edges, %s, %d, iret)",
data/libhdf4-4.2.15/mfhdf/ncgen/main.c:97:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	  strcpy(netcdf_name,optarg);
data/libhdf4-4.2.15/mfhdf/ncgen/main.c:125:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(cdlname, argv[0]);
data/libhdf4-4.2.15/mfhdf/ncgen/ncgentab.c:780:21:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define YYFPRINTF fprintf
data/libhdf4-4.2.15/mfhdf/ncgen/ncgentab.c:1553:15:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		     (void) strcpy(dims[ndims].name, (yyvsp[(1) - (1)])->name);
data/libhdf4-4.2.15/mfhdf/ncgen/ncgentab.c:1601:14:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		    (void) strcpy(vars[nvars].name, (yyvsp[(1) - (1)])->name);
data/libhdf4-4.2.15/mfhdf/ncgen/ncgentab.c:1699:17:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		       (void) strcpy(atts[natts].name,(yyvsp[(1) - (1)])->name);
data/libhdf4-4.2.15/mfhdf/ncgen/ncgentab.c:2388:12:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    (void) strcpy (sp -> name, sname);
data/libhdf4-4.2.15/mfhdf/ncgen/ncgenyy.c:950:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(errstr,"bad long or double constant: %s",(char*)yytext);
data/libhdf4-4.2.15/mfhdf/ncgen/ncgenyy.c:961:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(errstr,"bad float constant: %s",(char*)yytext);
data/libhdf4-4.2.15/mfhdf/ncgen/ncgenyy.c:972:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(errstr,"bad short constant: %s",(char*)yytext);
data/libhdf4-4.2.15/mfhdf/ncgen/ncgenyy.c:990:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(errstr,"bad long constant: %s",(char*)yytext);
data/libhdf4-4.2.15/mfhdf/ncgen/ncgenyy.c:1014:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(errstr,"bad long constant: %s",(char*)yytext);
data/libhdf4-4.2.15/mfhdf/nctest/add.c:48:12:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    (void) strcpy(test->dims[test->ndims].name, idim->name);
data/libhdf4-4.2.15/mfhdf/nctest/add.c:69:12:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    (void) strcpy(test->vars[test->nvars].name, ivar->name);
data/libhdf4-4.2.15/mfhdf/nctest/add.c:107:12:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    (void) strcpy(test->atts[test->natts].name, iatt->name);
data/libhdf4-4.2.15/mfhdf/nctest/atttests.c:202:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	(void) strcpy (tmp.name, atts[ia-1].name);
data/libhdf4-4.2.15/mfhdf/nctest/atttests.c:282:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	(void) strcpy (tmp.name, atts[ia+1].name);
data/libhdf4-4.2.15/mfhdf/nctest/atttests.c:1131:12:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    (void) strcpy(test.atts[ynum].name, newname); /* keep test consistent */
data/libhdf4-4.2.15/mfhdf/nctest/dimtests.c:368:12:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    (void) strcpy(test.dims[pp_dim].name, newname); /* keep test consistent */
data/libhdf4-4.2.15/mfhdf/nctest/dimtests.c:392:12:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    (void) strcpy(test.dims[pp_dim].name, pp.name); /* keep test consistent */
data/libhdf4-4.2.15/mfhdf/nctest/error.c:49:12:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    (void) vfprintf(stderr,fmt,args) ;
data/libhdf4-4.2.15/mfhdf/nctest/varget_unlim.c:71:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(testfile, srcdir);
data/libhdf4-4.2.15/mfhdf/nctest/varget_unlim.c:78:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(testfile, basefile);
data/libhdf4-4.2.15/mfhdf/nctest/vartests.c:631:12:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    (void) strcpy(test.vars[yy_id].name, newname); /* keep test consistent */
data/libhdf4-4.2.15/mfhdf/nctest/vartests.c:657:12:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    (void) strcpy(test.vars[yy_id].name, shortname); /* keep test consistent */
data/libhdf4-4.2.15/mfhdf/test/tcoordvar.c:620:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(line,"#%d Coordinate %d-dim '%s'\n", idx, array_rank, 
data/libhdf4-4.2.15/mfhdf/test/tcoordvar.c:623:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(line,"#%d SDS        %d-dim '%s'\n", idx, array_rank, 
data/libhdf4-4.2.15/mfhdf/test/tdatainfo.c:43:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf sprintf_s
data/libhdf4-4.2.15/mfhdf/test/tdatasizes.c:58:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(mesg, "check_datasizes: SDnametoindex (%s)", sds_name);
data/libhdf4-4.2.15/mfhdf/test/tdatasizes.c:68:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(mesg, "SDgetdatasize: SDS named (%s)", sds_name);
data/libhdf4-4.2.15/mfhdf/test/temptySDSs.c:57:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(mesg, "In check_empty_SDS: SDnametoindex (%s)", sds_name);
data/libhdf4-4.2.15/mfhdf/test/temptySDSs.c:95:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(mesg, "In check_getchunkinfo: SDnametoindex (%s)", sds_name);
data/libhdf4-4.2.15/mfhdf/test/tnetcdf.c:63:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(testfile, srcdir);
data/libhdf4-4.2.15/mfhdf/test/tnetcdf.c:79:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(testfile, NC_FILE);
data/libhdf4-4.2.15/mfhdf/test/tnetcdf.c:156:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(testfile, srcdir);
data/libhdf4-4.2.15/mfhdf/test/tnetcdf.c:172:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(testfile, basename);
data/libhdf4-4.2.15/mfhdf/test/tunlim.c:85:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(info, "%s on <%s>", "SDgetinfo", ds_name);
data/libhdf4-4.2.15/mfhdf/test/tunlim.c:93:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(info, "%s on <%s>", "SDreaddata", ds_name);
data/libhdf4-4.2.15/mfhdf/test/tutils.c:41:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(tempfile, srcdir);
data/libhdf4-4.2.15/mfhdf/test/tutils.c:58:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(tempfile, basename);
data/libhdf4-4.2.15/mfhdf/test/tutils.c:363:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(msg, "%s on data set %s\n", "SDgetdatasize", sds_name);
data/libhdf4-4.2.15/hdf/src/hdfi.h:1782:34:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
#define HDgetenv(s1)            (getenv(s1))
data/libhdf4-4.2.15/hdf/test/bitio.c:53:17:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define SEED(a) srand(a)
data/libhdf4-4.2.15/hdf/test/bitio.c:159:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char       *srcdir = getenv("srcdir");
data/libhdf4-4.2.15/hdf/test/buffer.c:71:17:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define SEED(a) srand((unsigned)(a))
data/libhdf4-4.2.15/hdf/test/buffer.c:147:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    prefix = getenv("HDF4_TESTPREFIX");
data/libhdf4-4.2.15/hdf/test/comp.c:55:17:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define SEED(a) srand((unsigned)(a))
data/libhdf4-4.2.15/hdf/test/conv.c:64:17:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define SEED(a) srand((unsigned)(a))
data/libhdf4-4.2.15/hdf/test/forsupf.c:83:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char   *srcdir = getenv("srcdir");
data/libhdf4-4.2.15/hdf/test/litend.c:84:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char       *srcdir = getenv("srcdir");
data/libhdf4-4.2.15/hdf/test/mgr.c:250:20:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char *srcdir = getenv("srcdir");
data/libhdf4-4.2.15/hdf/test/mgr.c:1782:20:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char *srcdir = getenv("srcdir");
data/libhdf4-4.2.15/hdf/test/mgr.c:2884:20:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char *srcdir = getenv("srcdir");
data/libhdf4-4.2.15/hdf/test/mgr.c:2954:20:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char *srcdir = getenv("srcdir");
data/libhdf4-4.2.15/hdf/test/mgr.c:3017:20:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char *srcdir = getenv("srcdir");
data/libhdf4-4.2.15/hdf/test/mgr.c:3119:20:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char *srcdir = getenv("srcdir");
data/libhdf4-4.2.15/hdf/test/mgr.c:3395:20:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char *srcdir = getenv("srcdir");
data/libhdf4-4.2.15/hdf/test/tree.c:43:23:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define SEED(s)      (srand(s))
data/libhdf4-4.2.15/hdf/test/tutils.c:56:20:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char *srcdir = getenv("srcdir");
data/libhdf4-4.2.15/hdf/util/getopt.c:178:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
char *getenv ();
data/libhdf4-4.2.15/hdf/util/getopt.c:375:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      else if (getenv ("POSIXLY_CORRECT") != NULL)
data/libhdf4-4.2.15/hdf/util/getopt.c:674:1:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
getopt (argc, argv, optstring)
data/libhdf4-4.2.15/hdf/util/getopt.c:704:11:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      c = getopt (argc, argv, "abc:d:0123456789");
data/libhdf4-4.2.15/hdf/util/getopt1.c:58:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
char *getenv ();
data/libhdf4-4.2.15/hdf/util/getopt1.c:66:1:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
getopt_long (argc, argv, options, long_options, opt_index)
data/libhdf4-4.2.15/hdf/util/getopt1.c:122:11:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      c = getopt_long (argc, argv, "abc:d:0123456789",
data/libhdf4-4.2.15/hdf/util/he_file.c:119:29:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
          editor = (char *) getenv("EDITOR");
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_array.c:172:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
 debug = getenv("DEBUG");
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_main.c:109:17:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((c = getopt(argc, argv, "VbgsdSDe:t:v:u:p:")) != EOF)
data/libhdf4-4.2.15/mfhdf/hrepack/hrepacktst.c:977:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char   *srcdir = getenv("srcdir"); /* the source directory */
data/libhdf4-4.2.15/mfhdf/hrepack/hrepacktst.c:1333:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char   *srcdir = getenv("srcdir"); /* the source directory */
data/libhdf4-4.2.15/mfhdf/hrepack/hrepacktst.c:1408:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char   *srcdir = getenv("srcdir");  /* the source directory */
data/libhdf4-4.2.15/mfhdf/libsrc/file.c:986:16:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
          char realpath[FILENAME_MAX + 1] ;
data/libhdf4-4.2.15/mfhdf/libsrc/file.c:987:18:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
          strcpy(realpath, stash->path) ;
data/libhdf4-4.2.15/mfhdf/libsrc/file.c:993:22:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
          if( remove(realpath) != 0 )
data/libhdf4-4.2.15/mfhdf/libsrc/file.c:994:60:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
              nc_serror("couldn't remove filename \"%s\"", realpath) ;
data/libhdf4-4.2.15/mfhdf/libsrc/file.c:996:36:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
          if( rename(handle->path, realpath) != 0)
data/libhdf4-4.2.15/mfhdf/libsrc/file.c:998:67:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
                nc_serror("rename %s -> %s failed", handle->path, realpath) ;
data/libhdf4-4.2.15/mfhdf/libsrc/file.c:1013:40:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
          (void) strncpy(handle->path, realpath, FILENAME_MAX) ;
data/libhdf4-4.2.15/mfhdf/ncdump/ncdump.c:673:17:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((c = getopt(argc, argv, "b:cf:hul:n:v:d:V")) != EOF)
data/libhdf4-4.2.15/mfhdf/ncdump/ncdump.h:84:12:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt               PROTO((
data/libhdf4-4.2.15/mfhdf/ncgen/genlib.h:59:17:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int      getopt          PROTO((
data/libhdf4-4.2.15/mfhdf/ncgen/main.c:73:17:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((c = getopt(argc, argv, "Vbcfno:")) != EOF)
data/libhdf4-4.2.15/mfhdf/nctest/varget_unlim.c:56:20:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char *srcdir = getenv("srcdir");
data/libhdf4-4.2.15/mfhdf/test/tnetcdf.c:25:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
#define srcdir getenv("srcdir")
data/libhdf4-4.2.15/mfhdf/test/tutils.c:31:20:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char *srcdir = getenv("srcdir");
data/libhdf4-4.2.15/mfhdf/util/getopt.c:33:1:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
getopt(argc, argv, opts)
data/libhdf4-4.2.15/config/cmake_ext_mod/HDFTests.c:45:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char formatString[64];
data/libhdf4-4.2.15/config/cmake_ext_mod/HDFTests.c:83:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *file = fopen( argv[0], "r" );
data/libhdf4-4.2.15/hdf/examples/GR_get_attribute.c:19:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char   attr_name[H4_MAX_GR_NAME];  /* buffer to hold the attribute name     */
data/libhdf4-4.2.15/hdf/examples/GR_image_info.c:19:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char  name[H4_MAX_GR_NAME], /* name of an image */
data/libhdf4-4.2.15/hdf/examples/GR_modify_image.c:35:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char  image2_buf[Y2_LENGTH][X2_LENGTH][N2_COMPS]; /* data of second image*/
data/libhdf4-4.2.15/hdf/examples/VD_get_vdata_info.c:16:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char  fieldname_list[FIELD_SIZE], /* buffer to retrieve the vdata data   */
data/libhdf4-4.2.15/hdf/examples/VD_read_mixed_vdata.c:23:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char  idents[N_RECORDS];     /* buffer to hold values of fourth field    */
data/libhdf4-4.2.15/hdf/examples/VD_set_get_vdata_attr.c:27:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char  vd_attr[VATTR_N_VALUES] = {'A', 'B', 'C'};/* vdata attribute values*/
data/libhdf4-4.2.15/hdf/examples/VD_set_get_vdata_attr.c:29:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char  vattr_buf[VATTR_N_VALUES];     /* to hold vdata attribute's values */
data/libhdf4-4.2.15/hdf/examples/VD_set_get_vdata_attr.c:31:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char  vattr_name[30],                /* name of vdata attribute */
data/libhdf4-4.2.15/hdf/examples/VG_set_get_vgroup_attr.c:18:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char   vg_attr[N_ATT_VALUES] = {'v','g','r','o','u','p','\0'};
data/libhdf4-4.2.15/hdf/examples/VG_set_get_vgroup_attr.c:19:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char   vgattr_buf[N_ATT_VALUES], attr_name[30];
data/libhdf4-4.2.15/hdf/src/dfan.c:63:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char Lastfile[DF_MAXFNLEN] = "";     /* last file opened */
data/libhdf4-4.2.15/hdf/src/dfi.h:53:33:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define DFmovmem(from, to, len) bcopy(from, to, len)
data/libhdf4-4.2.15/hdf/src/dfi.h:76:33:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define DFmovmem(from, to, len) memcpy(to, from, len)
data/libhdf4-4.2.15/hdf/src/dfi.h:103:33:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define DFmovmem(from, to, len) memcpy(to, from, len)
data/libhdf4-4.2.15/hdf/src/dfi.h:121:22:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#define DF_OPEN(x,y) fopen(x,y)
data/libhdf4-4.2.15/hdf/src/dfi.h:134:22:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#define DF_OPEN(x,y) open(x,y)
data/libhdf4-4.2.15/hdf/src/dfimcomp.c:120:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char raster[48];
data/libhdf4-4.2.15/hdf/src/dfp.c:40:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
PRIVATE char Lastfile[DF_MAXFNLEN] = "";    /* last file opened */
data/libhdf4-4.2.15/hdf/src/dfr8.c:66:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
PRIVATE char Lastfile[DF_MAXFNLEN];     /* last file opened */
data/libhdf4-4.2.15/hdf/src/dfsd.c:185:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
PRIVATE char Lastfile[DF_MAXFNLEN] = "";    /* last file opened */
data/libhdf4-4.2.15/hdf/src/dfsd.h:43:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char *dataluf[3];   /* label/unit/format of data */
data/libhdf4-4.2.15/hdf/src/dfsd.h:44:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char **dimluf[3];   /* label/unit/format for each dim */
data/libhdf4-4.2.15/hdf/src/dfstubs.c:1288:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char        MYtbuf[12];   /* My own tbuf so that the content
data/libhdf4-4.2.15/hdf/src/dfufp2i.h:44:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char        outfile[32];  /* output file name */
data/libhdf4-4.2.15/hdf/src/hchunks.c:971:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        name[VSNAMELENMAX + 1];  /* Vdata name */
data/libhdf4-4.2.15/hdf/src/hchunks.c:972:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        class[VSNAMELENMAX + 1]; /* Vdata class */
data/libhdf4-4.2.15/hdf/src/hchunks.c:973:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        v_class[VSNAMELENMAX + 1] = ""; /* Vdata class for comparison */
data/libhdf4-4.2.15/hdf/src/hchunks.c:1533:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        v_name[VSNAMELENMAX + 1] = "";/* name of vdata i.e. chunk table */
data/libhdf4-4.2.15/hdf/src/hchunks.c:1534:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        v_class[VSNAMELENMAX + 1] = ""; /* Vdata class */
data/libhdf4-4.2.15/hdf/src/hchunks.c:2453:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char         vsname[VSNAMELENMAX + 1];  /* Vdata name */
data/libhdf4-4.2.15/hdf/src/hchunks.c:2454:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char         v_class[VSNAMELENMAX + 1] = ""; /* Vdata class for comparison */
data/libhdf4-4.2.15/hdf/src/hchunks.c:2455:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char         vsclass[VSNAMELENMAX + 1]; /* Vdata class */
data/libhdf4-4.2.15/hdf/src/hconv.h:156:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      unsigned char c[4];
data/libhdf4-4.2.15/hdf/src/hdf.h:136:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char type_name[9];    /* longest possible string "float128" */
data/libhdf4-4.2.15/hdf/src/hdf.h:137:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char byte_order[13];   /* "bigEndian" or "littleEndian" */
data/libhdf4-4.2.15/hdf/src/hdfi.h:1773:33:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
# define HDmemcpy(dst,src,n)   (memcpy((void *)(dst),(const void *)(src),(size_t)(n)))
data/libhdf4-4.2.15/hdf/src/herr.c:48:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char function_name[FUNC_NAME_LEN];    /* function where error occur */
data/libhdf4-4.2.15/hdf/src/herrf.c:82:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    err_file = fopen(c_name, "a");
data/libhdf4-4.2.15/hdf/src/hfile.c:2951:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char        string[LIBVSTR_LEN + 1];	/* len 80+1  */
data/libhdf4-4.2.15/hdf/src/hfile.c:3246:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char        b[MAGICLEN];	/* Temporary buffer */
data/libhdf4-4.2.15/hdf/src/hfile.h:76:33:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                                fopen((p), "r+") : fopen((p), "r"))
data/libhdf4-4.2.15/hdf/src/hfile.h:76:52:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                                fopen((p), "r+") : fopen((p), "r"))
data/libhdf4-4.2.15/hdf/src/hfile.h:77:33:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#   define HI_CREATE(p)        (fopen((p), "w+"))
data/libhdf4-4.2.15/hdf/src/hfile.h:80:33:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                                fopen((p), "rb+") : fopen((p), "rb"))
data/libhdf4-4.2.15/hdf/src/hfile.h:80:53:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                                fopen((p), "rb+") : fopen((p), "rb"))
data/libhdf4-4.2.15/hdf/src/hfile.h:81:33:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#   define HI_CREATE(p)        (fopen((p), "wb+"))
data/libhdf4-4.2.15/hdf/src/hfile.h:100:37:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                                    open((p), O_RDWR) : open((p), O_RDONLY))
data/libhdf4-4.2.15/hdf/src/hfile.h:100:57:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                                    open((p), O_RDWR) : open((p), O_RDONLY))
data/libhdf4-4.2.15/hdf/src/hfile.h:101:34:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#   define HI_CREATE(p)         (open((p), O_RDWR | O_CREAT | O_TRUNC, 0666))
data/libhdf4-4.2.15/hdf/src/hfile.h:231:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char        string[LIBVSTR_LEN + 1];  /* optional text description, len 80+1 */
data/libhdf4-4.2.15/hdf/src/hkit.c:216:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                  ret = (char *) HDstrdup(tag_descriptions[i].name);
data/libhdf4-4.2.15/hdf/src/hkit.c:283:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        ret_desc = (char *) HDstrdup(nt_descriptions[0].desc);
data/libhdf4-4.2.15/hdf/src/hkit.c:285:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        ret_desc = (char *) HDstrdup(nt_descriptions[1].desc);
data/libhdf4-4.2.15/hdf/src/hkit.c:287:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        ret_desc = (char *) HDstrdup(nt_descriptions[2].desc);
data/libhdf4-4.2.15/hdf/src/hkit.c:294:31:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                  ret_desc = (char *) HDstrdup(nt_descriptions[i].desc);
data/libhdf4-4.2.15/hdf/src/hproto.h:1145:43:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
HDFLIBAPI int32 GRcreate(int32 grid,const char *name,int32 ncomp,int32 nt,int32 il,
data/libhdf4-4.2.15/hdf/src/hproto.h:1152:39:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
HDFLIBAPI intn GRgetiminfo(int32 riid,char *name,int32 *ncomp,int32 *nt,int32 *il,
data/libhdf4-4.2.15/hdf/src/maldebug.c:641:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fp = fopen("impro.err", "wt+")) != NULL)
data/libhdf4-4.2.15/hdf/src/mfgr.c:635:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char textbuf[VGNAMELENMAX + 1];    /* buffer to store the name in */
data/libhdf4-4.2.15/hdf/src/mfgr.c:707:33:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                                sprintf(textbuf,"Attribute #%d",(int)new_attr->index);
data/libhdf4-4.2.15/hdf/src/mfgr.c:874:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                  char textbuf[VGNAMELENMAX + 1];    /* buffer to store the name in */
data/libhdf4-4.2.15/hdf/src/mfgr.c:897:27:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                          sprintf(new_image->name,"Raster Image #%d",(int)i);
data/libhdf4-4.2.15/hdf/src/mfgr.c:1042:41:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                                        sprintf(textbuf,"Attribute #%d",(int)new_attr->index);
data/libhdf4-4.2.15/hdf/src/mfgr.c:1091:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                  char textbuf[VGNAMELENMAX + 1];    /* buffer to store the name in */
data/libhdf4-4.2.15/hdf/src/mfgr.c:1110:19:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                  sprintf(textbuf,"Raster Image #%d",(int)i);
data/libhdf4-4.2.15/hdf/src/mfgr.c:1247:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                  char textbuf[VGNAMELENMAX + 1];    /* buffer to store the name in */
data/libhdf4-4.2.15/hdf/src/mfgr.c:1261:19:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                  sprintf(textbuf,"Raster Image #%d",(int)i);
data/libhdf4-4.2.15/hdf/src/mfgr.c:2403:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int32 GRcreate(int32 grid,const char *name,int32 ncomp,int32 nt,int32 il,int32 dimsizes[2])
data/libhdf4-4.2.15/hdf/src/mfgr.c:2596:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
intn GRgetiminfo(int32 riid,char *name,int32 *ncomp,int32 *nt,int32 *il,
data/libhdf4-4.2.15/hdf/src/vattr.c:702:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
     char fields[FIELDNAMELENMAX+1];
data/libhdf4-4.2.15/hdf/src/vattr.c:1525:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char fields[FIELDNAMELENMAX];
data/libhdf4-4.2.15/hdf/src/vattr.c:1607:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char fields[FIELDNAMELENMAX];
data/libhdf4-4.2.15/hdf/src/vgint.h:67:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char     name[VSFIELDMAX][FIELDNAMELENMAX + 1]; /* S name of each field */
data/libhdf4-4.2.15/hdf/src/vgint.h:162:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char        vsname[VSNAMELENMAX + 1];     /* S name of this vdata */
data/libhdf4-4.2.15/hdf/src/vgint.h:163:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char        vsclass[VSNAMELENMAX + 1];    /* S class name of this vdata */
data/libhdf4-4.2.15/hdf/src/vparse.c:30:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
PRIVATE char *symptr[VSFIELDMAX];       /* array of ptrs to tokens  ? */
data/libhdf4-4.2.15/hdf/src/vparse.c:31:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
PRIVATE char sym[VSFIELDMAX][FIELDNAMELENMAX + 1];  /* array of tokens ? */
data/libhdf4-4.2.15/hdf/src/vsfld.c:362:35:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    if ((vs->usym[usymid].name = (char *) HDstrdup(av[0]) ) == NULL)
data/libhdf4-4.2.15/hdf/test/an.c:49:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        labsds[MAXLEN_LAB], labris[MAXLEN_LAB], descsds[MAXLEN_DESC],
data/libhdf4-4.2.15/hdf/test/an.c:195:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        inlabel[MAXLEN_LAB], *indesc;
data/libhdf4-4.2.15/hdf/test/an.c:242:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        labsds[MAXLEN_LAB], labris[MAXLEN_LAB], descsds[MAXLEN_DESC],
data/libhdf4-4.2.15/hdf/test/anfile.c:33:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        lab1[MAXLEN_LAB], lab2[MAXLEN_LAB], desc1[MAXLEN_DESC], desc2[MAXLEN_DESC],
data/libhdf4-4.2.15/hdf/test/bitio.c:158:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        datafile[512] = "";
data/libhdf4-4.2.15/hdf/test/buffer.c:430:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    hfilename[32];
data/libhdf4-4.2.15/hdf/test/buffer.c:431:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    extfilename[32];
data/libhdf4-4.2.15/hdf/test/buffer.c:435:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    lstring[81];
data/libhdf4-4.2.15/hdf/test/buffer.c:446:38:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        elemsize = (argc==2)? (int32)atol(argv[1]):(int32)ELEMSIZE;
data/libhdf4-4.2.15/hdf/test/comp.c:401:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	      if(((char *)in_ptr)[i]!=((char *)out_ptr)[i]) 
data/libhdf4-4.2.15/hdf/test/comp.c:401:34:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	      if(((char *)in_ptr)[i]!=((char *)out_ptr)[i]) 
data/libhdf4-4.2.15/hdf/test/comp.c:402:60:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		  printf("byte %i differs, written:%d, read in:%d\n",i,((char *)out_ptr)[i],((char *)in_ptr)[i]);
data/libhdf4-4.2.15/hdf/test/comp.c:402:81:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		  printf("byte %i differs, written:%d, read in:%d\n",i,((char *)out_ptr)[i],((char *)in_ptr)[i]);
data/libhdf4-4.2.15/hdf/test/file1.c:67:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char        fname[100];
data/libhdf4-4.2.15/hdf/test/forsupf.c:82:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    testfile[1024] = "";
data/libhdf4-4.2.15/hdf/test/fortest.c:28:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char        Description[64];
data/libhdf4-4.2.15/hdf/test/fortest.c:30:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char        Name[16];
data/libhdf4-4.2.15/hdf/test/fortest.c:31:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char        Call[20];
data/libhdf4-4.2.15/hdf/test/fortest.c:98:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((cmdfile = fopen(cmdfilename, "w")) == NULL){
data/libhdf4-4.2.15/hdf/test/fortest.c:120:33:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    Verbosity = atoi(argv[CLLoop + 1]);
data/libhdf4-4.2.15/hdf/test/litend.c:83:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        filename[512] = "";
data/libhdf4-4.2.15/hdf/test/man.c:50:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *file_lab[3] =
data/libhdf4-4.2.15/hdf/test/man.c:55:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *file_desc[2] =
data/libhdf4-4.2.15/hdf/test/man.c:62:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *labsds[2] = 
data/libhdf4-4.2.15/hdf/test/man.c:66:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *labris[2] = 
data/libhdf4-4.2.15/hdf/test/man.c:70:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *descsds[2] =
data/libhdf4-4.2.15/hdf/test/man.c:76:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *descris[2] = 
data/libhdf4-4.2.15/hdf/test/man.c:292:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    if (HDstrncmp((const char *)ann_label, (const char *)file_lab[2],(size_t)(ann_len+1)) != 0)
data/libhdf4-4.2.15/hdf/test/man.c:292:51:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    if (HDstrncmp((const char *)ann_label, (const char *)file_lab[2],(size_t)(ann_len+1)) != 0)
data/libhdf4-4.2.15/hdf/test/man.c:425:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          if (HDstrncmp((const char *)ann_label, (const char *)file_lab[i],(size_t)(ann_len+1)) != 0)
data/libhdf4-4.2.15/hdf/test/man.c:425:57:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          if (HDstrncmp((const char *)ann_label, (const char *)file_lab[i],(size_t)(ann_len+1)) != 0)
data/libhdf4-4.2.15/hdf/test/man.c:480:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          if (HDstrncmp((const char *)ann_desc,(const char *)file_desc[i],(size_t)(ann_len+1)) != 0)
data/libhdf4-4.2.15/hdf/test/man.c:480:55:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          if (HDstrncmp((const char *)ann_desc,(const char *)file_desc[i],(size_t)(ann_len+1)) != 0)
data/libhdf4-4.2.15/hdf/test/man.c:647:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          if (HDstrncmp((const char *)ann_label, (const char *)label[i], (size_t)(ann_len+1)) != 0)
data/libhdf4-4.2.15/hdf/test/man.c:647:57:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          if (HDstrncmp((const char *)ann_label, (const char *)label[i], (size_t)(ann_len+1)) != 0)
data/libhdf4-4.2.15/hdf/test/man.c:698:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          if (HDstrncmp((const char *)ann_desc, (const char *)desc[i], (size_t)ann_len) != 0)
data/libhdf4-4.2.15/hdf/test/man.c:698:56:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          if (HDstrncmp((const char *)ann_desc, (const char *)desc[i], (size_t)ann_len) != 0)
data/libhdf4-4.2.15/hdf/test/mgr.c:249:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char datafile[512] = "";
data/libhdf4-4.2.15/hdf/test/mgr.c:1781:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char datafile[512] = "";
data/libhdf4-4.2.15/hdf/test/mgr.c:1813:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
              char name[MAX_IMG_NAME];  /* storage for the image's name */
data/libhdf4-4.2.15/hdf/test/mgr.c:2246:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
              char name[MAX_IMG_NAME];  /* storage for the image's name */
data/libhdf4-4.2.15/hdf/test/mgr.c:2356:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char name[MAX_IMG_NAME];  /* storage for the image's name */
data/libhdf4-4.2.15/hdf/test/mgr.c:2883:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char oldrlefile[512] = "";
data/libhdf4-4.2.15/hdf/test/mgr.c:2953:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char oldgreyjpegfile[512] = "";
data/libhdf4-4.2.15/hdf/test/mgr.c:3016:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char oldjpegfile[512] = "";
data/libhdf4-4.2.15/hdf/test/mgr.c:3118:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char gr_r24file[512] = "";
data/libhdf4-4.2.15/hdf/test/mgr.c:3394:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char gr_r24file[512] = "";
data/libhdf4-4.2.15/hdf/test/rig.c:872:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        buf[YSIZE][XSIZE][3];
data/libhdf4-4.2.15/hdf/test/rig.c:873:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        buf1[YSIZE][3][XSIZE];
data/libhdf4-4.2.15/hdf/test/rig.c:874:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        buf2[3][YSIZE][XSIZE];
data/libhdf4-4.2.15/hdf/test/rig.c:875:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        in[YSIZE][XSIZE][3];
data/libhdf4-4.2.15/hdf/test/rig.c:876:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        in1[YSIZE][3][XSIZE];
data/libhdf4-4.2.15/hdf/test/rig.c:877:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        in2[3][YSIZE][XSIZE];
data/libhdf4-4.2.15/hdf/test/rig.c:1259:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fd = fopen(filename, "rb")) == NULL) {
data/libhdf4-4.2.15/hdf/test/sdstr.c:41:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        in_datalabel[256], in_dataunit[256], in_datafmt[256], in_coordsys[256];
data/libhdf4-4.2.15/hdf/test/sdstr.c:43:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char  *dimlabels[2], *dimunits[2], *dimfmts[2];
data/libhdf4-4.2.15/hdf/test/sdstr.c:44:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        in_dimlabels[2][256], in_dimunits[2][256], in_dimfmts[2][256];
data/libhdf4-4.2.15/hdf/test/tattdatainfo.c:76:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vgclass[20];
data/libhdf4-4.2.15/hdf/test/tattdatainfo.c:83:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char attr2[8] = {'V','g','r','o','u','p','0','\0'};
data/libhdf4-4.2.15/hdf/test/tattdatainfo.c:84:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char attr3[7] = {'V','d','a', 't', 'a', '0', '\0'};
data/libhdf4-4.2.15/hdf/test/tattdatainfo.c:85:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char attr4[7] = {'F','i','e', 'l', 'd', '1', '\0'};
data/libhdf4-4.2.15/hdf/test/tattdatainfo.c:108:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(vgclass, "VG-CLASS-%d", ii);
data/libhdf4-4.2.15/hdf/test/tattdatainfo.c:132:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(vgclass, "VS-CLASS-%d", ii);
data/libhdf4-4.2.15/hdf/test/tattdatainfo.c:314:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vgclass[20];
data/libhdf4-4.2.15/hdf/test/tattdatainfo.c:321:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char aname_check[5][20] = {ATTNAME1, ATTNAME2, ATTNAME5, ATTNAME6, ATTNAME7};
data/libhdf4-4.2.15/hdf/test/tattdatainfo.c:326:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char attr2[12] = {'V','G','0',' ','n','e','w','a','t','t','r','\0'};
data/libhdf4-4.2.15/hdf/test/tattdatainfo.c:327:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char attr3[13] = {'V','G','0',' ','o','l','d','a','t','t','r','0','\0'};
data/libhdf4-4.2.15/hdf/test/tattdatainfo.c:328:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char attr4[13] = {'V','G','0',' ','o','l','d','a','t','t','r','1','\0'};
data/libhdf4-4.2.15/hdf/test/tattdatainfo.c:348:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char aname[20];
data/libhdf4-4.2.15/hdf/test/tattdatainfo.c:419:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char aname[20], values[100];
data/libhdf4-4.2.15/hdf/test/tattdatainfo.c:423:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cvalues[20];
data/libhdf4-4.2.15/hdf/test/tattdatainfo.c:425:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *check_attr_names[5] = {"Attribute 6", "Attribute 7", "Attribute 1"
data/libhdf4-4.2.15/hdf/test/tattdatainfo.c:427:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *check_attr_values[5] = {"VG0 oldattr0", "VG0 oldattr1",
data/libhdf4-4.2.15/hdf/test/tdatainfo.c:57:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char anntext[100]; /* values of the annotation */
data/libhdf4-4.2.15/hdf/test/tdatainfo.c:127:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  data_buf2[N_RECORDS] = {'H', '4', 'M', 'A', 'P'};
data/libhdf4-4.2.15/hdf/test/tdatainfo.c:532:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = fopen(filename, "r");
data/libhdf4-4.2.15/hdf/test/tdatainfo.c:862:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char image0[WIDTH][LENGTH];		/* image data */
data/libhdf4-4.2.15/hdf/test/tdatainfo.c:1004:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    char buffer[WIDTH][LENGTH], check_image[WIDTH*LENGTH];
data/libhdf4-4.2.15/hdf/test/tdatainfo.c:1043:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  buf[WIDTH][LENGTH][3];
data/libhdf4-4.2.15/hdf/test/testhdf.c:53:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char        Description[64];
data/libhdf4-4.2.15/hdf/test/testhdf.c:55:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char        Name[16];
data/libhdf4-4.2.15/hdf/test/testhdf.c:120:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        lstring[81];
data/libhdf4-4.2.15/hdf/test/testhdf.c:182:33:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    Verbosity = atoi(argv[CLLoop + 1]);
data/libhdf4-4.2.15/hdf/test/tmgrattr.c:72:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char attr_name[H4_MAX_GR_NAME];
data/libhdf4-4.2.15/hdf/test/tmgrattr.c:204:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  attr_name[H4_MAX_GR_NAME];  /* buffer to hold the attribute name */
data/libhdf4-4.2.15/hdf/test/tmgrattr.c:205:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  ri_name[H4_MAX_GR_NAME];  /* buffer to hold the image name */
data/libhdf4-4.2.15/hdf/test/tmgrcomp.c:208:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char name[30];      /* Buffer for retrieving image name */
data/libhdf4-4.2.15/hdf/test/tmgrcomp.c:380:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char gname[60];
data/libhdf4-4.2.15/hdf/test/tmgrcomp.c:527:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(message, "make_comp_image::GRcreate");
data/libhdf4-4.2.15/hdf/test/tmgrcomp.c:535:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(message, "make_comp_image::GRsetcompress");
data/libhdf4-4.2.15/hdf/test/tmgrcomp.c:545:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(message, "make_comp_image::GRwriteimage");
data/libhdf4-4.2.15/hdf/test/tmgrcomp.c:553:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(message, "make_comp_image::GRendaccess");
data/libhdf4-4.2.15/hdf/test/tmgrcomp.c:567:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  err_func[80];	/* name of the functions where failure occurs */
data/libhdf4-4.2.15/hdf/test/tusejpegfuncs.c:63:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((outfile = fopen(filename, "ab")) == NULL)
data/libhdf4-4.2.15/hdf/test/tusejpegfuncs.c:162:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((infile = fopen(filename, "rb")) == NULL)
data/libhdf4-4.2.15/hdf/test/tusejpegfuncs.c:218:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ptr, buffer[0], row_stride); 
data/libhdf4-4.2.15/hdf/test/tusejpegfuncs.c:223:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(read_buffer, local_buf, im_height*im_width*im_ncomps);
data/libhdf4-4.2.15/hdf/test/tutils.c:78:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(tempfile, "./");
data/libhdf4-4.2.15/hdf/test/tvattr.c:69:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char  data2[6] = {'A','B','C','D','E','F'}, idata2[6];
data/libhdf4-4.2.15/hdf/test/tvattr.c:72:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char   attr3[6] = {'m','N','p', 'S', 't', '\0'}, iattr3[6];
data/libhdf4-4.2.15/hdf/test/tvattr.c:473:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char iattrname[FIELDNAMELENMAX+1];
data/libhdf4-4.2.15/hdf/test/tvattr.c:760:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[MAX_HDF4_NAME_LENGTH + 1];
data/libhdf4-4.2.15/hdf/test/tvnameclass.c:197:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vgname[VGNAMELENMAX+1], vgclass[VGNAMELENMAX+1];
data/libhdf4-4.2.15/hdf/test/tvnameclass.c:313:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char testfile[H4_MAX_NC_NAME] = "";
data/libhdf4-4.2.15/hdf/test/tvnameclass.c:314:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    internal_array2[2] = {TRUE, TRUE};
data/libhdf4-4.2.15/hdf/test/tvset.c:83:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        gbuf[2000];     /* generic buffer */
data/libhdf4-4.2.15/hdf/test/tvset.c:538:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char        name2[80];
data/libhdf4-4.2.15/hdf/test/tvset.c:546:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
          sprintf(name2, "VdataLoop-%d", (int) i);
data/libhdf4-4.2.15/hdf/test/tvset.c:590:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        gbuf[2000];     /* generic buffer */
data/libhdf4-4.2.15/hdf/test/tvset.c:593:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        vsname[512], vsclass[512], fields[512];
data/libhdf4-4.2.15/hdf/test/tvset.c:1727:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  vsname[VSNAMELENMAX], fields[FIELDNAMELENMAX*VSFIELDMAX];
data/libhdf4-4.2.15/hdf/test/tvset.c:2056:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vgclass[20];
data/libhdf4-4.2.15/hdf/test/tvset.c:2080:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(vgclass, "VG-CLASS-%d", ii);
data/libhdf4-4.2.15/hdf/test/tvset.c:2337:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char message[30];
data/libhdf4-4.2.15/hdf/test/tvset.c:2380:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char message[30];
data/libhdf4-4.2.15/hdf/test/tvset.c:2430:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vgclass[20];
data/libhdf4-4.2.15/hdf/test/tvset.c:2454:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(vgclass, "VG-CLASS-%d", ii);
data/libhdf4-4.2.15/hdf/test/tvset.c:2476:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(vgclass, "VS-CLASS-%d", ii);
data/libhdf4-4.2.15/hdf/test/tvset.c:2764:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    hibuf[2] = "hi";
data/libhdf4-4.2.15/hdf/test/tvset.c:2765:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    byebuf[3] = "bye";
data/libhdf4-4.2.15/hdf/test/tvsfpack.c:41:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char       identdata[NRECORDS], iident[NRECORDS];
data/libhdf4-4.2.15/hdf/test/tvsfpack.c:44:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char       ifields[256];
data/libhdf4-4.2.15/hdf/test/vers.c:30:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        lstring[81];
data/libhdf4-4.2.15/hdf/util/fp2hdf.c:196:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char        outfile[32];  /* output file name */
data/libhdf4-4.2.15/hdf/util/fp2hdf.c:197:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char        palfile[32];  /* palette file name, if any */
data/libhdf4-4.2.15/hdf/util/fp2hdf.c:446:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    opt.hres = atoi(argv[i]);
data/libhdf4-4.2.15/hdf/util/fp2hdf.c:449:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    opt.vres = atoi(argv[i]);
data/libhdf4-4.2.15/hdf/util/fp2hdf.c:452:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    opt.dres = atoi(argv[i]);
data/libhdf4-4.2.15/hdf/util/fp2hdf.c:1104:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        buf[8];
data/libhdf4-4.2.15/hdf/util/fp2hdf.c:1117:24:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
          if ((*strm = fopen(infile, "r")) == NULL)
data/libhdf4-4.2.15/hdf/util/fp2hdf.c:1716:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char pal[1024], red[256], green[256], blue[256];
data/libhdf4-4.2.15/hdf/util/fp2hdf.c:1741:23:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
          if ((strm = fopen(palfile, "r")) == NULL)
data/libhdf4-4.2.15/hdf/util/fptest.c:150:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    sp = fopen("ctxtr2", "w");
data/libhdf4-4.2.15/hdf/util/fptest.c:168:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    sp = fopen("ctxtr3", "w");
data/libhdf4-4.2.15/hdf/util/fptest.c:196:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    sp = fopen("cb32r2", "w");
data/libhdf4-4.2.15/hdf/util/fptest.c:213:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    sp = fopen("cb32r3", "w");
data/libhdf4-4.2.15/hdf/util/fptest.c:237:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    sp = fopen("cb64r2", "w");
data/libhdf4-4.2.15/hdf/util/fptest.c:254:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    sp = fopen("cb64r3", "w");
data/libhdf4-4.2.15/hdf/util/gif2hdf.c:31:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char GIFFileName[256];
data/libhdf4-4.2.15/hdf/util/gif2hdf.c:32:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char HDFFileName[256];
data/libhdf4-4.2.15/hdf/util/gif2hdf.c:58:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!(fpGif = fopen(GIFFileName,"rb"))) {
data/libhdf4-4.2.15/hdf/util/hdf2gif.c:82:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char  gr_name[256];
data/libhdf4-4.2.15/hdf/util/hdf2gif.c:130:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		time_out = atoi(argv[3]);
data/libhdf4-4.2.15/hdf/util/hdf2gif.c:151:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!(fpGif = fopen(GIFName , "wb"))) {
data/libhdf4-4.2.15/hdf/util/hdf2jpeg.c:50:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        jfif_name[128]; /* name of the JPEG file to create */
data/libhdf4-4.2.15/hdf/util/hdf2jpeg.c:51:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        scratch[128];   /* name of the JPEG file to create */
data/libhdf4-4.2.15/hdf/util/hdf2jpeg.c:60:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    if ((jfif_char = (char *) HDstrchr(argv[2], '#')) == NULL)
data/libhdf4-4.2.15/hdf/util/hdf2jpeg.c:99:35:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                      jfif_file = fopen(scratch, "wb");
data/libhdf4-4.2.15/hdf/util/hdf2jpeg.c:103:35:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                      jfif_file = fopen(jfif_name, "wb");
data/libhdf4-4.2.15/hdf/util/hdf2jpeg.c:176:35:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                      jfif_file = fopen(scratch, "wb");
data/libhdf4-4.2.15/hdf/util/hdf2jpeg.c:180:35:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                      jfif_file = fopen(jfif_name, "wb");
data/libhdf4-4.2.15/hdf/util/hdf2jpeg.c:249:35:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                      jfif_file = fopen(scratch, "wb");
data/libhdf4-4.2.15/hdf/util/hdf2jpeg.c:253:35:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                      jfif_file = fopen(jfif_name, "wb");
data/libhdf4-4.2.15/hdf/util/hdf2jpeg.c:316:35:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                      jfif_file = fopen(scratch, "wb");
data/libhdf4-4.2.15/hdf/util/hdf2jpeg.c:320:35:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                      jfif_file = fopen(jfif_name, "wb");
data/libhdf4-4.2.15/hdf/util/hdf8to24.c:229:44:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                          if ((jpeg_qual = atoi(&argv[file][2])) <= 0 || jpeg_qual > 100)
data/libhdf4-4.2.15/hdf/util/hdfcomp.c:85:35:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    if((jpeg_qual=atoi(&argv[i][2]))<=0 || jpeg_qual>100) {
data/libhdf4-4.2.15/hdf/util/hdfgifwr.c:506:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char accum[ 256 ];
data/libhdf4-4.2.15/hdf/util/hdfls.c:220:55:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                              name = (char *) HDgettagsname((uint16) tag_arr[i]);
data/libhdf4-4.2.15/hdf/util/hdfls.c:271:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          name = (char *) HDgettagsname(desc_tmp[j].tag);
data/libhdf4-4.2.15/hdf/util/hdfls.c:312:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char string[LIBVSTR_LEN+1];
data/libhdf4-4.2.15/hdf/util/hdfls.c:513:41:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    only_tag = (uint16) atoi(&(argv[i][2]));
data/libhdf4-4.2.15/hdf/util/hdfls.c:515:41:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    only_tag = (uint16) atoi(&(argv[++i][0]));
data/libhdf4-4.2.15/hdf/util/hdfpack.c:76:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char        invoke[81];
data/libhdf4-4.2.15/hdf/util/hdfpack.c:94:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char       *tmp, fname[2][80];
data/libhdf4-4.2.15/hdf/util/hdfpack.c:151:42:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                          ndds = (int16) atoi(&argv[i][2]);
data/libhdf4-4.2.15/hdf/util/hdfpack.c:154:34:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                          nblk = atoi(&argv[i][2]);
data/libhdf4-4.2.15/hdf/util/hdfpack.c:413:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        ans[80];
data/libhdf4-4.2.15/hdf/util/hdftopal.c:80:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen(rawpalfile, "wb");
data/libhdf4-4.2.15/hdf/util/hdftor8.c:170:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        fileName[DF_MAXFNLEN];
data/libhdf4-4.2.15/hdf/util/hdftor8.c:180:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fd = fopen(fileName, "wb")) == NULL)
data/libhdf4-4.2.15/hdf/util/hdftor8.c:212:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        fileName[DF_MAXFNLEN], reds[COLOR_SIZE];
data/libhdf4-4.2.15/hdf/util/hdftor8.c:213:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        greens[COLOR_SIZE], blues[COLOR_SIZE];
data/libhdf4-4.2.15/hdf/util/hdftor8.c:223:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fd = fopen(fileName, "wb")) == NULL)
data/libhdf4-4.2.15/hdf/util/hdftor8.c:276:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        numStr[20], xStr[20], yStr[20];
data/libhdf4-4.2.15/hdf/util/hdftor8.c:278:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(numStr, "%03d", imageNumber);
data/libhdf4-4.2.15/hdf/util/hdftor8.c:279:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(xStr, "%03d", (int)xdim);
data/libhdf4-4.2.15/hdf/util/hdftor8.c:280:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(yStr, "%03d", (int)ydim);
data/libhdf4-4.2.15/hdf/util/hdftor8.c:387:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char template[DF_MAXFNLEN];
data/libhdf4-4.2.15/hdf/util/hdfunpac.c:61:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        datafilename[DF_MAXFNLEN];
data/libhdf4-4.2.15/hdf/util/he.h:126:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char       *argv[HE_ARG_SZ];
data/libhdf4-4.2.15/hdf/util/he_cntrl.c:253:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                      offset = atoi(cmd->argv[++i]);
data/libhdf4-4.2.15/hdf/util/he_cntrl.c:256:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                      length = atoi(cmd->argv[++i]);
data/libhdf4-4.2.15/hdf/util/he_cntrl.c:1212:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char line[HE_LINE_SZ];
data/libhdf4-4.2.15/hdf/util/he_cntrl.c:1611:55:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                                pred[predNum].arg.i = atoi(tok);
data/libhdf4-4.2.15/hdf/util/he_disp.c:48:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                      xwhere = atoi(cmd->argv[++i]);
data/libhdf4-4.2.15/hdf/util/he_disp.c:49:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                      ywhere = atoi(cmd->argv[++i]);
data/libhdf4-4.2.15/hdf/util/he_disp.c:59:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                      factor = atoi(cmd->argv[++i]);
data/libhdf4-4.2.15/hdf/util/he_disp.c:113:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char rgb[768];         /* storage for a palette */
data/libhdf4-4.2.15/hdf/util/he_file.c:139:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    {   char    cmd[256];
data/libhdf4-4.2.15/hdf/util/he_file.c:342:38:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                      tag = (uint16) atoi(cmd->argv[++i]);
data/libhdf4-4.2.15/hdf/util/he_file.c:343:38:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                      ref = (uint16) atoi(cmd->argv[++i]);
data/libhdf4-4.2.15/hdf/util/he_file.c:410:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    xdim = atoi(cmd->argv[2]);
data/libhdf4-4.2.15/hdf/util/he_file.c:411:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    ydim = atoi(cmd->argv[3]);
data/libhdf4-4.2.15/hdf/util/he_file.c:598:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char        p[HE_PALETTE_SZ];
data/libhdf4-4.2.15/hdf/util/he_main.c:215:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        s[32];
data/libhdf4-4.2.15/hdf/util/he_main.c:236:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = fopen(file, "w");
data/libhdf4-4.2.15/hdf/util/he_main.c:283:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        buf[HE_BUF_SZ]; /* copying buffer */
data/libhdf4-4.2.15/hdf/util/he_main.c:288:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fp = fopen(from, "r")) == NULL)
data/libhdf4-4.2.15/hdf/util/he_main.c:293:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((bfp = fopen(to, "w")) == NULL)
data/libhdf4-4.2.15/hdf/util/he_main.c:443:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fp = fopen(image, "r")) == NULL)
data/libhdf4-4.2.15/hdf/util/he_main.c:472:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        reds[HE_COLOR_SZ], greens[HE_COLOR_SZ], blues[HE_COLOR_SZ];
data/libhdf4-4.2.15/hdf/util/he_main.c:473:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        palette[HE_PALETTE_SZ];
data/libhdf4-4.2.15/hdf/util/he_main.c:477:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fp = fopen(pal, "r")) == NULL)
data/libhdf4-4.2.15/hdf/util/he_main.c:858:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen(file, "r");
data/libhdf4-4.2.15/hdf/util/he_main.c:1227:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        s1[20], s2[20], s3[20];
data/libhdf4-4.2.15/hdf/util/he_main.c:1230:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(s1, "%1d", n1);
data/libhdf4-4.2.15/hdf/util/he_main.c:1231:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(s2, "%1d", n2);
data/libhdf4-4.2.15/hdf/util/he_main.c:1232:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(s3, "%1d", n3);
data/libhdf4-4.2.15/hdf/util/jpeg2hdf.c:400:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    jfif_file = fopen(argv[1], "rb");
data/libhdf4-4.2.15/hdf/util/paltohdf.c:62:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char palspace[1024], reds[256], greens[256], blues[256], *p;
data/libhdf4-4.2.15/hdf/util/paltohdf.c:66:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen(palfile, "r");
data/libhdf4-4.2.15/hdf/util/r8tohdf.c:57:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    xdim = atoi(argv[1]);
data/libhdf4-4.2.15/hdf/util/r8tohdf.c:58:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    ydim = atoi(argv[2]);
data/libhdf4-4.2.15/hdf/util/r8tohdf.c:130:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen(palfile, "rb");
data/libhdf4-4.2.15/hdf/util/r8tohdf.c:165:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fp = fopen(imfile, "rb")) == NULL)
data/libhdf4-4.2.15/hdf/util/vmake.c:294:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        allfields[100];
data/libhdf4-4.2.15/hdf/util/vmake.c:383:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char *fldptr[MAXVAR];
data/libhdf4-4.2.15/hdf/util/vmake.c:384:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char flds[MAXVAR][100];
data/libhdf4-4.2.15/hdf/util/vmake.c:385:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char fmts[MAXVAR];
data/libhdf4-4.2.15/hdf/util/vmake.c:440:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char inpbuffer[BUFSIZE];
data/libhdf4-4.2.15/hdf/util/vmake.c:515:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        ss[300];
data/libhdf4-4.2.15/hdf/util/vmake.c:579:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        temp[20];
data/libhdf4-4.2.15/hdf/util/vshow.c:85:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        fields[VSFIELDMAX*FIELDNAMELENMAX];
data/libhdf4-4.2.15/hdf/util/vshow.c:87:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        vsname[VSNAMELENMAX];
data/libhdf4-4.2.15/hdf/util/vshow.c:88:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        vsclass[VSNAMELENMAX];
data/libhdf4-4.2.15/hdf/util/vshow.c:396:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        fields[VSFIELDMAX*FIELDNAMELENMAX]; 
data/libhdf4-4.2.15/hdf/util/vshow.c:397:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        vsname[100];
data/libhdf4-4.2.15/hdf/util/vshow.c:561:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char name[FIELDNAMELENMAX+1];
data/libhdf4-4.2.15/hdf/util/writehdf.c:51:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ImageName[256];	/* Image name for the GR Image */
data/libhdf4-4.2.15/hdf/util/writehdf.c:52:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char CommentName[256];
data/libhdf4-4.2.15/hdf/util/writehdf.c:53:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ApplicationName[256];
data/libhdf4-4.2.15/hdf/util/writehdf.c:54:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char PlainTextName[256];
data/libhdf4-4.2.15/hdf/util/writehdf.c:106:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(CommentName , "Comment Extension Data %d" , (int)i);
data/libhdf4-4.2.15/hdf/util/writehdf.c:113:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(ApplicationName , "Application Extension Data %d", (int)i);
data/libhdf4-4.2.15/hdf/util/writehdf.c:115:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(ApplicationName , "Application Extension Dump %d", (int)i);
data/libhdf4-4.2.15/hdf/util/writehdf.c:120:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(PlainTextName , "PlainText Extension Data %d", (int)i);
data/libhdf4-4.2.15/hdf/util/writehdf.c:122:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(PlainTextName , "PlainText Extension Dump %d", (int)i);
data/libhdf4-4.2.15/hdf/util/writehdf.c:141:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(ImageName,"Image%d",(int)i);
data/libhdf4-4.2.15/java/src/jni/hdfImp.c:194:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char s[LIBVSTR_LEN+1];
data/libhdf4-4.2.15/java/src/jni/hdfImp.c:247:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char s[LIBVSTR_LEN+1] ;
data/libhdf4-4.2.15/java/src/jni/hdfexceptionImp.c:88:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *args[2];
data/libhdf4-4.2.15/java/src/jni/hdfexceptionImp.c:175:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        stream = fopen(file, "a+");
data/libhdf4-4.2.15/java/src/jni/hdfnativeImp.c:635:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char bytes[4];
data/libhdf4-4.2.15/java/src/jni/hdfnativeImp.c:704:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char bytes[4];
data/libhdf4-4.2.15/java/src/jni/hdfnativeImp.c:773:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char bytes[4];
data/libhdf4-4.2.15/java/src/jni/hdfnativeImp.c:842:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char bytes[8];
data/libhdf4-4.2.15/java/src/jni/hdfnativeImp.c:912:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char bytes[8];
data/libhdf4-4.2.15/java/src/jni/hdfnativeImp.c:977:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char bytes[sizeof(int)];
data/libhdf4-4.2.15/java/src/jni/hdfnativeImp.c:1015:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char bytes[sizeof(float)];
data/libhdf4-4.2.15/java/src/jni/hdfnativeImp.c:1053:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char bytes[sizeof(short)];
data/libhdf4-4.2.15/java/src/jni/hdfnativeImp.c:1093:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char bytes[sizeof(double)];
data/libhdf4-4.2.15/java/src/jni/hdfnativeImp.c:1132:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char bytes[sizeof(jlong)];
data/libhdf4-4.2.15/java/src/jni/hdfnativeImp.c:1171:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char bytes[sizeof(jbyte)];
data/libhdf4-4.2.15/java/src/jni/hdfsdsImp.c:661:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  str[256];  /* what is the correct constant??? */
data/libhdf4-4.2.15/java/src/jni/hdfsdsImp.c:752:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  str[256];  /* what is the correct constant??? */
data/libhdf4-4.2.15/java/src/jni/hdfvdataImp.c:140:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char nameName[VSNAMELENMAX+1];
data/libhdf4-4.2.15/java/src/jni/hdfvdataImp.c:832:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  nam[256];  /* what is the correct constant??? */
data/libhdf4-4.2.15/java/src/jni/hdfvgroupImp.c:712:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  nam[256];  /* what is the correct constant??? */
data/libhdf4-4.2.15/java/src/jni/hdfvsqImp.c:74:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char flds[4096];
data/libhdf4-4.2.15/mfhdf/dumper/hdp.h:390:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char        file_name[MAXFNLEN];/* Name of file to dump into */
data/libhdf4-4.2.15/mfhdf/dumper/hdp.h:391:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char        ifile_name[MAXFNLEN];/* Name of input file being processed */
data/libhdf4-4.2.15/mfhdf/dumper/hdp.h:462:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char    clss[VSNAMELENMAX+1];	/* vdata class */
data/libhdf4-4.2.15/mfhdf/dumper/hdp.h:463:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char    name[VSNAMELENMAX+1];	/* vdata name */
data/libhdf4-4.2.15/mfhdf/dumper/hdp.h:526:92:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
intn parse_dumpvd_opts(dump_info_t * dumpvd_opts, intn *curr_arg, intn argc, char *argv[], char *flds_chosen[MAXCHOICES], int *dumpallfields);
data/libhdf4-4.2.15/mfhdf/dumper/hdp.h:552:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char separater[2],int32 flds_indices[VSFIELDMAX], 
data/libhdf4-4.2.15/mfhdf/dumper/hdp_gr.c:120:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
             user_interlace = atoi( argv[*curr_arg] );
data/libhdf4-4.2.15/mfhdf/dumper/hdp_gr.c:429:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char  attr_name[MAXNAMELEN],
data/libhdf4-4.2.15/mfhdf/dumper/hdp_gr.c:530:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char  attr_name[MAXNAMELEN],
data/libhdf4-4.2.15/mfhdf/dumper/hdp_gr.c:831:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    char mask_strg[160]; /* 160 is to cover all options and number val*/
data/libhdf4-4.2.15/mfhdf/dumper/hdp_gr.c:871:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char  name[MAXNAMELEN],   /* name of an image */
data/libhdf4-4.2.15/mfhdf/dumper/hdp_gr.c:1039:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char  name[MAXNAMELEN],   /* name of an image */
data/libhdf4-4.2.15/mfhdf/dumper/hdp_gr.c:1170:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  file_name[MAXFNLEN];	/* current hdf file name */
data/libhdf4-4.2.15/mfhdf/dumper/hdp_gr.c:1252:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
               fp = fopen( dumpgr_opts->file_name, "w");
data/libhdf4-4.2.15/mfhdf/dumper/hdp_gr.c:1294:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
               fp = fopen(dumpgr_opts->file_name, "wb");
data/libhdf4-4.2.15/mfhdf/dumper/hdp_list.c:147:52:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                            list_opts->limit_tag = atoi(argv[curr_arg]);
data/libhdf4-4.2.15/mfhdf/dumper/hdp_list.c:249:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char error_item[256];	/* holds tag, ref, and fname for error msg */
data/libhdf4-4.2.15/mfhdf/dumper/hdp_list.c:1023:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char string[LIBVSTR_LEN+1];
data/libhdf4-4.2.15/mfhdf/dumper/hdp_rig.c:117:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                *model = atoi(argv[*curr_arg]);
data/libhdf4-4.2.15/mfhdf/dumper/hdp_rig.c:163:53:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                      dumprig_opts->filter_num[i] = atoi(ptr);
data/libhdf4-4.2.15/mfhdf/dumper/hdp_rig.c:167:47:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                dumprig_opts->filter_num[i] = atoi(ptr);	/* get the last item */
data/libhdf4-4.2.15/mfhdf/dumper/hdp_rig.c:234:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        file_name[MAXFNLEN];
data/libhdf4-4.2.15/mfhdf/dumper/hdp_rig.c:278:26:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                    fp = fopen(dumprig_opts->file_name, "w");
data/libhdf4-4.2.15/mfhdf/dumper/hdp_rig.c:488:26:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                    fp = fopen(dumprig_opts->file_name, "wb");
data/libhdf4-4.2.15/mfhdf/dumper/hdp_sds.c:505:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char  attr_name[MAXNAMELEN],
data/libhdf4-4.2.15/mfhdf/dumper/hdp_sds.c:602:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char  attr_name[MAXNAMELEN],
data/libhdf4-4.2.15/mfhdf/dumper/hdp_sds.c:713:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char numval[10];
data/libhdf4-4.2.15/mfhdf/dumper/hdp_sds.c:724:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(opt_mask_strg, "H4_SZ_ALLOW_K13_OPTION_MASK");
data/libhdf4-4.2.15/mfhdf/dumper/hdp_sds.c:730:6:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	    strcat(opt_mask_strg, "H4_SZ_CHIP_OPTION_MASK");
data/libhdf4-4.2.15/mfhdf/dumper/hdp_sds.c:733:6:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	    strcpy(opt_mask_strg, "H4_SZ_CHIP_OPTION_MASK");
data/libhdf4-4.2.15/mfhdf/dumper/hdp_sds.c:740:6:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	    strcat(opt_mask_strg, "H4_SZ_EC_OPTION_MASK");
data/libhdf4-4.2.15/mfhdf/dumper/hdp_sds.c:743:6:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	    strcpy(opt_mask_strg, "H4_SZ_EC_OPTION_MASK");
data/libhdf4-4.2.15/mfhdf/dumper/hdp_sds.c:750:6:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	    strcat(opt_mask_strg, "H4_SZ_LSB_OPTION_MASK");
data/libhdf4-4.2.15/mfhdf/dumper/hdp_sds.c:753:6:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	    strcpy(opt_mask_strg, "H4_SZ_LSB_OPTION_MASK");
data/libhdf4-4.2.15/mfhdf/dumper/hdp_sds.c:760:6:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	    strcat(opt_mask_strg, "H4_SZ_MSB_OPTION_MASK");
data/libhdf4-4.2.15/mfhdf/dumper/hdp_sds.c:763:6:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	    strcpy(opt_mask_strg, "H4_SZ_MSB_OPTION_MASK");
data/libhdf4-4.2.15/mfhdf/dumper/hdp_sds.c:770:6:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	    strcat(opt_mask_strg, "H4_SZ_NN_OPTION_MASK");
data/libhdf4-4.2.15/mfhdf/dumper/hdp_sds.c:773:6:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	    strcpy(opt_mask_strg, "H4_SZ_NN_OPTION_MASK");
data/libhdf4-4.2.15/mfhdf/dumper/hdp_sds.c:780:6:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	    strcat(opt_mask_strg, "H4_SZ_RAW_OPTION_MASK");
data/libhdf4-4.2.15/mfhdf/dumper/hdp_sds.c:783:6:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	    strcpy(opt_mask_strg, "H4_SZ_RAW_OPTION_MASK");
data/libhdf4-4.2.15/mfhdf/dumper/hdp_sds.c:787:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(numval, " (%d)", options_mask);
data/libhdf4-4.2.15/mfhdf/dumper/hdp_sds.c:829:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    char mask_strg[160]; /* 160 is to cover all options and number val*/
data/libhdf4-4.2.15/mfhdf/dumper/hdp_sds.c:891:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char  dim_nm[MAXNAMELEN],    /* dimension name */
data/libhdf4-4.2.15/mfhdf/dumper/hdp_sds.c:1108:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char  curr_file_name[MAXFNLEN];
data/libhdf4-4.2.15/mfhdf/dumper/hdp_sds.c:1172:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char   file_name[MAXFNLEN];
data/libhdf4-4.2.15/mfhdf/dumper/hdp_sds.c:1262:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
               fp = fopen(dumpsds_opts->file_name, "w");
data/libhdf4-4.2.15/mfhdf/dumper/hdp_sds.c:1334:23:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                 fp = fopen(dumpsds_opts->file_name, "wb");
data/libhdf4-4.2.15/mfhdf/dumper/hdp_util.c:768:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      filter->num_list[i] = atoi(ptr);  /* convert string to digits */
data/libhdf4-4.2.15/mfhdf/dumper/hdp_util.c:918:41:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    (*dump_opts)->all_types[i].index = atoi(ptr);
data/libhdf4-4.2.15/mfhdf/dumper/hdp_util.c:923:42:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    (*dump_opts)->all_types[i].refnum = atoi(ptr);
data/libhdf4-4.2.15/mfhdf/dumper/hdp_vd.c:47:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                  char *flds_chosen[MAXCHOICES],
data/libhdf4-4.2.15/mfhdf/dumper/hdp_vd.c:229:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char   vdata_name[MAXNAMELEN];
data/libhdf4-4.2.15/mfhdf/dumper/hdp_vd.c:486:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char *flds_chosen[MAXCHOICES],
data/libhdf4-4.2.15/mfhdf/dumper/hdp_vd.c:494:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char  fldstring[MAXNAMELEN]; /* holds a field name extracted from field name list */
data/libhdf4-4.2.15/mfhdf/dumper/hdp_vd.c:498:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char   tempflds[VSFIELDMAX*FIELDNAMELENMAX];
data/libhdf4-4.2.15/mfhdf/dumper/hdp_vd.c:552:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
             const char  *file_name,
data/libhdf4-4.2.15/mfhdf/dumper/hdp_vd.c:555:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
             char *flds_chosen[MAXCHOICES],
data/libhdf4-4.2.15/mfhdf/dumper/hdp_vd.c:567:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char        vdclass[VSNAMELENMAX+1];
data/libhdf4-4.2.15/mfhdf/dumper/hdp_vd.c:568:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char        vdname[VSNAMELENMAX+1];
data/libhdf4-4.2.15/mfhdf/dumper/hdp_vd.c:569:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char        fldstring[MAXNAMELEN];
data/libhdf4-4.2.15/mfhdf/dumper/hdp_vd.c:576:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char        fields[VSFIELDMAX*FIELDNAMELENMAX];
data/libhdf4-4.2.15/mfhdf/dumper/hdp_vd.c:607:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char sep[2];	    /* the character that is used to separate 2 fields */
data/libhdf4-4.2.15/mfhdf/dumper/hdp_vd.c:757:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
              const char  *file_name,
data/libhdf4-4.2.15/mfhdf/dumper/hdp_vd.c:760:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
              char *flds_chosen[MAXCHOICES],
data/libhdf4-4.2.15/mfhdf/dumper/hdp_vd.c:769:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char        vdname[VSNAMELENMAX+1];
data/libhdf4-4.2.15/mfhdf/dumper/hdp_vd.c:775:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char        fields[VSFIELDMAX*FIELDNAMELENMAX]; 
data/libhdf4-4.2.15/mfhdf/dumper/hdp_vd.c:796:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char sep[2];	/* character used to separate fields */
data/libhdf4-4.2.15/mfhdf/dumper/hdp_vd.c:904:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *flds_chosen[MAXCHOICES], 
data/libhdf4-4.2.15/mfhdf/dumper/hdp_vd.c:908:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        file_name[MAXFNLEN];
data/libhdf4-4.2.15/mfhdf/dumper/hdp_vd.c:982:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	        fp = fopen(dumpvd_opts->file_name, "w");
data/libhdf4-4.2.15/mfhdf/dumper/hdp_vd.c:993:22:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                fp = fopen(dumpvd_opts->file_name, "wb");
data/libhdf4-4.2.15/mfhdf/dumper/hdp_vd.c:1053:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char       *flds_chosen[MAXCHOICES];
data/libhdf4-4.2.15/mfhdf/dumper/hdp_vg.c:914:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char   vsname[MAXNAMELEN];
data/libhdf4-4.2.15/mfhdf/dumper/hdp_vg.c:1073:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char   vsname[MAXNAMELEN];
data/libhdf4-4.2.15/mfhdf/dumper/hdp_vg.c:1074:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char   vsclass[VSNAMELENMAX+1];
data/libhdf4-4.2.15/mfhdf/dumper/hdp_vg.c:1080:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char   fields[VSFIELDMAX*FIELDNAMELENMAX];
data/libhdf4-4.2.15/mfhdf/dumper/hdp_vg.c:1285:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        file_name[MAXFNLEN];
data/libhdf4-4.2.15/mfhdf/dumper/hdp_vg.c:1361:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
         fp = fopen(dumpvg_opts->file_name, "w");
data/libhdf4-4.2.15/mfhdf/dumper/show.c:28:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
       char        separater[2],
data/libhdf4-4.2.15/mfhdf/dumper/show.c:32:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        vdname[VSNAMELENMAX+1];
data/libhdf4-4.2.15/mfhdf/dumper/show.c:56:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        fields[VSFIELDMAX*FIELDNAMELENMAX];
data/libhdf4-4.2.15/mfhdf/dumper/show.c:57:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        flds[VSFIELDMAX*FIELDNAMELENMAX];
data/libhdf4-4.2.15/mfhdf/dumper/show.c:502:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char          name[FIELDNAMELENMAX+1];
data/libhdf4-4.2.15/mfhdf/dumper/testfiles/manySDSs.c:14:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char file_attr[116] = "This file was generated by the program manySDSs.c in hdf4/mfhdf/dumper/testfiles to test the flag -k in hdp dumpsds";
data/libhdf4-4.2.15/mfhdf/dumper/testfiles/manySDSs.c:15:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char names[NUM_DSETS][8] = {{"data1"},{"data2"},{"data3"},{"data4"},
data/libhdf4-4.2.15/mfhdf/dumper/testfiles/vslongname.c:32:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char vsclass[100], fields[10];
data/libhdf4-4.2.15/mfhdf/examples/SD_dimscale_vs_sds.c:13:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char  sds_name[H4_MAX_NC_NAME];
data/libhdf4-4.2.15/mfhdf/examples/SD_get_attr.c:15:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char    attr_name[H4_MAX_NC_NAME];
data/libhdf4-4.2.15/mfhdf/examples/SD_get_info.c:14:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char  name[H4_MAX_NC_NAME];
data/libhdf4-4.2.15/mfhdf/examples/SD_set_get_dim_info.c:25:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char    dim_name[NAME_LENGTH+1];
data/libhdf4-4.2.15/mfhdf/hdfimport/crtSDSfloats.c:38:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    dim_name[20];
data/libhdf4-4.2.15/mfhdf/hdfimport/gen_sds_floats.c:38:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    dim_name[20];
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:231:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char filename[NAME_LEN];
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:241:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char        outfile[32];  /* output file name */
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:242:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char        palfile[32];  /* palette file name, if any */
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:509:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char types [5][6] = { "FP32", "FP64", "INT32", "INT16", "INT8" };
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:582:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        opt.hres = atoi(argv[i]);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:585:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        opt.vres = atoi(argv[i]);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:588:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        opt.dres = atoi(argv[i]);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:688:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    infile[NAME_LEN];
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:919:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    infile[NAME_LEN];
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1523:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char infile[NAME_LEN];
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1930:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        buf[8];
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:1944:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((*strm = fopen(infile, "r")) == NULL)
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:2578:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char pal[1024], red[256], green[256], blue[256];
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimport.c:2603:23:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
          if ((strm = fopen(palfile, "r")) == NULL)
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimporttest.c:185:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    sp = fopen("ctxtr2", "w");
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimporttest.c:203:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
     sp = fopen("ctxti2", "w");
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimporttest.c:221:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
 	sp = fopen("ctxti162", "w");
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimporttest.c:239:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    sp = fopen("ctxti82", "w");
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimporttest.c:257:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    sp = fopen("ctxtr3", "w");
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimporttest.c:283:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    sp = fopen("cb32r2", "w");
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimporttest.c:300:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    sp = fopen("cb32i2", "w");
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimporttest.c:317:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    sp = fopen("cb16i2", "w");
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimporttest.c:334:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
     sp = fopen("cb8i2", "w");
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimporttest.c:351:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    sp = fopen("cb32r3", "w");
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimporttest.c:371:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
     sp = fopen("cb32i3", "w");
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimporttest.c:391:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
     sp = fopen("cb16i3", "w");
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimporttest.c:411:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
     sp = fopen("cb8i3", "w");
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimporttest.c:435:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    sp = fopen("cb64r2", "w");
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimporttest.c:452:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    sp = fopen("cb64r3", "w");
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff.h:24:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[H4_MAX_NC_NAME];
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff.h:29:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[H4_MAX_NC_NAME];
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff.h:38:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[H4_MAX_NC_NAME];
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_array.c:174:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fp = fopen("hdiff.debug", "w");
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_dim.c:25:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  dim_name[H4_MAX_NC_NAME];  /* name */
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_dim.h:24:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  dim_name[H4_MAX_NC_NAME];  /* name */
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_gr.c:60:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
 char  gr1_name[H4_MAX_NC_NAME]; 
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_gr.c:61:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
 char  gr2_name[H4_MAX_NC_NAME]; 
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_list.c:565:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  name[H4_MAX_GR_NAME]; /* name of an image */
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_list.c:632:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  name[H4_MAX_GR_NAME];      /* name of dataset */
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_list.c:760:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char   attr_name[H4_MAX_NC_NAME];
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_list.c:1055:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  sds_name[H4_MAX_NC_NAME]; 
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_list.c:1056:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  dim_name[H4_MAX_NC_NAME];
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_list.c:1158:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
     char  attr_name[H4_MAX_NC_NAME];
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_list.c:1187:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  attr_name[H4_MAX_NC_NAME];
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_list.c:1213:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char	attr_name[H4_MAX_NC_NAME];
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_list.c:1251:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char          gr_name[H4_MAX_GR_NAME]; 
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_list.c:1333:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  vdata_name [VSNAMELENMAX], vdata_class[VSNAMELENMAX];
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_main.c:144:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            opt.max_err_cnt = atoi(optarg);
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_mattbl.h:31:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
 char    obj_name[H4_MAX_NC_NAME];      /* same name for file1 and 2 */
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_misc.c:130:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
 char gps[30];  /* for ascii of a float or double precision */
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_sds.c:70:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
 char  sds1_name[H4_MAX_NC_NAME]; 
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_sds.c:71:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
 char  sds2_name[H4_MAX_NC_NAME]; 
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_sds.c:525:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
 char  attr1_name[H4_MAX_NC_NAME];
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_sds.c:526:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
 char  attr2_name[H4_MAX_NC_NAME];
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_table.h:32:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
 char    obj_name[H4_MAX_NC_NAME];
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_vs.c:52:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
 char  vdata1_name [VSNAMELENMAX];
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_vs.c:53:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
 char  vdata1_class[VSNAMELENMAX];
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_vs.c:54:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
 char  fieldname1_list[VSFIELDMAX*FIELDNAMELENMAX];
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_vs.c:55:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
 char  vdata2_name [VSNAMELENMAX];
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_vs.c:56:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
 char  vdata2_class[VSNAMELENMAX];
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_vs.c:57:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
 char  fieldname2_list[VSFIELDMAX*FIELDNAMELENMAX];
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_vs.c:208:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
 char    fields1[VSFIELDMAX*FIELDNAMELENMAX];
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_vs.c:209:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
 char    vsclass1[VSNAMELENMAX], vsname1[VSNAMELENMAX];
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_vs.c:212:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
 char    fields2[VSFIELDMAX*FIELDNAMELENMAX];
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_vs.c:213:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
 char    vsclass2[VSNAMELENMAX], vsname2[VSNAMELENMAX];
data/libhdf4-4.2.15/mfhdf/hrepack/hrepack.c:377:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stype[10];
data/libhdf4-4.2.15/mfhdf/hrepack/hrepack.c:378:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char comp_info[1024];
data/libhdf4-4.2.15/mfhdf/hrepack/hrepack.c:384:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fp = fopen(filename, "r")) == (FILE *)NULL) {
data/libhdf4-4.2.15/mfhdf/hrepack/hrepack.h:30:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
 char obj[H4_MAX_NC_NAME];
data/libhdf4-4.2.15/mfhdf/hrepack/hrepack.h:48:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
 char         objpath[H4_MAX_NC_NAME];      /* name of object */
data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_check.c:182:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
 char          name[H4_MAX_GR_NAME];      /* name of dataset */
data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_dim.c:26:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  dim_name[H4_MAX_NC_NAME];  /* name */
data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_dim.c:238:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char             sds_name[H4_MAX_NC_NAME]; 
data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_dim.h:23:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  dim_name[H4_MAX_NC_NAME];  /* name */
data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_gr.c:68:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char          gr_name[H4_MAX_GR_NAME]; 
data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_gr.c:627:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  attr_name[H4_MAX_NC_NAME];
data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_list.c:990:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  name[H4_MAX_GR_NAME]; /* name of an image */
data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_list.c:1071:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  name[H4_MAX_GR_NAME];      /* name of dataset */
data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_parse.c:49:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        obj[H4_MAX_NC_NAME]; 
data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_parse.c:50:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        scomp[10];
data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_parse.c:51:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        stype[5];
data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_parse.c:52:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        smask[3]; 
data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_parse.c:187:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                comp->info=atoi(stype);
data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_parse.c:347:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        obj[H4_MAX_NC_NAME]; 
data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_parse.c:348:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        sdim[10];
data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_parse.c:419:40:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                chunk_lengths[c_index]=atoi(sdim);
data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_parse.c:435:44:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    chunk_lengths[c_index]=atoi(sdim);
data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_parse.c:488:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    n=atoi(str);
data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_sds.c:88:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char             sds_name[H4_MAX_NC_NAME]; 
data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_sds.c:89:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char             dim_name[H4_MAX_NC_NAME];
data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_sds.c:909:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  attr_name[H4_MAX_NC_NAME];
data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_sds.c:976:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char   comp_str[255];
data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_sds.c:1012:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(comp_str,"(%.2f:1)", r);
data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_vg.c:38:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char   attr_name[H4_MAX_NC_NAME];
data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_vs.c:57:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  vdata_name [VSNAMELENMAX], vdata_class[VSNAMELENMAX];
data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_vs.c:58:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  fieldname_list[VSFIELDMAX*FIELDNAMELENMAX];
data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_vs.c:303:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char   attr_name[H4_MAX_NC_NAME];
data/libhdf4-4.2.15/mfhdf/hrepack/hrepacktst.c:104:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char   str[20];
data/libhdf4-4.2.15/mfhdf/hrepack/hrepacktst.c:108:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    f = fopen( fname, "r");
data/libhdf4-4.2.15/mfhdf/hrepack/hrepacktst.c:382:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char          gr_name[H4_MAX_GR_NAME]; 
data/libhdf4-4.2.15/mfhdf/hrepack/hrepacktst.c:582:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char          name[H4_MAX_GR_NAME];      /* name of dataset */
data/libhdf4-4.2.15/mfhdf/hrepack/hrepacktst.c:806:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char          name[H4_MAX_GR_NAME];      /* name of dataset */
data/libhdf4-4.2.15/mfhdf/hrepack/hrepacktst.c:978:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char   data_file[512]="";          /* buffer to hold name of existing data file */
data/libhdf4-4.2.15/mfhdf/hrepack/hrepacktst.c:1334:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char   data_file[512]="";          /* buffer to hold name of existing data file */
data/libhdf4-4.2.15/mfhdf/hrepack/hrepacktst.c:1409:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char   data_file[512]="";           /* buffer to hold name of existing data file */
data/libhdf4-4.2.15/mfhdf/hrepack/hrepacktst.c:1976:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    vd_attr[3]      = {'A', 'B', 'C'};/* vdata attribute values*/
data/libhdf4-4.2.15/mfhdf/hrepack/hrepacktst.c:2381:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char          vg_attr[3]    = {'A', 'B', 'C'};/* vg attribute values*/
data/libhdf4-4.2.15/mfhdf/hrepack/pal_rgb.h:18:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char pal_rgb[256*3] = {0,0,0,
data/libhdf4-4.2.15/mfhdf/libsrc/array.c:274:19:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            (void)memcpy(ret->values, values, memlen) ;
data/libhdf4-4.2.15/mfhdf/libsrc/array.c:319:19:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            (void)memcpy(old->values, values, memlen) ;
data/libhdf4-4.2.15/mfhdf/libsrc/array.c:525:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    (void)memcpy(ap, tail, array->szof) ;
data/libhdf4-4.2.15/mfhdf/libsrc/array.c:542:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    (void)memcpy(target, array->values, memlen) ;
data/libhdf4-4.2.15/mfhdf/libsrc/attr.c:351:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	(void)memcpy( name, (*attr)->name->values, (*attr)->name->len) ;
data/libhdf4-4.2.15/mfhdf/libsrc/cdf.c:1081:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  name[H4_MAX_NC_NAME] = "";
data/libhdf4-4.2.15/mfhdf/libsrc/cdf.c:1117:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(name, "fakeDim%d", (int)cnt);
data/libhdf4-4.2.15/mfhdf/libsrc/cdf.c:1216:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char fields[FIELDNAMELENMAX];
data/libhdf4-4.2.15/mfhdf/libsrc/cdf.c:1217:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vsclass[H4_MAX_NC_NAME];
data/libhdf4-4.2.15/mfhdf/libsrc/cdf.c:1687:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vgname[H4_MAX_NC_NAME] = "";
data/libhdf4-4.2.15/mfhdf/libsrc/cdf.c:1688:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vsclass[H4_MAX_NC_CLASS] = "";
data/libhdf4-4.2.15/mfhdf/libsrc/cdf.c:1689:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vgclass[H4_MAX_NC_CLASS] = "";
data/libhdf4-4.2.15/mfhdf/libsrc/cdf.c:1906:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char      class[H4_MAX_NC_CLASS] = "";
data/libhdf4-4.2.15/mfhdf/libsrc/cdf.c:1977:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char      vsname[H4_MAX_NC_NAME] = "";
data/libhdf4-4.2.15/mfhdf/libsrc/cdf.c:1978:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char      fields[100] = "" ;
data/libhdf4-4.2.15/mfhdf/libsrc/cdf.c:1979:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char      class[H4_MAX_NC_CLASS] = "";
data/libhdf4-4.2.15/mfhdf/libsrc/cdf.c:2063:31:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                            ((char *) values)[attr_size] = '\0';
data/libhdf4-4.2.15/mfhdf/libsrc/cdf.c:2132:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char     vgname[H4_MAX_NC_NAME] = "";
data/libhdf4-4.2.15/mfhdf/libsrc/cdf.c:2133:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char     subname[H4_MAX_NC_NAME] = "";
data/libhdf4-4.2.15/mfhdf/libsrc/cdf.c:2134:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char     class[H4_MAX_NC_CLASS] = "";
data/libhdf4-4.2.15/mfhdf/libsrc/cdf.c:2250:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char dimclass[H4_MAX_NC_CLASS] = "";
data/libhdf4-4.2.15/mfhdf/libsrc/cdf.c:2251:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char vsclass[H4_MAX_NC_CLASS] = "";
data/libhdf4-4.2.15/mfhdf/libsrc/cdf.c:2566:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char            vgname[H4_MAX_NC_NAME];
data/libhdf4-4.2.15/mfhdf/libsrc/cdf.c:2574:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char            class[H4_MAX_NC_CLASS];
data/libhdf4-4.2.15/mfhdf/libsrc/cdf.c:3062:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char       class[H4_MAX_NC_CLASS] = "";
data/libhdf4-4.2.15/mfhdf/libsrc/cdf.c:3338:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char fillp[2*sizeof(double)] ;
data/libhdf4-4.2.15/mfhdf/libsrc/dim.c:239:15:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        (void)memcpy( name, (*dp)->name->values,
data/libhdf4-4.2.15/mfhdf/libsrc/error.c:59:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	return (char *)sys_errlist[errnum] ;
data/libhdf4-4.2.15/mfhdf/libsrc/file.c:441:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char path[FILENAME_MAX + 1] ;
data/libhdf4-4.2.15/mfhdf/libsrc/file.c:587:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char tnbuf[FILENAME_MAX +1] ;
data/libhdf4-4.2.15/mfhdf/libsrc/file.c:813:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[NC_DCP_BUFSIZE] ;
data/libhdf4-4.2.15/mfhdf/libsrc/file.c:986:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char realpath[FILENAME_MAX + 1] ;
data/libhdf4-4.2.15/mfhdf/libsrc/hdfsds.c:535:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char   hremark[30] = ""; /* should be big enough for new attribute */
data/libhdf4-4.2.15/mfhdf/libsrc/hdfsds.c:654:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char   hlabel[30] = ""; /* should be big enough for new attribute */
data/libhdf4-4.2.15/mfhdf/libsrc/hdfsds.c:1034:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char     tmpname[80] = "";
data/libhdf4-4.2.15/mfhdf/libsrc/hdfsds.c:1469:23:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                      sprintf(tmpname, "fakeDim%d", dimcount++);
data/libhdf4-4.2.15/mfhdf/libsrc/hdfsds.c:1632:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(tmpname, "Data-Set-%d", ndgRef); 
data/libhdf4-4.2.15/mfhdf/libsrc/local_nc.h:195:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char path[FILENAME_MAX + 1] ;
data/libhdf4-4.2.15/mfhdf/libsrc/mfdatainfo.c:221:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    vsclass[H4_MAX_NC_CLASS] = "", /* vs class, is it _HDF_ATTRIBUTE? */
data/libhdf4-4.2.15/mfhdf/libsrc/mfsd.c:1296:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char     dimname[H4_MAX_NC_NAME];
data/libhdf4-4.2.15/mfhdf/libsrc/mfsd.c:1350:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
          sprintf(dimname, "fakeDim%d", num);
data/libhdf4-4.2.15/mfhdf/libsrc/nssdc.c:148:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    name[CDF_VAR_NAME_LEN + 1];
data/libhdf4-4.2.15/mfhdf/libsrc/nssdc.c:256:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char tmpname[80];
data/libhdf4-4.2.15/mfhdf/libsrc/nssdc.c:258:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(tmpname, "CDFdim%d_%d", i, (int)dim_sz[i]);
data/libhdf4-4.2.15/mfhdf/libsrc/nssdc.c:330:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char dimname[1000];
data/libhdf4-4.2.15/mfhdf/libsrc/nssdc.c:518:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char dimname[1000];
data/libhdf4-4.2.15/mfhdf/libsrc/putget.c:478:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[4] ;
data/libhdf4-4.2.15/mfhdf/libsrc/putget.c:567:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[4] ; /* unsigned is important here */
data/libhdf4-4.2.15/mfhdf/libsrc/sharray.c:36:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buf[NC_SHRT_BUFSIZ] ;
data/libhdf4-4.2.15/mfhdf/libsrc/string.c:88:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(ret->values, str, (size_t)count) ;
data/libhdf4-4.2.15/mfhdf/libsrc/string.c:155:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    (void)memcpy(old->values, str, count) ;
data/libhdf4-4.2.15/mfhdf/libsrc/var.c:504:15:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        (void)memcpy( name, vp->name->values, vp->name->len) ;
data/libhdf4-4.2.15/mfhdf/libsrc/var.c:729:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(end, invp->shape, ndims * sizeof(unsigned long)) ;
data/libhdf4-4.2.15/mfhdf/libsrc/xdrposix.c:77:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char base[BIOBUFSIZ];      /* the data buffer */
data/libhdf4-4.2.15/mfhdf/libsrc/xdrposix.c:208:20:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            (void) memcpy(ptr, biop->ptr, rem) ;
data/libhdf4-4.2.15/mfhdf/libsrc/xdrposix.c:217:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    (void) memcpy(ptr, biop->ptr, (size_t)nbytes) ;
data/libhdf4-4.2.15/mfhdf/libsrc/xdrposix.c:241:20:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            (void) memcpy(biop->ptr, ptr, rem) ;
data/libhdf4-4.2.15/mfhdf/libsrc/xdrposix.c:252:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    (void) memcpy(biop->ptr, ptr, (size_t)nbytes) ;
data/libhdf4-4.2.15/mfhdf/libsrc/xdrposix.c:656:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(path, fmode, 0666) ;
data/libhdf4-4.2.15/mfhdf/libsrc/xdrstdio.c:331:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen(path, fmode) ;
data/libhdf4-4.2.15/mfhdf/ncdump/dumplib.c:124:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char cfmt[MAX_CFMT_LEN];
data/libhdf4-4.2.15/mfhdf/ncdump/ncdump.c:153:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char gps[30];		/* for ascii of a float or double precision */
data/libhdf4-4.2.15/mfhdf/ncdump/ncdump.c:619:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char flt_fmt[6];
data/libhdf4-4.2.15/mfhdf/ncdump/ncdump.c:620:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char dbl_fmt[6];
data/libhdf4-4.2.15/mfhdf/ncdump/ncdump.c:637:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    (void) sprintf(flt_fmt, "%%.%dg", (int)flt_digits);
data/libhdf4-4.2.15/mfhdf/ncdump/ncdump.c:638:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    (void) sprintf(dbl_fmt, "%%.%dg", (int)dbl_digits);
data/libhdf4-4.2.15/mfhdf/ncdump/ncdump.h:14:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[H4_MAX_NC_NAME];
data/libhdf4-4.2.15/mfhdf/ncdump/ncdump.h:19:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[H4_MAX_NC_NAME];
data/libhdf4-4.2.15/mfhdf/ncdump/ncdump.h:28:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[H4_MAX_NC_NAME];
data/libhdf4-4.2.15/mfhdf/ncdump/vardata.c:71:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char sout[100];		/* temporary string for each encoded output */
data/libhdf4-4.2.15/mfhdf/ncdump/vardata.c:80:13:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	    (void) strcat(sout, ", ");
data/libhdf4-4.2.15/mfhdf/ncdump/vardata.c:134:10:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		(void) strcat(sout, ", ");
data/libhdf4-4.2.15/mfhdf/ncdump/vardata.c:145:13:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	    (void) strcat(sout, ", ");
data/libhdf4-4.2.15/mfhdf/ncdump/vardata.c:155:13:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	    (void) strcat(sout, ", ");
data/libhdf4-4.2.15/mfhdf/ncdump/vardata.c:165:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	      (void) sprintf(sout, "FloatInf, ");
data/libhdf4-4.2.15/mfhdf/ncdump/vardata.c:168:10:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		(void) strcat(sout, ", ");
data/libhdf4-4.2.15/mfhdf/ncdump/vardata.c:174:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	  (void) sprintf(sout, "FloatInf");
data/libhdf4-4.2.15/mfhdf/ncdump/vardata.c:184:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	      (void) sprintf(sout, "DoubleInf, ");
data/libhdf4-4.2.15/mfhdf/ncdump/vardata.c:187:10:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		(void) strcat(sout, ", ");
data/libhdf4-4.2.15/mfhdf/ncdump/vardata.c:193:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	  (void) sprintf(sout, "DoubleInf");
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:97:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stmnt[C_MAX_STMNT];
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:98:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char s2[H4_MAX_NC_NAME + 2];
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:123:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(stmnt, "   int  ");
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:134:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		    strcpy(stmnt, "   int  ");
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:150:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(stmnt, "   int  ");
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:160:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		    strcpy(stmnt, "   int  ");
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:170:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(stmnt, "   int dims[%d];", maxdims);
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:188:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char type_name[12]; /* big enough for longest c typename */
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:289:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		val_string = cstrstr((char *) atts[iatt].val,
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:391:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stmnt[FORT_MAX_STMNT];
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:392:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char s2[H4_MAX_NC_NAME + 2];
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:397:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *ftypes[NC_DOUBLE + 1];
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:417:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(stmnt, "program fgennc");
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:432:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(stmnt, "integer  ");
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:440:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		    strcpy(stmnt,"integer  ");
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:455:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(stmnt,"integer  ");
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:463:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		    strcpy(stmnt,"integer  ");
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:472:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(stmnt, "integer dims(%d)", maxdims);
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:479:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(stmnt, "integer*4 corner(%d), edges(%d)", maxdims, maxdims);
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:481:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(stmnt, "integer corner(%d), edges(%d)", maxdims, maxdims);
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:499:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(s2, "%d,", (int)dims[vars[ivar].dims[idim]].size);
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:503:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		      sprintf(s2, "%d)", 1);
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:505:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		      sprintf(s2, "%d)", (int)dims[vars[ivar].dims[0]].size);
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:600:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		val_string = fstrstr((char *) atts[iatt].val,
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:801:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	(void) sprintf(cp,"'\\%o'", * (bytep + num) & 0xff);
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:807:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	(void) sprintf(cp,"%d",* (shortp + num));
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:813:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	(void) sprintf(cp,"%d",(int)* (longp + num));
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:819:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	(void) sprintf(cp,"%.8g",* (floatp + num));
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:825:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	(void) sprintf(cp,"%.16g",* (doublep + num));
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:864:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(cp,"%d",(unsigned char)ch); /* char(%d) ? */
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:871:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	(void) sprintf(cp,"%d",* (shortp + num));
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:877:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	(void) sprintf(cp,"%d",(int)* (longp + num));
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:883:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	(void) sprintf(cp,"%.8g",* (floatp + num));
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:889:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	(void) sprintf(cp,"%.16g",* (doublep + num));
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:970:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *cp, tstr[12];
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:986:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(ostr,"' '");
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:1001:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(tstr, "char(%d)", (unsigned char)*istr);
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:1011:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(cp, "//'");
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:1027:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(tstr, "//char(%d)", (unsigned char)*istr);
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:1056:11:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	  (void) strcat(filename,".nc"); /* new, favored extension */
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:1058:11:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	  (void) strcat(filename,".cdf"); /* old, deprecated extension */
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:139:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stmnt[C_MAX_STMNT];
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:141:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char s2[H4_MAX_NC_NAME + 2];
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:222:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(s2, "%d, ", *charvalp++);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:225:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(s2, "%d, ", *shortvalp++);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:228:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(s2, "%d, ", (int)*longvalp++);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:231:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(s2, "%.8g, ", *floatvalp++);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:234:25:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                        sprintf(s2, "%#.16g", *doublevalp++);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:236:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(s2, ", ");
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:253:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(s2, "%d", *charvalp);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:256:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(s2, "%d", *shortvalp);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:259:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(s2, "%d", (int)*longvalp);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:262:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(s2, "%.8g", *floatvalp);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:265:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
 			sprintf(s2, "%#.16g", *doublevalp++);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:282:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(stmnt,"};");
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:307:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(s2, "%d", *charvalp);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:312:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(s2, "%d", *shortvalp);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:317:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(s2, "%d", (int)*longvalp);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:322:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(s2, "%.8g", *floatvalp);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:327:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
 	    sprintf(s2, "%#.16g", *doublevalp++);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:334:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(stmnt,"};");
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:381:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stmnt[FORT_MAX_STMNT];
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:383:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char s2[H4_MAX_NC_NAME + 2];
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:391:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(stmnt, "corner(%d) = 1", idim);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:395:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(stmnt, "corner(%d) = %d", idim, (int)(netcdf_record_number+1));
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:398:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(stmnt, "corner(%d) = 1", idim);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:402:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(stmnt, "edges(%d) = %d", vars[varnum].ndims - idim,
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:407:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(stmnt, "edges(%d) = 1", vars[varnum].ndims - idim);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:410:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(stmnt, "edges(%d) = %d", vars[varnum].ndims - idim,
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:439:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(s2, "%d, ", *shortvalp++);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:442:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(s2, "%d", *shortvalp);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:448:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(s2, "%d, ", (int)*longvalp++);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:451:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(s2, "%d", (int)*longvalp);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:457:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(s2, "%.8g, ", *floatvalp++);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:460:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(s2, "%.8g", *floatvalp);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:466:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
 		sprintf(s2, "%#.16g", *doublevalp++);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:471:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
 	    sprintf(s2, "%#.16g", *doublevalp++);
data/libhdf4-4.2.15/mfhdf/ncgen/main.c:119:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fp = fopen(argv[0], "r")) == NULL) {
data/libhdf4-4.2.15/mfhdf/ncgen/ncgentab.c:155:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char termstring[MAXTRST]; /* last terminal string read */
data/libhdf4-4.2.15/mfhdf/ncgen/ncgentab.c:1077:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
data/libhdf4-4.2.15/mfhdf/ncgen/ncgentab.c:1094:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char yyformat[sizeof yyunexpected
data/libhdf4-4.2.15/mfhdf/ncgen/ncgentab.c:1262:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char yymsgbuf[128];
data/libhdf4-4.2.15/mfhdf/ncgen/ncgentab.c:1552:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		     dims[ndims].name = (char *) emalloc(strlen((yyvsp[(1) - (1)])->name)+1);
data/libhdf4-4.2.15/mfhdf/ncgen/ncgentab.c:1600:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		    vars[nvars].name = (char *) emalloc(strlen((yyvsp[(1) - (1)])->name)+1);
data/libhdf4-4.2.15/mfhdf/ncgen/ncgentab.c:1698:30:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		       atts[natts].name = (char *) emalloc(strlen((yyvsp[(1) - (1)])->name)+1);
data/libhdf4-4.2.15/mfhdf/ncgen/ncgenyy.c:583:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char errstr[100];        /* for short error messages */
data/libhdf4-4.2.15/mfhdf/nctest/atttests.c:972:12:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    (void) strcpy(att.name,"attx");
data/libhdf4-4.2.15/mfhdf/nctest/dimtests.c:318:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char newname[H4_MAX_NC_NAME] = /* dimension name */
data/libhdf4-4.2.15/mfhdf/nctest/driver.c:47:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    dbg_file=fopen("test.dbg","w+");
data/libhdf4-4.2.15/mfhdf/nctest/slabs.c:55:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cp[1];
data/libhdf4-4.2.15/mfhdf/nctest/slabs.c:86:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	((char *)v)[ii] = (char) val;
data/libhdf4-4.2.15/mfhdf/nctest/slabs.c:125:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cp[1];
data/libhdf4-4.2.15/mfhdf/nctest/vardef.c:301:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	Free((char *) va[iv].dims);
data/libhdf4-4.2.15/mfhdf/nctest/varget_unlim.c:55:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char testfile[512];
data/libhdf4-4.2.15/mfhdf/nctest/varget_unlim.c:76:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(testfile, "./");
data/libhdf4-4.2.15/mfhdf/nctest/vputget.c:130:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    Free ((char *) hc[ie].vals);
data/libhdf4-4.2.15/mfhdf/nctest/vputgetg.c:175:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    Free ((char *) hc[ie].vals);
data/libhdf4-4.2.15/mfhdf/test/cdftest.c:73:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char mnem[H4_MAX_NC_NAME] ;
data/libhdf4-4.2.15/mfhdf/test/cdftest.c:81:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char mnem[H4_MAX_NC_NAME] ;
data/libhdf4-4.2.15/mfhdf/test/cdftest.c:88:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            by[8] ;
data/libhdf4-4.2.15/mfhdf/test/cdftest.c:151:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cp[H4_MAX_NC_NAME] ;
data/libhdf4-4.2.15/mfhdf/test/cdftest.c:373:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char sentence[NUM_RECS* SIZE_1 -1] =
data/libhdf4-4.2.15/mfhdf/test/cdftest.c:397:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char new[256];
data/libhdf4-4.2.15/mfhdf/test/cdftest.c:407:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    dbg_file=fopen("test.dbg","w+");
data/libhdf4-4.2.15/mfhdf/test/hdftest.c:89:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[90];
data/libhdf4-4.2.15/mfhdf/test/hdftest.c:90:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char text[256];
data/libhdf4-4.2.15/mfhdf/test/hdftest.c:93:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    l[80], u[80], fmt[80], c[80];
data/libhdf4-4.2.15/mfhdf/test/tattdatainfo.c:84:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  data3[LENGTH3_X], outdata3[LENGTH3_X];
data/libhdf4-4.2.15/mfhdf/test/tattdatainfo.c:85:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  sds_name[20];
data/libhdf4-4.2.15/mfhdf/test/tattdatainfo.c:225:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char readfbuf_str[12], data2_str[12]; /* for comparing readfbuf values */
data/libhdf4-4.2.15/mfhdf/test/tattdatainfo.c:230:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(ATTR_FILE, O_RDONLY);
data/libhdf4-4.2.15/mfhdf/test/tattdatainfo.c:397:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        inlabel[MAXLEN_LAB], *indesc;
data/libhdf4-4.2.15/mfhdf/test/tattdatainfo.c:432:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char   labels[2][MAXLEN_LAB], descs[2][MAXLEN_DESC], tempstr[MAXLEN_DESC];
data/libhdf4-4.2.15/mfhdf/test/tattdatainfo.c:523:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        labels[2][MAXLEN_LAB], descs[2][MAXLEN_DESC];
data/libhdf4-4.2.15/mfhdf/test/tattdatainfo.c:597:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        labsds[MAXLEN_LAB], labris[MAXLEN_LAB], descsds[MAXLEN_DESC],
data/libhdf4-4.2.15/mfhdf/test/tattdatainfo.c:866:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        in_datalabel[256], in_dataunit[256], in_datafmt[256], in_coordsys[256];
data/libhdf4-4.2.15/mfhdf/test/tattdatainfo.c:868:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char  *dimlabels[2], *dimunits[2], *dimfmts[2];
data/libhdf4-4.2.15/mfhdf/test/tattdatainfo.c:869:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        in_dimlabels[2][256], in_dimunits[2][256], in_dimfmts[2][256];
data/libhdf4-4.2.15/mfhdf/test/tattdatainfo.c:1046:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = fopen(filename, "r");
data/libhdf4-4.2.15/mfhdf/test/tattributes.c:88:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  sds_name[20], dim_name[20];
data/libhdf4-4.2.15/mfhdf/test/tattributes.c:100:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  attr_name[H4_MAX_NC_NAME], attr_values[80];
data/libhdf4-4.2.15/mfhdf/test/tcoordvar.c:88:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  sds_name[20];
data/libhdf4-4.2.15/mfhdf/test/tcoordvar.c:100:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  attr_name[H4_MAX_NC_NAME], attr_values[80];
data/libhdf4-4.2.15/mfhdf/test/tcoordvar.c:290:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  sds_name[20];
data/libhdf4-4.2.15/mfhdf/test/tcoordvar.c:498:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  sds_name[20];
data/libhdf4-4.2.15/mfhdf/test/tcoordvar.c:514:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  line[40];
data/libhdf4-4.2.15/mfhdf/test/tcoordvar.c:515:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  contents[7][40]={
data/libhdf4-4.2.15/mfhdf/test/tdatainfo.c:156:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char data3[LENGTH3_X], outdata3[LENGTH3_X];
data/libhdf4-4.2.15/mfhdf/test/tdatainfo.c:243:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(data3, "The data of 3rd SDS.");
data/libhdf4-4.2.15/mfhdf/test/tdatainfo.c:365:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char readfbuf_str[12], data2_str[12]; /* for comparing readfbuf values */
data/libhdf4-4.2.15/mfhdf/test/tdatainfo.c:370:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fd = open(SIMPLE_FILE, O_RDONLY);
data/libhdf4-4.2.15/mfhdf/test/tdatainfo.c:515:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char data3[LENGTH3_X];
data/libhdf4-4.2.15/mfhdf/test/tdatainfo.c:654:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(data3, "The data of 3rd SDS.");
data/libhdf4-4.2.15/mfhdf/test/tdatainfo.c:823:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fd = open(SIMPLE_FILE, O_RDONLY);
data/libhdf4-4.2.15/mfhdf/test/tdatainfo.c:1221:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(CHK_FILE, O_RDONLY);
data/libhdf4-4.2.15/mfhdf/test/tdatasizes.c:53:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char mesg[80];
data/libhdf4-4.2.15/mfhdf/test/tdim.c:79:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char   dim_name[H4_MAX_NC_NAME], name[H4_MAX_NC_NAME];
data/libhdf4-4.2.15/mfhdf/test/tdim.c:295:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char   dim_name[H4_MAX_NC_NAME], name[H4_MAX_NC_NAME];
data/libhdf4-4.2.15/mfhdf/test/tdim.c:544:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char   dim_name[H4_MAX_NC_NAME], name[H4_MAX_NC_NAME];
data/libhdf4-4.2.15/mfhdf/test/tdim.c:550:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char   label[DIMSTRS_LEN], unit[DIMSTRS_LEN], format[DIMSTRS_LEN];
data/libhdf4-4.2.15/mfhdf/test/temptySDSs.c:53:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char mesg[80];
data/libhdf4-4.2.15/mfhdf/test/temptySDSs.c:91:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char mesg[80];
data/libhdf4-4.2.15/mfhdf/test/texternal.c:729:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[80];
data/libhdf4-4.2.15/mfhdf/test/tfile.c:176:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  filename[NUM_FILES_HI][10];    /* holds generated file names */
data/libhdf4-4.2.15/mfhdf/test/tfile.c:177:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  readfname[H4_MAX_NC_NAME];    /* file name retrieved from file id */
data/libhdf4-4.2.15/mfhdf/test/tfile.c:200:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(filename[index], "file%i", index);
data/libhdf4-4.2.15/mfhdf/test/tfile.c:257:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(filename[index], "file%i", index);
data/libhdf4-4.2.15/mfhdf/test/tfile.c:332:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char dsname[10];
data/libhdf4-4.2.15/mfhdf/test/tfile.c:333:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char filename[256];
data/libhdf4-4.2.15/mfhdf/test/tfile.c:337:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(dsname, "dataset 1");
data/libhdf4-4.2.15/mfhdf/test/tfile.c:338:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(filename, "This file name has quite a few characters because it is used to test the fix of bugzilla 1331. It has to be at least this long to see.");
data/libhdf4-4.2.15/mfhdf/test/tfile.c:387:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  testfile[512] = "";
data/libhdf4-4.2.15/mfhdf/test/tmixed_apis.c:260:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char   *check_vg_names[3] = {"Vgroup_1", "Vgroup_2", "Vgroup_3"};
data/libhdf4-4.2.15/mfhdf/test/tmixed_apis.c:261:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char   *check_vd_names[1] = {"Vdata_1"};
data/libhdf4-4.2.15/mfhdf/test/tmixed_apis.c:474:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    internal_array1[20] = {TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE,
data/libhdf4-4.2.15/mfhdf/test/tmixed_apis.c:476:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    internal_array2[9] = {TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE,
data/libhdf4-4.2.15/mfhdf/test/tncunlim.c:63:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  varname[11];		/* variable name */
data/libhdf4-4.2.15/mfhdf/test/tncunlim.c:295:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  varname[11];		/* variable name */
data/libhdf4-4.2.15/mfhdf/test/tncunlim.c:650:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  varname[12];		/* variable name */
data/libhdf4-4.2.15/mfhdf/test/tncvargetfill.c:156:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char  varname[H4_MAX_NC_NAME];	/* variable name */
data/libhdf4-4.2.15/mfhdf/test/tncvargetfill.c:470:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char  varname[H4_MAX_NC_NAME];	/* variable name */
data/libhdf4-4.2.15/mfhdf/test/tncvargetfill.c:599:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  varname[H4_MAX_NC_NAME];	/* variable name */
data/libhdf4-4.2.15/mfhdf/test/tnetcdf.c:55:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  dim_name[H4_MAX_NC_NAME], name[H4_MAX_NC_NAME];
data/libhdf4-4.2.15/mfhdf/test/tnetcdf.c:57:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  testfile[512] = "";
data/libhdf4-4.2.15/mfhdf/test/tnetcdf.c:76:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(testfile, "./");
data/libhdf4-4.2.15/mfhdf/test/tnetcdf.c:143:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  name[H4_MAX_NC_NAME];
data/libhdf4-4.2.15/mfhdf/test/tnetcdf.c:148:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  testfile[512] = "";
data/libhdf4-4.2.15/mfhdf/test/tnetcdf.c:169:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(testfile, "./");
data/libhdf4-4.2.15/mfhdf/test/tsdsprops.c:190:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  ds_name[20];
data/libhdf4-4.2.15/mfhdf/test/tsdsprops.c:333:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    sds_name[20];
data/libhdf4-4.2.15/mfhdf/test/tsdsprops.c:348:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(sds_name,"test%d",i);
data/libhdf4-4.2.15/mfhdf/test/tsdsprops.c:464:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  ds_name[20];
data/libhdf4-4.2.15/mfhdf/test/tszip.c:40:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char 	name[H4_MAX_NC_NAME];
data/libhdf4-4.2.15/mfhdf/test/tszip.c:172:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char	name[H4_MAX_NC_NAME];
data/libhdf4-4.2.15/mfhdf/test/tszip.c:294:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char	name[H4_MAX_NC_NAME];
data/libhdf4-4.2.15/mfhdf/test/tszip.c:416:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char	name[H4_MAX_NC_NAME];
data/libhdf4-4.2.15/mfhdf/test/tszip.c:538:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char	name[H4_MAX_NC_NAME];
data/libhdf4-4.2.15/mfhdf/test/tszip.c:1096:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char	name[H4_MAX_NC_NAME];
data/libhdf4-4.2.15/mfhdf/test/tszip.c:1255:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char	name[H4_MAX_NC_NAME];
data/libhdf4-4.2.15/mfhdf/test/tszip.c:1263:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char	testfile[512] = "";
data/libhdf4-4.2.15/mfhdf/test/tszip.c:1354:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char	name[H4_MAX_NC_NAME];
data/libhdf4-4.2.15/mfhdf/test/tszip.c:1361:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char	testfile[512] = "";
data/libhdf4-4.2.15/mfhdf/test/tunlim.c:77:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  info[40];		/* holds brief info where failure occurs */
data/libhdf4-4.2.15/mfhdf/test/tunlim.c:79:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  ds_name[20];		/* dataset name */
data/libhdf4-4.2.15/mfhdf/test/tutils.c:54:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(tempfile, "./");
data/libhdf4-4.2.15/mfhdf/test/tutils.c:312:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char name[80];
data/libhdf4-4.2.15/mfhdf/test/tutils.c:356:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  msg[80];
data/libhdf4-4.2.15/mfhdf/util/getopt.c:7:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char errbuf[2];\
data/libhdf4-4.2.15/mfhdf/util/getopt.c:17:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char errbuf[2];\
data/libhdf4-4.2.15/mfhdf/xdr/xdr.c:64:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char xdr_zero[BYTES_PER_XDR_UNIT] = { 0, 0, 0, 0 };
data/libhdf4-4.2.15/mfhdf/xdr/xdrtest.c:77:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char text[32] ={ "Hiya sailor. New in town?" };
data/libhdf4-4.2.15/mfhdf/xdr/xdrtest.c:78:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char got_s[32] ;
data/libhdf4-4.2.15/mfhdf/xdr/xdrtest.c:80:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static unsigned char bytes[8] = { 254, 255, 0, 1, 2} ;
data/libhdf4-4.2.15/mfhdf/xdr/xdrtest.c:81:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char *bp , got_ab[8] ;
data/libhdf4-4.2.15/mfhdf/xdr/xdrtest.c:135:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    F = fopen(fname,"wb") ;
data/libhdf4-4.2.15/mfhdf/xdr/xdrtest.c:137:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    F = fopen(fname,"w") ;
data/libhdf4-4.2.15/mfhdf/xdr/xdrtest.c:222:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    F = fopen(fname,"rb") ;
data/libhdf4-4.2.15/mfhdf/xdr/xdrtest.c:224:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    F = fopen(fname,"r") ;
data/libhdf4-4.2.15/hdf/examples/AN_create_annotation.c:46:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                          strlen (FILE_LABEL_TXT));
data/libhdf4-4.2.15/hdf/examples/AN_create_annotation.c:57:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                          strlen (FILE_DESC_TXT));
data/libhdf4-4.2.15/hdf/examples/AN_create_annotation.c:84:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                          strlen (DATA_LABEL_TXT));
data/libhdf4-4.2.15/hdf/examples/AN_create_annotation.c:95:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   status_32 = ANwriteann (data_desc_id, DATA_DESC_TXT, strlen (DATA_DESC_TXT));
data/libhdf4-4.2.15/hdf/src/dfi.h:139:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define DF_READ(a,b,c,d) read(d,a,b*c)
data/libhdf4-4.2.15/hdf/src/hcomp.c:1377:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if ((*(info->minfo.model_funcs.read))(access_rec, length, data) == FAIL)
data/libhdf4-4.2.15/hdf/src/hdfi.h:1761:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#  define HDstrlen(s)       (strlen((const char *)(s)))
data/libhdf4-4.2.15/hdf/src/hdfi.h:1763:34:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
#  define HDstrncpy(s1,s2,n)    (strncpy((s1),(s2),(n)))
data/libhdf4-4.2.15/hdf/src/hfile.c:1416:47:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      ret_value = (*access_rec->special_func->read) (access_rec, length, data);
data/libhdf4-4.2.15/hdf/src/hfile.h:104:40:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#   define HI_READ(f, b, n)     (((n)==read((f), (char *)(b), (n))) ? SUCCEED : FAIL)
data/libhdf4-4.2.15/hdf/src/hfile.h:393:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      int32       (*read) (accrec_t * access_rec, int32 length, void * data);
data/libhdf4-4.2.15/hdf/src/mstdio.c:220:43:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if ((ret = (*(info->cinfo.coder_funcs.read)) (access_rec, length, data)) == FAIL)
data/libhdf4-4.2.15/hdf/src/vgp.c:1398:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      vgnamelen = strlen(vg->vgname);
data/libhdf4-4.2.15/hdf/src/vgp.c:1401:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      vgclasslen = strlen(vg->vgclass);
data/libhdf4-4.2.15/hdf/test/bitio.c:167:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (srcdir && ((strlen(srcdir) + strlen(DATAFILE_NAME) + 1) < sizeof(datafile))) {
data/libhdf4-4.2.15/hdf/test/bitio.c:167:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (srcdir && ((strlen(srcdir) + strlen(DATAFILE_NAME) + 1) < sizeof(datafile))) {
data/libhdf4-4.2.15/hdf/test/bitio.c:169:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(datafile, "/");
data/libhdf4-4.2.15/hdf/test/buffer.c:161:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(base_name) >= size)
data/libhdf4-4.2.15/hdf/test/forsupf.c:90:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (srcdir && ((strlen(srcdir) + strlen(c_name) + 1) < sizeof(testfile))) {
data/libhdf4-4.2.15/hdf/test/forsupf.c:90:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (srcdir && ((strlen(srcdir) + strlen(c_name) + 1) < sizeof(testfile))) {
data/libhdf4-4.2.15/hdf/test/forsupf.c:92:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(testfile, "/");
data/libhdf4-4.2.15/hdf/test/forsupf.c:95:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    *name_len_out = (intf) strlen(testfile);
data/libhdf4-4.2.15/hdf/test/litend.c:91:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (srcdir && ((strlen(srcdir) + strlen(FILENAME) + 1) < sizeof(filename))) {
data/libhdf4-4.2.15/hdf/test/litend.c:91:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (srcdir && ((strlen(srcdir) + strlen(FILENAME) + 1) < sizeof(filename))) {
data/libhdf4-4.2.15/hdf/test/litend.c:93:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(filename, "/");
data/libhdf4-4.2.15/hdf/test/man.c:300:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    printf("found ann_len=%d, file label=%s\n", strlen(ann_label),ann_label);
data/libhdf4-4.2.15/hdf/test/man.c:433:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          printf("found ann_len=%d, file label=%s\n", strlen(ann_label),ann_label);
data/libhdf4-4.2.15/hdf/test/man.c:488:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          printf("found ann_len=%d, file desc=%s\n", strlen(ann_desc),ann_desc);
data/libhdf4-4.2.15/hdf/test/man.c:655:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          printf("found data_len=%d, data label=%s\n", strlen(ann_label),ann_label);
data/libhdf4-4.2.15/hdf/test/man.c:706:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          printf("found data desclen=%d, desc=%s\n", strlen(ann_desc),ann_desc);
data/libhdf4-4.2.15/hdf/test/mgr.c:258:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (srcdir && ((strlen(srcdir) + strlen(DATAFILE) + 1) < sizeof(datafile))) {
data/libhdf4-4.2.15/hdf/test/mgr.c:258:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (srcdir && ((strlen(srcdir) + strlen(DATAFILE) + 1) < sizeof(datafile))) {
data/libhdf4-4.2.15/hdf/test/mgr.c:260:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(datafile, "/");
data/libhdf4-4.2.15/hdf/test/mgr.c:1788:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (srcdir && ((strlen(srcdir) + strlen(DATAFILE) + 1) < sizeof(datafile))) {
data/libhdf4-4.2.15/hdf/test/mgr.c:1788:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (srcdir && ((strlen(srcdir) + strlen(DATAFILE) + 1) < sizeof(datafile))) {
data/libhdf4-4.2.15/hdf/test/mgr.c:1790:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(datafile, "/");
data/libhdf4-4.2.15/hdf/test/mgr.c:2887:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (srcdir && ((strlen(srcdir) + strlen(OLDRLEFILE) + 1) < sizeof(oldrlefile))) {
data/libhdf4-4.2.15/hdf/test/mgr.c:2887:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (srcdir && ((strlen(srcdir) + strlen(OLDRLEFILE) + 1) < sizeof(oldrlefile))) {
data/libhdf4-4.2.15/hdf/test/mgr.c:2889:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(oldrlefile, "/");
data/libhdf4-4.2.15/hdf/test/mgr.c:2957:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (srcdir && ((strlen(srcdir) + strlen(OLDGREYJPEGFILE) + 1) < sizeof(oldgreyjpegfile))) {
data/libhdf4-4.2.15/hdf/test/mgr.c:2957:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (srcdir && ((strlen(srcdir) + strlen(OLDGREYJPEGFILE) + 1) < sizeof(oldgreyjpegfile))) {
data/libhdf4-4.2.15/hdf/test/mgr.c:2959:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(oldgreyjpegfile, "/");
data/libhdf4-4.2.15/hdf/test/mgr.c:3020:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (srcdir && ((strlen(srcdir) + strlen(OLDJPEGFILE) + 1) < sizeof(oldjpegfile))) {
data/libhdf4-4.2.15/hdf/test/mgr.c:3020:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (srcdir && ((strlen(srcdir) + strlen(OLDJPEGFILE) + 1) < sizeof(oldjpegfile))) {
data/libhdf4-4.2.15/hdf/test/mgr.c:3022:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(oldjpegfile, "/");
data/libhdf4-4.2.15/hdf/test/mgr.c:3122:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (srcdir && ((strlen(srcdir) + strlen(GR_R24FILE) + 1) < sizeof(gr_r24file))) {
data/libhdf4-4.2.15/hdf/test/mgr.c:3122:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (srcdir && ((strlen(srcdir) + strlen(GR_R24FILE) + 1) < sizeof(gr_r24file))) {
data/libhdf4-4.2.15/hdf/test/mgr.c:3124:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(gr_r24file, "/");
data/libhdf4-4.2.15/hdf/test/mgr.c:3399:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (srcdir && ((strlen(srcdir) + strlen(GR_R24FILE) + 1) < sizeof(gr_r24file))) {
data/libhdf4-4.2.15/hdf/test/mgr.c:3399:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (srcdir && ((strlen(srcdir) + strlen(GR_R24FILE) + 1) < sizeof(gr_r24file))) {
data/libhdf4-4.2.15/hdf/test/mgr.c:3401:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(gr_r24file, "/");
data/libhdf4-4.2.15/hdf/test/tdatainfo.c:687:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    status = ANwriteann(file_label_id, FILE_LABEL_TXT, strlen (FILE_LABEL_TXT));
data/libhdf4-4.2.15/hdf/test/tdatainfo.c:693:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    status = ANwriteann(file_desc_id, FILE_DESC_TXT, strlen (FILE_DESC_TXT));
data/libhdf4-4.2.15/hdf/test/tdatainfo.c:713:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    status = ANwriteann(data_label_id, DATA_LABEL_TXT, strlen(DATA_LABEL_TXT));
data/libhdf4-4.2.15/hdf/test/tdatainfo.c:719:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    status = ANwriteann(data_desc_id, DATA_DESC_TXT, strlen(DATA_DESC_TXT));
data/libhdf4-4.2.15/hdf/test/tutils.c:63:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (srcdir && ((strlen(srcdir) + strlen(basename) + 1) < size))
data/libhdf4-4.2.15/hdf/test/tutils.c:63:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (srcdir && ((strlen(srcdir) + strlen(basename) + 1) < size))
data/libhdf4-4.2.15/hdf/test/tutils.c:66:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(tempfile, "/");
data/libhdf4-4.2.15/hdf/util/getopt.c:204:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
extern size_t strlen (const char *);
data/libhdf4-4.2.15/hdf/util/getopt.c:483:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    if (s - nextchar == strlen (p->name))
data/libhdf4-4.2.15/hdf/util/getopt.c:507:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  nextchar += strlen (nextchar);
data/libhdf4-4.2.15/hdf/util/getopt.c:537:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		  nextchar += strlen (nextchar);
data/libhdf4-4.2.15/hdf/util/getopt.c:550:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		  nextchar += strlen (nextchar);
data/libhdf4-4.2.15/hdf/util/getopt.c:554:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  nextchar += strlen (nextchar);
data/libhdf4-4.2.15/hdf/util/he_cntrl.c:1070:16:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          ch = getc(stdin);
data/libhdf4-4.2.15/hdf/util/he_cntrl.c:1075:26:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    ch = getchar();
data/libhdf4-4.2.15/hdf/util/he_cntrl.c:1080:24:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                  ch = getchar();
data/libhdf4-4.2.15/hdf/util/he_cntrl.c:1090:24:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                  ch = getchar();
data/libhdf4-4.2.15/hdf/util/he_cntrl.c:1093:24:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                  ch = getchar();
data/libhdf4-4.2.15/hdf/util/he_cntrl.c:1096:24:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                  ch = getchar();
data/libhdf4-4.2.15/hdf/util/he_cntrl.c:1100:34:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                            ch = getchar();
data/libhdf4-4.2.15/hdf/util/he_cntrl.c:1102:30:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        ch = getchar();
data/libhdf4-4.2.15/hdf/util/he_cntrl.c:1104:24:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                  ch = getchar();   /* Skip over the QUOTE */
data/libhdf4-4.2.15/hdf/util/he_cntrl.c:1110:28:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                      ch = getchar();
data/libhdf4-4.2.15/hdf/util/he_cntrl.c:1120:24:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                  ch = getchar();
data/libhdf4-4.2.15/hdf/util/he_main.c:1195:13:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        c = getchar();
data/libhdf4-4.2.15/hdf/util/jpeg2hdf.c:96:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    a = fgetc(f);
data/libhdf4-4.2.15/mfhdf/dumper/hdp_sds.c:715:5:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
    strcpy(opt_mask_strg, "");	/* init string to empty string */
data/libhdf4-4.2.15/mfhdf/dumper/hdp_sds.c:727:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(opt_mask_strg) > 0)
data/libhdf4-4.2.15/mfhdf/dumper/hdp_sds.c:729:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(opt_mask_strg, "|");
data/libhdf4-4.2.15/mfhdf/dumper/hdp_sds.c:737:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(opt_mask_strg) > 0)
data/libhdf4-4.2.15/mfhdf/dumper/hdp_sds.c:739:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(opt_mask_strg, "|");
data/libhdf4-4.2.15/mfhdf/dumper/hdp_sds.c:747:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(opt_mask_strg) > 0)
data/libhdf4-4.2.15/mfhdf/dumper/hdp_sds.c:749:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(opt_mask_strg, "|");
data/libhdf4-4.2.15/mfhdf/dumper/hdp_sds.c:757:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(opt_mask_strg) > 0)
data/libhdf4-4.2.15/mfhdf/dumper/hdp_sds.c:759:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(opt_mask_strg, "|");
data/libhdf4-4.2.15/mfhdf/dumper/hdp_sds.c:767:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(opt_mask_strg) > 0)
data/libhdf4-4.2.15/mfhdf/dumper/hdp_sds.c:769:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(opt_mask_strg, "|");
data/libhdf4-4.2.15/mfhdf/dumper/hdp_sds.c:777:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(opt_mask_strg) > 0)
data/libhdf4-4.2.15/mfhdf/dumper/hdp_sds.c:779:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(opt_mask_strg, "|");
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimporttest.c:284:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    (void) fwrite(fp32, strlen(fp32), 1, sp);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimporttest.c:301:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    (void) fwrite(in32, strlen(in32), 1, sp);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimporttest.c:318:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    (void) fwrite(in16, strlen(in16), 1, sp);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimporttest.c:335:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    (void) fwrite(in8, strlen(in8), 1, sp);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimporttest.c:352:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    (void) fwrite(fp32, strlen(fp32), 1, sp);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimporttest.c:372:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    (void) fwrite(in32, strlen(in32), 1, sp);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimporttest.c:392:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    (void) fwrite(in16, strlen(in16), 1, sp);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimporttest.c:412:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    (void) fwrite(in8, strlen(in8), 1, sp);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimporttest.c:436:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    (void) fwrite(fp64, strlen(fp64), 1, sp);
data/libhdf4-4.2.15/mfhdf/hdfimport/hdfimporttest.c:453:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    (void) fwrite(fp64, strlen(fp64), 1, sp);
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_list.c:1521:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        path = (char*)HDmalloc(strlen(path_name) + strlen(obj_name) + 2);
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_list.c:1521:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        path = (char*)HDmalloc(strlen(path_name) + strlen(obj_name) + 2);
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_list.c:1528:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        path = (char*)HDmalloc(strlen(obj_name) + 1);
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_misc.c:48:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
 newc = (char *) malloc((unsigned) (strlen(cp)+1));
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_misc.c:201:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   ll = strlen(gps);
data/libhdf4-4.2.15/mfhdf/hdiff/hdiff_misc.c:264:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   *cpp = (char *) malloc(strlen(cp) + 1);
data/libhdf4-4.2.15/mfhdf/hdiff/hdifftst.c:559:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (ANwriteann (file_label_id,FILE_LABEL_TXT,strlen (FILE_LABEL_TXT))==FAIL)
data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_parse.c:47:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t      len=strlen(str);
data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_parse.c:345:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t      len=strlen(str);
data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_parse.c:478:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t      len=strlen(str);
data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_sds.c:993:5:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
    sprintf(comp_str,"\0");
data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_utils.c:88:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        path = (char*) malloc(strlen(path_name) + strlen(obj_name) + 2);
data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_utils.c:88:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        path = (char*) malloc(strlen(path_name) + strlen(obj_name) + 2);
data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_utils.c:90:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat( path, "/" );
data/libhdf4-4.2.15/mfhdf/hrepack/hrepack_utils.c:95:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        path = (char*) malloc(strlen(obj_name) + 1);
data/libhdf4-4.2.15/mfhdf/hrepack/hrepacktst.c:913:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (ANwriteann (data_label_id, DATA_LABEL_TXT, strlen (DATA_LABEL_TXT))==FAIL){
data/libhdf4-4.2.15/mfhdf/hrepack/hrepacktst.c:922:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (ANwriteann (data_desc_id, DATA_DESC_TXT, strlen (DATA_DESC_TXT))==FAIL){
data/libhdf4-4.2.15/mfhdf/hrepack/hrepacktst.c:2115:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (ANwriteann (file_label_id,FILE_LABEL_TXT,strlen (FILE_LABEL_TXT))==FAIL)
data/libhdf4-4.2.15/mfhdf/hrepack/hrepacktst.c:2125:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (ANwriteann (file_desc_id, FILE_DESC_TXT, strlen (FILE_DESC_TXT))==FAIL)
data/libhdf4-4.2.15/mfhdf/hrepack/hrepacktst.c:2153:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (ANwriteann (data_label_id, DATA_LABEL_TXT, strlen (DATA_LABEL_TXT))==FAIL)
data/libhdf4-4.2.15/mfhdf/hrepack/hrepacktst.c:2163:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (ANwriteann (data_desc_id, DATA_DESC_TXT, strlen (DATA_DESC_TXT))==FAIL)
data/libhdf4-4.2.15/mfhdf/libsrc/attr.c:37:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ret->name = NC_new_string((unsigned)strlen(name),name) ;
data/libhdf4-4.2.15/mfhdf/libsrc/attr.c:167:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(name) ;
data/libhdf4-4.2.15/mfhdf/libsrc/attr.c:353:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void)strncpy( name, (*attr)->name->values, (*attr)->name->len) ;
data/libhdf4-4.2.15/mfhdf/libsrc/attr.c:413:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		new = NC_new_string((unsigned)strlen(newname),newname) ;
data/libhdf4-4.2.15/mfhdf/libsrc/attr.c:420:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	new = NC_re_string(old, (unsigned)strlen(newname),newname) ;
data/libhdf4-4.2.15/mfhdf/libsrc/attr.c:485:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(name);
data/libhdf4-4.2.15/mfhdf/libsrc/cdf.c:429:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          HDstrncpy(cdf->path, name, strlen(name)+1);
data/libhdf4-4.2.15/mfhdf/libsrc/cdf.c:430:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          cdf->path[strlen(name)] = '\0';
data/libhdf4-4.2.15/mfhdf/libsrc/cdf.c:434:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          HDstrncpy(cdf->path, name, strlen(name)+1);
data/libhdf4-4.2.15/mfhdf/libsrc/cdf.c:435:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          cdf->path[strlen(name)] = '\0';
data/libhdf4-4.2.15/mfhdf/libsrc/cdf.c:1221:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(fields, "SDS variable", 13);
data/libhdf4-4.2.15/mfhdf/libsrc/cdf.c:1222:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(vsclass, _HDF_SDSVAR, 7);
data/libhdf4-4.2.15/mfhdf/libsrc/cdf.c:1226:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(fields, "Coordinate variable", 20);
data/libhdf4-4.2.15/mfhdf/libsrc/cdf.c:1227:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(vsclass, _HDF_CRDVAR, 9);
data/libhdf4-4.2.15/mfhdf/libsrc/dim.c:35:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ret->name = NC_new_string((unsigned)strlen(name),name) ;
data/libhdf4-4.2.15/mfhdf/libsrc/dim.c:137:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(name) ;
data/libhdf4-4.2.15/mfhdf/libsrc/dim.c:173:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen(name) ;
data/libhdf4-4.2.15/mfhdf/libsrc/dim.c:201:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(name) ;
data/libhdf4-4.2.15/mfhdf/libsrc/dim.c:242:15:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        (void)strncpy( name, (*dp)->name->values,
data/libhdf4-4.2.15/mfhdf/libsrc/dim.c:282:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(newname) ;
data/libhdf4-4.2.15/mfhdf/libsrc/dim.c:301:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        new = NC_new_string((unsigned)strlen(newname),newname) ;
data/libhdf4-4.2.15/mfhdf/libsrc/dim.c:308:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    new = NC_re_string(old, (unsigned)strlen(newname),newname) ;
data/libhdf4-4.2.15/mfhdf/libsrc/file.c:328:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    (void) strncpy(handle->path, path, FILENAME_MAX) ;
data/libhdf4-4.2.15/mfhdf/libsrc/file.c:459:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
          (void)strncpy(path, handle->path, FILENAME_MAX) ; /* stash path */
data/libhdf4-4.2.15/mfhdf/libsrc/file.c:716:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    (void) strncpy(new->path, scratchfile, FILENAME_MAX) ;
data/libhdf4-4.2.15/mfhdf/libsrc/file.c:1013:18:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
          (void) strncpy(handle->path, realpath, FILENAME_MAX) ;
data/libhdf4-4.2.15/mfhdf/libsrc/string.c:90:23:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                (void)strncpy(ret->values, str, count) ;
data/libhdf4-4.2.15/mfhdf/libsrc/string.c:197:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                (*spp)->len = strlen((*spp)->values);
data/libhdf4-4.2.15/mfhdf/libsrc/var.c:40:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ret->name = NC_new_string((unsigned)strlen(name),name) ;
data/libhdf4-4.2.15/mfhdf/libsrc/var.c:321:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            len = strlen(name) ;
data/libhdf4-4.2.15/mfhdf/libsrc/var.c:423:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(name) ;
data/libhdf4-4.2.15/mfhdf/libsrc/var.c:506:15:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        (void)strncpy( name, vp->name->values, vp->name->len) ;
data/libhdf4-4.2.15/mfhdf/libsrc/var.c:559:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(newname) ;
data/libhdf4-4.2.15/mfhdf/libsrc/var.c:588:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        new = NC_new_string((unsigned)strlen(newname),newname) ;
data/libhdf4-4.2.15/mfhdf/libsrc/var.c:595:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    new = NC_re_string(old, (unsigned)strlen(newname),newname) ;
data/libhdf4-4.2.15/mfhdf/libsrc/xdrposix.c:134:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        biop->nread = biop->cnt = read(biop->fd, (VOIDP)biop->base, BIOBUFSIZ) ;
data/libhdf4-4.2.15/mfhdf/ncdump/dumplib.c:81:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int nn = strlen(cp);
data/libhdf4-4.2.15/mfhdf/ncdump/dumplib.c:86:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	linep = strlen(LINEPIND);
data/libhdf4-4.2.15/mfhdf/ncdump/ncdump.c:69:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    new = (char *) malloc((unsigned) (strlen(cp)+1));
data/libhdf4-4.2.15/mfhdf/ncdump/ncdump.c:224:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    ll = strlen(gps);
data/libhdf4-4.2.15/mfhdf/ncdump/ncdump.c:595:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	*cpp = (char *) malloc(strlen(cp) + 1);
data/libhdf4-4.2.15/mfhdf/ncdump/ncdump.c:622:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (optarg != 0 && strlen(optarg) > 0 && optarg[0] != ',')
data/libhdf4-4.2.15/mfhdf/ncdump/vardata.c:514:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	set_indent (strlen(fixed_var) + 4);
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:129:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    if (strlen(stmnt) + strlen(s2) >= C_MAX_STMNT) {
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:129:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    if (strlen(stmnt) + strlen(s2) >= C_MAX_STMNT) {
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:131:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    stmnt[strlen(stmnt)-2] = '\0'; /* truncate trailing ", " */
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:132:7:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
		    strcat(stmnt, ";");
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:155:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    if (strlen(stmnt) + strlen(s2) >= C_MAX_STMNT) {
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:155:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    if (strlen(stmnt) + strlen(s2) >= C_MAX_STMNT) {
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:157:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    stmnt[strlen(stmnt)-2] = '\0'; /* truncate trailing ", " */
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:158:7:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
		    strcat(stmnt, ";");
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:359:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int len = strlen(stmnt);
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:436:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    if (strlen(stmnt) + strlen(s2) >= FORT_MAX_STMNT) {
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:436:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    if (strlen(stmnt) + strlen(s2) >= FORT_MAX_STMNT) {
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:438:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    stmnt[strlen(stmnt)-2] = '\0'; /* truncate trailing ", " */
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:459:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    if (strlen(stmnt) + strlen(s2) >= FORT_MAX_STMNT) {
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:459:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    if (strlen(stmnt) + strlen(s2) >= FORT_MAX_STMNT) {
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:461:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    stmnt[strlen(stmnt)-2] = '\0'; /* truncate trailing ", " */
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:917:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(istr, (char *) valp, (int)len);
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:980:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(istr, (char *) str, (int)ilen);
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:1003:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cp += strlen(tstr);
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:1029:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    cp += strlen(tstr);
data/libhdf4-4.2.15/mfhdf/ncgen/generate.c:1053:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	filename = (char *) emalloc(strlen(netcdfname) + 5);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:191:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	stmnt_len = strlen(stmnt);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:241:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		stmnt_len += strlen(s2);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:247:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    stmnt_len = strlen(stmnt);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:271:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		stmnt_len += strlen(s2);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:277:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    stmnt_len = strlen(stmnt);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:358:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    *slenp += strlen(t);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:363:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	*slenp = strlen(s);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:422:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	stmnt_len = strlen(stmnt);
data/libhdf4-4.2.15/mfhdf/ncgen/load.c:489:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	stmnt_len = strlen(stmnt);
data/libhdf4-4.2.15/mfhdf/ncgen/main.c:92:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  netcdf_name = (char *) emalloc(strlen(optarg)+1);
data/libhdf4-4.2.15/mfhdf/ncgen/main.c:124:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cdlname = (char *) emalloc(1 + strlen(argv[0]));
data/libhdf4-4.2.15/mfhdf/ncgen/ncgentab.c:958:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#   define yystrlen strlen
data/libhdf4-4.2.15/mfhdf/ncgen/ncgentab.c:1552:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		     dims[ndims].name = (char *) emalloc(strlen((yyvsp[(1) - (1)])->name)+1);
data/libhdf4-4.2.15/mfhdf/ncgen/ncgentab.c:1600:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    vars[nvars].name = (char *) emalloc(strlen((yyvsp[(1) - (1)])->name)+1);
data/libhdf4-4.2.15/mfhdf/ncgen/ncgentab.c:1698:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		       atts[natts].name = (char *) emalloc(strlen((yyvsp[(1) - (1)])->name)+1);
data/libhdf4-4.2.15/mfhdf/ncgen/ncgentab.c:1728:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			   int len = strlen(termstring);
data/libhdf4-4.2.15/mfhdf/ncgen/ncgentab.c:1730:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			   (void)strncpy(char_valp,termstring,len);
data/libhdf4-4.2.15/mfhdf/ncgen/ncgentab.c:1954:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			   int len = strlen(termstring);
data/libhdf4-4.2.15/mfhdf/ncgen/ncgentab.c:1963:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			       (void)strncpy(char_valp,termstring,len);
data/libhdf4-4.2.15/mfhdf/ncgen/ncgentab.c:1968:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			       (void)strncpy(byte_valp,termstring,len);
data/libhdf4-4.2.15/mfhdf/ncgen/ncgentab.c:2387:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    sp -> name = (char *) emalloc (strlen (sname) + 1);/* +1 for '\0' */
data/libhdf4-4.2.15/mfhdf/ncgen/ncgenyy.c:683:22:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
data/libhdf4-4.2.15/mfhdf/ncgen/ncgenyy.c:899:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        char *s = (char*)yytext+strlen("netcdf");
data/libhdf4-4.2.15/mfhdf/ncgen/ncgenyy.c:907:16:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        (void) strncpy(netcdfname, s, t-s);
data/libhdf4-4.2.15/mfhdf/nctest/add.c:47:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    test->dims[test->ndims].name = (char *) emalloc(strlen(idim->name) + 1);
data/libhdf4-4.2.15/mfhdf/nctest/add.c:68:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    test->vars[test->nvars].name = (char *) emalloc(strlen(ivar->name) + 1);
data/libhdf4-4.2.15/mfhdf/nctest/add.c:106:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    test->atts[test->natts].name = (char *) emalloc(strlen(iatt->name) + 1);
data/libhdf4-4.2.15/mfhdf/nctest/dimtests.c:367:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					      strlen(newname)+1);
data/libhdf4-4.2.15/mfhdf/nctest/dimtests.c:391:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					      strlen(pp.name)+1);
data/libhdf4-4.2.15/mfhdf/nctest/varget_unlim.c:72:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (srcdir[strlen(srcdir) - 1] != '/')
data/libhdf4-4.2.15/mfhdf/nctest/varget_unlim.c:73:13:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
            strcat(testfile, "/");
data/libhdf4-4.2.15/mfhdf/test/cdftest.c:226:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			ncattput(id,ii,reqattr[0],NC_CHAR,strlen(vp->units), vp->units)
data/libhdf4-4.2.15/mfhdf/test/cdftest.c:245:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			ncattput(id,ii,reqattr[5],NC_CHAR,strlen(vp->fieldnam), vp->fieldnam)
data/libhdf4-4.2.15/mfhdf/test/cdftest.c:434:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		"TITLE", NC_CHAR, strlen(fname), fname) != -1) ;
data/libhdf4-4.2.15/mfhdf/test/cdftest.c:437:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	new[strlen(fname)] = 0 ;
data/libhdf4-4.2.15/mfhdf/test/cdftest.c:441:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		"RCSID", NC_CHAR, strlen(mrcsid), (ncvoid*)mrcsid) != -1) ;
data/libhdf4-4.2.15/mfhdf/test/cdftest.c:542:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	assert( adesc->len == strlen(fname) ) ;
data/libhdf4-4.2.15/mfhdf/test/cdftest.c:552:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	assert( adesc->len == strlen(mrcsid) ) ;
data/libhdf4-4.2.15/mfhdf/test/cdftest.c:610:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		assert( adesc->len == strlen(tvp->units) ) ;
data/libhdf4-4.2.15/mfhdf/test/cdftest.c:659:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		assert( adesc->len == strlen(tvp->fieldnam) ) ;
data/libhdf4-4.2.15/mfhdf/test/tattdatainfo.c:251:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        readlen = read(fd, (VOIDP)readibuf, (size_t)sds1_info.lengths[0]);
data/libhdf4-4.2.15/mfhdf/test/tattdatainfo.c:282:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        readlen = read(fd, (VOIDP)readfbuf, (size_t)sds2_info.lengths[0]);
data/libhdf4-4.2.15/mfhdf/test/tattdatainfo.c:314:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        readlen = read(fd, (VOIDP)readibuf, (size_t)sds3_info.lengths[0]);
data/libhdf4-4.2.15/mfhdf/test/tattdatainfo.c:474:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    VERIFY(ret, strlen(labels[0]), "DFANgetfidlen first file label");
data/libhdf4-4.2.15/mfhdf/test/tattdatainfo.c:482:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    VERIFY(ret, strlen(labels[1]), "DFANgetfidlen second file label");
data/libhdf4-4.2.15/mfhdf/test/tattdatainfo.c:492:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    VERIFY(ret, strlen(descs[0]), "DFANgetfdslen first file description");
data/libhdf4-4.2.15/mfhdf/test/tattdatainfo.c:500:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    VERIFY(ret, strlen(descs[1]), "DFANgetfdslen second file description");
data/libhdf4-4.2.15/mfhdf/test/tcoordvar.c:626:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strncmp(contents[idx], line, strlen(contents[idx])) != 0)
data/libhdf4-4.2.15/mfhdf/test/tdatainfo.c:389:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        readlen = read(fd, (VOIDP) readibuf, (size_t) sds1_info.lengths[0]);
data/libhdf4-4.2.15/mfhdf/test/tdatainfo.c:419:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        readlen = read(fd, (VOIDP) readfbuf, (size_t) sds2_info.lengths[0]);
data/libhdf4-4.2.15/mfhdf/test/tdatainfo.c:452:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        readlen = read(fd, (VOIDP) readibuf, (size_t) sds3_info.lengths[0]);
data/libhdf4-4.2.15/mfhdf/test/tdatainfo.c:844:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        readlen = read(fd, (VOIDP)readibuf, (size_t)sds1_info.lengths[0]);
data/libhdf4-4.2.15/mfhdf/test/tdatainfo.c:875:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        readlen = read(fd, (VOIDP)readibuf, (size_t)sds2_info.lengths[0]);
data/libhdf4-4.2.15/mfhdf/test/tdatainfo.c:906:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        readlen = read(fd, (VOIDP)readibuf, (size_t)sds3_info.lengths[0]);
data/libhdf4-4.2.15/mfhdf/test/tdatainfo.c:1254:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        readlen = read(fd, (VOIDP) readibuf, (size_t) sds_info.lengths[chk_num]);
data/libhdf4-4.2.15/mfhdf/test/tnetcdf.c:61:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (srcdir && ((strlen(srcdir) + strlen(NC_FILE) + 1) < sizeof(testfile)))
data/libhdf4-4.2.15/mfhdf/test/tnetcdf.c:61:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (srcdir && ((strlen(srcdir) + strlen(NC_FILE) + 1) < sizeof(testfile)))
data/libhdf4-4.2.15/mfhdf/test/tnetcdf.c:64:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(testfile, "/");
data/libhdf4-4.2.15/mfhdf/test/tnetcdf.c:154:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (srcdir && ((strlen(srcdir) + strlen(basename) + 1) < sizeof(testfile)))
data/libhdf4-4.2.15/mfhdf/test/tnetcdf.c:154:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (srcdir && ((strlen(srcdir) + strlen(basename) + 1) < sizeof(testfile)))
data/libhdf4-4.2.15/mfhdf/test/tnetcdf.c:157:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(testfile, "/");
data/libhdf4-4.2.15/mfhdf/test/tutils.c:39:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (srcdir && ((strlen(srcdir) + strlen(basename) + 1) < size))
data/libhdf4-4.2.15/mfhdf/test/tutils.c:39:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (srcdir && ((strlen(srcdir) + strlen(basename) + 1) < size))
data/libhdf4-4.2.15/mfhdf/test/tutils.c:42:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(tempfile, "/");
data/libhdf4-4.2.15/mfhdf/util/getopt.c:9:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	(void) write(2, argv[0], strlen(argv[0]));\
data/libhdf4-4.2.15/mfhdf/util/getopt.c:10:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	(void) write(2, s, strlen(s));\
data/libhdf4-4.2.15/mfhdf/util/getopt.c:16:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	extern int strlen(), write();\
data/libhdf4-4.2.15/mfhdf/util/getopt.c:19:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	(void) write(2, argv[0], strlen(argv[0]));\
data/libhdf4-4.2.15/mfhdf/util/getopt.c:20:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	(void) write(2, s, strlen(s));\
data/libhdf4-4.2.15/mfhdf/xdr/xdr.c:743:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size = strlen(sp);

ANALYSIS SUMMARY:

Hits = 1606
Lines analyzed = 254127 in approximately 8.41 seconds (30209 lines/second)
Physical Source Lines of Code (SLOC) = 157193
Hits@level = [0] 5559 [1] 254 [2] 818 [3]  46 [4] 484 [5]   4
Hits@level+ = [0+] 7165 [1+] 1606 [2+] 1352 [3+] 534 [4+] 488 [5+]   4
Hits/KSLOC@level+ = [0+] 45.5809 [1+] 10.2167 [2+] 8.60089 [3+] 3.3971 [4+] 3.10446 [5+] 0.0254464
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.