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/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_match_cats.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_distortion.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_dfs.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_load.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_combine.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_bkg.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_alloc.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_pfits_legacy.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_calib.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_utils_legacy.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_properties_tel.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_saa.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_save.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_distortion.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_obj_det.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_utils.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_bkg.cc
Examining data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_mask.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_dfs_legacy.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_calib.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_save.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_utils_legacy.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_fwhm.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_pfits.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_variance.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_dfs_legacy.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_dfs.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_match_cats.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_pfits.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_var.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_combine.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_pfits_legacy.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_image.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_utils.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/hawki/tests/hawki_image-test.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/hawki/tests/hawki_var-test.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/hawki/tests/hawki_utils-test.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_image_stats.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_alloc.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_properties_tel.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_obj_det.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_saa.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_image.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_variance.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_fwhm.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_var.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_load.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_image_stats.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_mask.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_linearity_analyse.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_step_stitch.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_twilight_flat_combine.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_step_stats.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_standard_process.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_dark_combine.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_step_refine_offsets.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_util_stdstars.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_process.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_cal_flat.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_step_compute_bkg.cc
Examining data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_tec_filtchk.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_cal_zpoint.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_step_apply_dist.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_postprocess.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_cal_distortion.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_util_gendist.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_step_basic_calib.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_detector_noise.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_cal_dark.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_sci_jitter.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_step_subtract_bkg.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_step_detect_obj.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_step_combine.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_step_photom_2mass.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_distortion.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_oddeven.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_polynomial.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_stdstar.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_flat.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_calib.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_wavecal.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_ksigma_clip.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_slitpos.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_wcs.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_calib.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_plugin.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_polynomial.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_hist.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_wlxcorr.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_fft.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_ppm.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_slitpos.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_mkmaster.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_plugin.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_ksigma_clip_body.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_cat.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_match_cats.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_framelist.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_spectrum.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_framelist.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_oddeven.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_utils.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_wcs.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_wlxcorr.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_wavecal.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_spectrum.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_flat.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/tests/irplib_cat-test.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/tests/irplib_utils-test.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/tests/irplib_sdp_spectrum-test.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/tests/irplib_wlxcorr-test.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/tests/irplib_strehl-test.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/tests/irplib_plugin-test.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/tests/irplib_hist-test.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/tests/irplib_framelist-test.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/tests/irplib_wcs-test.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/tests/irplib_polynomial-test.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_stdstar.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_ppm.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_strehl.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_wavecal_impl.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_cat.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_strehl.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_utils.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_fft.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_match_cats.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_sdp_spectrum.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_mkmaster.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_distortion.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_ksigma_clip.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_hist.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_sdp_spectrum.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_mask.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_platesol.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_wcsutils.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_photcal_extinct.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_nebuliser.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_tfits.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_filt.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_imdither.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_defringe.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_darkcor.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_wcsutils.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_fits.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_utils.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_nditcor.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_genbpm.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_gaincor.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_sky.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_filt.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_stats.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_fits.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_match.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_stats.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_tfits.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_getstds.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_flatcor.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_opm.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_pawsky_minus.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_mods.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_mkconf.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_inpaint.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_sky.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/tests/casu_genbpm-test.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/tests/casu_flatcor-test.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/tests/casu_mkconf-test.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/tests/casu_darkcor-test.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/tests/casu_photcal_extinct-test.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/tests/casu_filt-test.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/tests/casu_imdither-test.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/tests/casu_nditcor-test.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/tests/casu_nebuliser-test.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/tests/casu_tfits-test.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/tests/casu_imcombine-test.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/tests/casu_mask-test.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/tests/casu_wcsutils-test.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/tests/casu_platesol-test.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/tests/casu_imcore-test.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/tests/casu_backmap-test.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/tests/casu_pawsky_minus-test.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/tests/casu_sky-test.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/tests/casu_match-test.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/tests/casu_getstds-test.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/tests/casu_gaincor-test.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/tests/casu_fits-test.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/tests/casu_imstack-test.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/tests/casu_opm-test.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/tests/casu_inpaint-test.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/tests/casu_stats-test.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_imcombine.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_backmap.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_imcore.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_utils.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_mask.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/create_table_4.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/create_table_6.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/create_table_2.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/imcore_background.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/apinit.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/moments.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/imcore_conf.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/create_table_3.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/imcore_overlp.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/polynm.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/imcore_filter.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/classify.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/apclust.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/create_table.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/create_table_1.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/classify.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/seeing.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/areals.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/imcore_version.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/floatmath.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/tests/imcore_moments-test.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/tests/imcore_apinit-test.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/tests/imcore_conf-test.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/tests/imcore_classify-test.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/tests/imcore_polynm-test.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/tests/imcore_radii-test.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/tests/imcore_background-test.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/tests/imcore_seeing-test.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/tests/imcore_areals-test.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/tests/imcore_opm-test.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/imcore_opm.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/imcore_phopt.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/imcore_radii.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/terminate.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/imcore_extend.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/solve.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/ap.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/apline.c
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/util.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/imcore.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/imcore_radii.h
Examining data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_imstack.c

FINAL RESULTS:

data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_getstds.c:1518:11:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
    (void)strncat(buf,"&",BUFSIZ);
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_getstds.c:1519:11:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
    (void)strncat(buf,url_encode(buf2),BUFSIZ);
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_getstds.c:1524:11:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
    (void)strncat(buf,"&",BUFSIZ);
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_getstds.c:1525:11:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
    (void)strncat(buf,url_encode(buf2),BUFSIZ);
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_getstds.c:1531:11:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
    (void)strncat(buf,"&",BUFSIZ);
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_getstds.c:1532:11:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
    (void)strncat(buf,url_encode(buf2),BUFSIZ);
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_getstds.c:1538:11:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
    (void)strncat(buf,"&",BUFSIZ);
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_getstds.c:1539:11:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
    (void)strncat(buf,url_encode(buf2),BUFSIZ);
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_getstds.c:1541:11:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
    (void)strncat(buf,"&",BUFSIZ);
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_getstds.c:1542:11:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
    (void)strncat(buf,url_encode(buf2),BUFSIZ);
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_getstds.c:1544:11:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
    (void)strncat(buf,"&",BUFSIZ);
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_getstds.c:1545:11:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
    (void)strncat(buf,url_encode(buf2),BUFSIZ);
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_getstds.c:1547:11:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
    (void)strncat(buf,"&",BUFSIZ);
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_getstds.c:1548:11:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
    (void)strncat(buf,url_encode(buf2),BUFSIZ);
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_fits.c:140: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).
                strcpy(extname,cpl_propertylist_get_string(eh,"EXTNAME"));
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_fits.c:154: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).
                strcpy(extname,cpl_propertylist_get_string(eh,"EXTNAME"));
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_getstds.c:197: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(catname2,cdscatname);
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_getstds.c:200: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(catname2,catname);
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_getstds.c:1228: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(newname,0) != 0)
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_getstds.c:1243: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(newname,F_OK) != 0) 
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_getstds.c:1402:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf,"GET /viz-bin/asu-fits?%s HTTP/1.0\r\n\r\n",req_string);
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_mask.c:117: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(cpl_frame_get_filename(master_mask),R_OK) != 0) {
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_utils.c:912: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((const char *)*catpath,R_OK) != 0) {
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/tests/casu_fits-test.c:65: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(testfile,F_OK) == 0)
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/tests/casu_fits-test.c:114:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void)sprintf(str,"%s[%s]",testfile,"TESTEXTN");
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/tests/casu_mask-test.c:63: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(fname,F_OK) == 0)
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/tests/casu_tfits-test.c:65: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(testfile,F_OK) == 0)
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/tests/casu_tfits-test.c:114:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void)sprintf(str,"%s[%s]",testfile,"TESTTAB");
data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_pfits.c:70: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(projid,cpl_propertylist_get_string(plist,"ESO OBS PROG ID"));
data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_pfits.c:264: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(tplstart,cpl_propertylist_get_string(plist,"ESO TPL START"));
data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_pfits.c:284: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(dateobs,cpl_propertylist_get_string(plist,"DATE-OBS"));
data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_utils_legacy.c:1109: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 (str, tstring);
data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_utils_legacy.c:1189: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 (str, tstring);
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_cat.c:89: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((const char *)fname,R_OK) != 0)
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_plugin.c:1052:13:  [4] (buffer) sscanf:
  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. If the scanf format is influenceable by an
  attacker, it's exploitable.
        n = sscanf(line, LINE_SCAN_FMT, path, tag, group);
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_utils.c:68:30:  [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.
      __attribute__((format (printf, 2, 3)))
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_wcs.c:252:12:  [4] (buffer) sscanf:
  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. If the scanf format is influenceable by an
  attacker, it's exploitable.
    nret = sscanf(iso8601, IRPLIB_ISO8601_FORMAT, pyear, pmonth,
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_wlxcorr.c:990:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(title_loc, 
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_wlxcorr.c:1023:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(title_loc, 
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/tests/irplib_utils-test.c:482: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.
    cpl_test_zero(system("rm dummyon*.fits"));
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_cal_zpoint.c:562:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    else sprintf(hawki_cal_zpoint_outputs.filter, "%s", sval) ;
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_dark_combine.c:284:11:  [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.
    (void)snprintf(alldesc,SZ_ALLDESC,hawki_dark_combine_description,
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_dark_combine.c:748: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(outfile[i],esoout[i]);
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_dark_combine.c:759:23:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                (void)sprintf(outfile[i],"%s_%8d_%g_%d.fits",prettypfx[i],
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_detector_noise.c:184:11:  [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.
    (void)snprintf(alldesc,SZ_ALLDESC,hawki_detector_noise_description,
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_linearity_analyse.c:229:11:  [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.
    (void)snprintf(alldesc,SZ_ALLDESC,
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_linearity_analyse.c:744: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(fname,F_OK))
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_linearity_analyse.c:911: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(fname,F_OK))
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_linearity_analyse.c:1024: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(fname,F_OK))
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_postprocess.c:356:11:  [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.
    (void)snprintf(alldesc,SZ_ALLDESC,
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_postprocess.c:944: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(cs.cacheloc,R_OK+W_OK+X_OK) != 0) {
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_postprocess.c:1580: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(fname,F_OK))
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_postprocess.c:1772: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(fname,F_OK))
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_postprocess.c:1952:15:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        (void)sprintf(outfname,"%s%d.fits",esonames[producttype],fnumber);
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_postprocess.c:1961:15:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        (void)sprintf(outfname,"tmp_%s",bname);
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_postprocess.c:1970:15:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        (void)sprintf(outfname,"%s",bname);
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_postprocess.c:1972:15:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        (void)sprintf(dot,"%s.fits",suffix[producttype]);
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_process.c:615:11:  [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.
    (void)snprintf(alldesc,SZ_ALLDESC,
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_process.c:1400: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(cs.cacheloc,R_OK+W_OK+X_OK) != 0) {
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_process.c:4076: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(fname,F_OK)) 
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_process.c:4285: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(bname,F_OK)) 
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_process.c:4504: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(bname,F_OK)) 
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_process.c:4662: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(bname,F_OK)) 
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_process.c:5264:15:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        (void)sprintf(outfname,"%s%d.fits",esonames[producttype],fnumber);
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_process.c:5273:15:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        (void)sprintf(outfname,"tmp_%s",bname);
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_process.c:5283:19:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            (void)sprintf(outfname,"%s",bname);
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_process.c:5285:19:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            (void)sprintf(dot,"%s.fits",suffix[producttype]);
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_process.c:5287:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(outfname,"%s%s",suffix[producttype],bname);
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_process.c:5365:15:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        (void)sprintf(tmpfname,"scitmp_%s",cpl_frame_get_filename(fr));
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_process.c:5366: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(tmpfname,F_OK)) 
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_process.c:5652:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void)sprintf(tmpfname,"scitmp_%s",cpl_frame_get_filename(catfrm));
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_standard_process.c:416:11:  [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.
    (void)snprintf(alldesc,SZ_ALLDESC,
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_standard_process.c:1038: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(cs.cacheloc,R_OK+W_OK+X_OK) != 0) {
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_standard_process.c:1780: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(fname,F_OK)) 
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_standard_process.c:2017: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(bname,F_OK)) 
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_standard_process.c:2325:15:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        (void)sprintf(outfname,"%s%d.fits",esonames[producttype],fnumber);
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_standard_process.c:2334:15:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        (void)sprintf(outfname,"tmp_%s",bname);
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_standard_process.c:2344:19:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            (void)sprintf(outfname,"%s",bname);
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_standard_process.c:2346:19:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            (void)sprintf(dot,"%s.fits",suffix[producttype]);
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_standard_process.c:2348:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(outfname,"%s%s",suffix[producttype],bname);
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_step_stats.c:226:5:  [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.
    snprintf(calpro, 1024, HAWKI_CALPRO_JITTER_STATS);
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_step_stats.c:227:5:  [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.
    snprintf(protype, 1024, HAWKI_PROTYPE_JITTER_STATS);
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_step_stats.c:231: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.
        snprintf(calpro, 1024, HAWKI_CALPRO_JITTER_BKG_STATS);
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_step_stats.c:232: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.
        snprintf(protype, 1024, HAWKI_PROTYPE_JITTER_BKG_STATS);
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_step_stats.c:237: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.
        snprintf(calpro, 1024, HAWKI_CALPRO_DARK_STATS);
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_step_stats.c:238: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.
        snprintf(protype, 1024, HAWKI_PROTYPE_DARK_STATS);
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_step_stats.c:243: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.
        snprintf(calpro, 1024, HAWKI_CALPRO_FLAT_STATS);
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_step_stats.c:244: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.
        snprintf(protype, 1024, HAWKI_PROTYPE_FLAT_STATS);
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_step_stats.c:249: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.
        snprintf(calpro, 1024, HAWKI_CALPRO_ZPOINT_STATS);
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_step_stats.c:250: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.
        snprintf(protype, 1024, HAWKI_PROTYPE_ZPOINT_STATS);
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_tec_filtchk.c:211:5:  [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.
    snprintf(calpro, 1024, HAWKI_CALPRO_FILTERPOSCHECK_STATS);
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_tec_filtchk.c:212:5:  [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.
    snprintf(protype, 1024, HAWKI_PROTYPE_FILTERPOSCHECK_STATS);
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_twilight_flat_combine.c:321:11:  [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.
    (void)snprintf(alldesc,SZ_ALLDESC,hawki_twilight_flat_combine_description,
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_twilight_flat_combine.c:884: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(outfile[i],esoout[i]);
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_twilight_flat_combine.c:893:23:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                (void)sprintf(outfile[i],"%s_%s_%08d.fits",filter,prettypfx[i],
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_plugin.c:552:17:  [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.
            if (getenv("CPL_MSG_LEVEL") == NULL) cpl_msg_set_level(CPL_MSG_OFF);
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_plugin.c:650:27:  [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.
        svalue = envvar ? getenv(envvar) : NULL;
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_plugin.c:857:46:  [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.
    const char      * sof_path   = envname ? getenv(envname) : NULL;
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_plugin.c:898: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.
    const char * sof_path = getenv(var_name);
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_backmap.c:175: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.
            memset((char *)hist[i],0,MAXHIST*sizeof(int));
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_defringe.c:121:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char pname1[64],comment1[64],pname2[64],comment2[64];
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_defringe.c:153: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(pname1,"ESO DRS FRINGE%d",i+1);
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_defringe.c:154: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(comment1,"Fringe frame # %d",i+1);
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_defringe.c:155: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(pname2,"ESO DRS FRNGSC%d",i+1);
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_defringe.c:156: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(comment2,"Fringe scale # %d",i+1);
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_fits.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 extname[81];
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_fits.c:144: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.
                    (void)sprintf(extname,"%d",nexten);
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_fits.c:158: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.
                    (void)sprintf(extname,"%d",nexten);
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_fits.c:167: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(extname,"%d",nexten);
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_getstds.c:168:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *req_string,catname2[64],*cdscatname,*cdscatid,*path2;
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_getstds.c:382: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 *cdscats[7] = {"","II/246","I/284","I/317","II/183A","II/311",
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_getstds.c:384: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 *cdscatnames[7] = {"","2mass","usnob","ppmxl","landolt","wise",
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_getstds.c:443:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char fullname[SZBUF];
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_getstds.c:635:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char fullname[SZBUF];
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_getstds.c:827:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char fullname[SZBUF];
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_getstds.c:1117:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[BUFSIZ],catname2[SZBUF];
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_getstds.c:1125: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(fname,"r");
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_getstds.c:1221:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char newname[SZBUF];
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_getstds.c:1234: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(newname,"a");
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_getstds.c:1287:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[BUFMAX],outfile[32];
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_getstds.c:1324:10:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    fd = mkstemp(outfile);
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_getstds.c:1397:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[BUFMAX];
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_getstds.c:1449: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(&ssin.sin_addr,hp->h_addr_list[0],hp->h_length);
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_getstds.c:1505: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 buf[2*BUFSIZ];
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_getstds.c:1506:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[BUFSIZ],equi[1];
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_getstds.c:1576: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 buf[BUFSIZ];
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_getstds.c:1598:13:  [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(buf+j,"%%%2x",(unsigned char)instring[i]);
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_imcombine.c:173:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[SZBUF];
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_imdither.c:165:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char timestamp[25];
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_nditcor.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 comment[32];
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_nditcor.c:118: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(comment,"Corrected for ndit=%d",ndit);
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_nditcor.c:129: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(comment,"Corrected for ndit=%d",ndit);
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_photcal_extinct.c:873: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 *req_cols[9] = {"filter_name","atm_extcoef","mag_offset",
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_photcal_extinct.c:997: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 *cols[2] = {"coleq_columns","coleq_errcols"};
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_platesol.c:142:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char key[9];
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_utils.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 keyword[SZKEY],value[SZVAL],*fn,*base;
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_utils.c:1095:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char test[8];
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_utils.c:1102:19:  [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).
        info[i] = atoi(test);
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_wcsutils.c:46: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 *notabkeys[NNOTABKEYS] = {"^CRVAL[1-2]*","^CRPIX[1-2]*",
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_wcsutils.c:467:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char key[SZKEY];
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_wcsutils.c:557:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char key[SZKEY];
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_wcsutils.c:763:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char key[9],key2[9];
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/classify.c:91: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 *cols32[NCOL32] = {"Core_flux","Core1_flux","Core2_flux",
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/classify.c:98: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 *cols80[NCOL80] = {"Aper_flux_3","Aper_flux_1","Aper_flux_4",
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/classify.c:206:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *cols[MAX(NCOL32,NCOL80)],colname[32];
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/classify.c:235:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            cols[i] = (char *)cols32[i];
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/classify.c:239:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            cols[i] = (char *)cols80[i];
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/classify.c:243:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            cols[i] = (char *)cols80[i];
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/classify.c:305: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(colname,"Areal_%d_profile",i+1);
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/create_table.c:335:49:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern int imcore_do_seeing_gen(ap_t *ap, const char *col_ellipt, 
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/create_table.c:336: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.
                         const char *col_pkht, char *col_areals[NAREAL],
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/create_table.c:336:48:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *col_pkht, char *col_areals[NAREAL],
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/create_table_1.c:79: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 *ttype[NCOLS]={"No.","Isophotal_flux","Total_flux","Core_flux",
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/create_table_1.c:89: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 *tunit[NCOLS]={" ","Counts","Counts","Counts","Pixels","Pixels",
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/create_table_1.c:178:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *areal_colnames[NAREAL];
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/create_table_1.c:183: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.
        areal_colnames[i] = (char *)ttype[areal_cols[i]-1];
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/create_table_2.c:102: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 *ttype[NCOLS]={"Sequence_number","Isophotal_flux",
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/create_table_2.c:134: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 *tunit[NCOLS]={"Number","ADU",
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/create_table_2.c:278:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *areal_colnames[NAREAL];
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/create_table_2.c:283: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.
        areal_colnames[i] = (char *)ttype[areal_cols[i]-1];
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/create_table_3.c:59: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 *ttype[NCOLS]={"No.","X_coordinate","Y_coordinate",
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/create_table_3.c:69: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 *tunit[NCOLS]={" ","Pixels","Pixels","Counts","Counts"," ",
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/create_table_3.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 *areal_colnames[NAREAL];
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/create_table_3.c:163: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.
        areal_colnames[i] = (char *)ttype[areal_cols[i]-1];
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/create_table_6.c:102: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 *ttype[NCOLS]={"Sequence_number","Isophotal_flux",
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/create_table_6.c:134: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 *tunit[NCOLS]={"Number","ADU",
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/create_table_6.c:280:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *areal_colnames[NAREAL];
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/create_table_6.c:285: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.
        areal_colnames[i] = (char *)ttype[areal_cols[i]-1];
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/imcore_background.c:146: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.
            memset((char *)hist[i],0,MAXHIST*sizeof(int));
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/catalogue/imcore_conf.c:159:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char card[64];
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/tests/casu_fits-test.c:46:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[BUFSIZ];
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/tests/casu_tfits-test.c:46:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[BUFSIZ];
data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_bkg.cc:122: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                keystr[256];
data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_dfs.c:198:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char package[PACKSZ],key1[32],key2[32];
data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_dfs.c:287:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char package[PACKSZ];
data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_image.c:131:13:  [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(target_p, from_p, memcopy_size);
data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_image_stats.c:536: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         mean_col_name[256] = "ESO QC RAW ";
data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_image_stats.c:537: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         median_col_name[256] = "ESO QC RAW ";
data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_image_stats.c:538: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         minimum_col_name[256] = "ESO QC RAW ";
data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_image_stats.c:539: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         maximum_col_name[256] = "ESO QC RAW ";
data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_image_stats.c:540: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         stdev_col_name[256] = "ESO QC RAW ";
data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_load.c:847:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char                    chipval[512] ;
data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_mask.c:127: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(in_data, out_data, nx * ny * sizeof(cpl_binary));
data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_pfits.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 filt1[16],filt2[16];
data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_save.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                    sval[16];
data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_save.c:236:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char                    sval[16];
data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_save.c:318:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char                    sval[16] ;
data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_save.c:421:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char                    sval[16] ;
data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_save.c:529:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char                    sval[16] ;
data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_utils_legacy.c:1062:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tstring[64];
data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_utils_legacy.c:1104: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 (tstring,"%02d:%02d:%05.2f",hours,minutes,seconds);
data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_utils_legacy.c:1137:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tstring[64];
data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_utils_legacy.c:1184: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 (tstring,"%c%02d:%02d:%05.2f",sign,degrees,minutes,seconds);
data/cpl-plugin-hawki-2.4.8+dfsg/hawki/tests/hawki_image-test.c:107: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).
        dumptarget = fopen("target_dump", "w");
data/cpl-plugin-hawki-2.4.8+dfsg/hawki/tests/hawki_image-test.c:113: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).
        dumpfrom = fopen("from_dump", "w");
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_cat.c:287:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char fullname[FILENAME_SZBUF];
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_plugin.c:493:34:  [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 = is_debug ? stdout : fopen("/dev/null", "a");
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_plugin.c:655: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).
                = svalue ? atoi(svalue) : cpl_parameter_get_default_bool(p);
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_plugin.c:661: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).
                = svalue ? atoi(svalue) : cpl_parameter_get_default_int(p);
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_plugin.c:1030:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[LINE_LEN_MAX + 1];
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_plugin.c:1031:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[LINE_LEN_MAX + 1], group[LINE_LEN_MAX + 1], tag[LINE_LEN_MAX + 1];
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_plugin.c:1037: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(name, "r");
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_utils.c:1010: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(rawfile, "r");
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_wlxcorr.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                title_loc[1024] ;
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/tests/irplib_utils-test.c:130:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char zero[100] = {0};
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/tests/irplib_utils-test.c:168:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[32] = "";
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/tests/irplib_utils-test.c:256: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).
    file = fopen(filename1, "w");
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/tests/irplib_utils-test.c:260: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).
    file = fopen(filename2, "w");
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/tests/irplib_wlxcorr-test.c:134: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).
        ? fopen("/dev/null", "a") : stdout;
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_cal_dark.c:677:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char                    sval[32] ;
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_cal_dark.c:722:13:  [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(sval, "ESO QC DARK VC%d MEAN", j+1) ;
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_cal_dark.c:725:13:  [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(sval, "ESO QC DARK VC%d MED", j+1) ;
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_cal_dark.c:728:13:  [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(sval, "ESO QC DARK VC%d STDEV", j+1) ;
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_cal_dark.c:733:13:  [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(sval, "ESO QC RON%d", j+1) ;
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_cal_flat.c:1245:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char                    key_name[72];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_cal_zpoint.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        filter[512];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_cal_zpoint.c:129:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        starname[512];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_cal_zpoint.c:130:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        sptype[512];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_cal_zpoint.c:131:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        catalog[512];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_cal_zpoint.c:547:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char                    rastr[32];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_cal_zpoint.c:548:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char                    decstr[32];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_dark_combine.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 alldesc[SZ_ALLDESC];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_dark_combine.c:742:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[3][BUFSIZ],dateobs[81];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_detector_noise.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        extname[11];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_detector_noise.c:183:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char alldesc[SZ_ALLDESC];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_linearity_analyse.c:228:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char alldesc[SZ_ALLDESC];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_linearity_analyse.c:903:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[64];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_postprocess.c:355:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char alldesc[SZ_ALLDESC];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_postprocess.c:636:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char filt[16],*junk1,*junk2,pcat[32],*assoc[2],fname[BUFSIZ];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_postprocess.c:1565:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[BUFSIZ],filt[16];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_postprocess.c:1758:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[BUFSIZ],imgfname[BUFSIZ];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_process.c:65:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[BUFSIZ];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_process.c:66:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_var[BUFSIZ];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_process.c:614:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char alldesc[SZ_ALLDESC];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_process.c:983:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char filt[16],projid[16],*fname,*junk1,*junk2,pcat[32],*assoc[2];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_process.c:984:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char photosys[8];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_process.c:2061:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char filt[16];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_process.c:2141: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 *bpm[HAWKI_NEXTN];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_process.c:2143:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[BUFSIZ],tmpname_var[BUFSIZ],*tag,*assoc;
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_process.c:3920:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[BUFSIZ],*assoc,skyname2[BUFSIZ];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_process.c:4063:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char filt[16];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_process.c:4269:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char bname[BUFSIZ],*base,*tname,filt[16];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_process.c:4485:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char bname[BUFSIZ],*base,*tname;
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_process.c:4487:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char filt[16];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_process.c:4644:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char bname[BUFSIZ],*base,*tname;
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_process.c:4647:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char filt[16];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_process.c:5021:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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,bname[BUFSIZ];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_process.c:5137:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char ts1[80],ts2[80];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_process.c:5185:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tpl1[64],tpl2[64];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_process.c:5334:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tmpfname[BUFSIZ];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_process.c:5641:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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,tmpfname[BUFSIZ];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_standard_process.c:62:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[BUFSIZ];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_standard_process.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           fname_var[BUFSIZ];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_standard_process.c:415:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char alldesc[SZ_ALLDESC];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_standard_process.c:716:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char filt[16],projid[16],*fname,tmpname[BUFSIZ],tmpname_var[BUFSIZ];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_standard_process.c:717:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *junk1,*junk2,*pcat,*assoc,photosys[8];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_standard_process.c:1761:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char filt[16];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_standard_process.c:2001:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char bname[BUFSIZ],*base,*tname;
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_standard_process.c:2254:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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,bname[BUFSIZ];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_step_apply_dist.c:453:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_step_basic_calib.c:516:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_step_compute_bkg.cc:732: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 filename[256];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_step_compute_bkg.cc:785: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            filename[256];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_step_compute_bkg.cc:888: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 filename[256];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_step_compute_bkg.cc:986: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            filename[256];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_step_photom_2mass.c:734:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char           magcol_2mass[100];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_step_photom_2mass.c:735:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char           magerrcol_2mass[100];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_step_stats.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                calpro[1024];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_step_stats.c:214:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char                protype[1024];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_step_subtract_bkg.c:471:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_tec_filtchk.c:198:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char                calpro[1024];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_tec_filtchk.c:199:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char                protype[1024];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_twilight_flat_combine.c:320:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char alldesc[SZ_ALLDESC];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_twilight_flat_combine.c:878:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[5][BUFSIZ],dateobs[81],filter[16];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_util_gendist.c:220:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char                   sval[64];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_util_gendist.c:312: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(sval, "CHIP%d.INT1", ichip+1) ;
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_util_gendist.c:457:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[1024];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_util_gendist.c:464: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 ((in = fopen(filename, "r")) == NULL) {
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_util_gendist.c:484: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 ((in = fopen(filename, "r")) == NULL) {
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_util_stdstars.c:250: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  *   filters[4];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_util_stdstars.c:254:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[1024];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_util_stdstars.c:256:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            sname[512];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_util_stdstars.c:257:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[512];
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_util_stdstars.c:272: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 ((in = fopen(filename, "r")) == NULL) {
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_util_stdstars.c:290: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 ((in = fopen(filename, "r")) == NULL) {
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_fits.c:173: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).
    nf = strlen(p->extname) + strlen(p->fname) + 3;
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_fits.c:173: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).
    nf = strlen(p->extname) + strlen(p->fname) + 3;
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_getstds.c:1137:12:  [1] (buffer) fscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    while (fscanf(fd,"%8191s %1023s %g %g %g %g",
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_getstds.c:1403:23:  [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 (send(sock,buf,strlen(buf),0) < 0) {
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_getstds.c:1513:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    (void)strncpy(buf,url_encode(buf2),BUFSIZ);
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_getstds.c:1585: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(instring);
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_imcombine.c:279: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(expkey)) {
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_photcal_extinct.c:1011: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).
        j = strlen(v);
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_photcal_extinct.c:1079: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).
    j = strlen(v);
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_tfits.c:122: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).
    nf = strlen(p->extname) + strlen(p->fname) + 3;
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_tfits.c:122: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).
    nf = strlen(p->extname) + strlen(p->fname) + 3;
data/cpl-plugin-hawki-2.4.8+dfsg/casu/src/casu_utils.c:1272:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    (void)strncpy(out,c,len);
data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_image_stats.c:541:13:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
            strncat(mean_col_name, this_col_name, 244);
data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_image_stats.c:542:13:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
            strncat(mean_col_name, " MEAN", 6);
data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_image_stats.c:546:13:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
            strncat(median_col_name, this_col_name, 244);
data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_image_stats.c:547:13:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
            strncat(median_col_name, " MEDIAN", 8);
data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_image_stats.c:551:13:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
            strncat(minimum_col_name, this_col_name, 244);
data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_image_stats.c:552:13:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
            strncat(minimum_col_name, " MINIMUM", 9);
data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_image_stats.c:556:13:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
            strncat(maximum_col_name, this_col_name, 244);
data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_image_stats.c:557:13:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
            strncat(maximum_col_name, " MAXIMUM", 9);
data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_image_stats.c:561:13:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
            strncat(stdev_col_name, this_col_name, 244);
data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_image_stats.c:562:13:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
            strncat(stdev_col_name, " STDEV", 7);
data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_pfits.c:129:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(filt1,cpl_propertylist_get_string(plist,"ESO INS FILT1 NAME"),16-1);
data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_pfits.c:130:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(filt2,cpl_propertylist_get_string(plist,"ESO INS FILT2 NAME"),16-1);
data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_pfits.c:136:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(filt,filt2,16);
data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_pfits.c:138:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(filt,filt1,16);
data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_utils_legacy.c:1107: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).
    ltstr = (int) strlen (tstring);
data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_utils_legacy.c:1112:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy (str, tstring, length_str-1);
data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_utils_legacy.c:1187: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).
    ltstr = (int) strlen (tstring);
data/cpl-plugin-hawki-2.4.8+dfsg/hawki/hawki_utils_legacy.c:1192:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy (str, tstring, length_str-1);
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_framelist.c:1173:17:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    cpl_boolean equal;
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_framelist.c:1195:14:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
        if (!equal) {
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_framelist.c:1207:14:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
        if (!equal) {
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_framelist.c:1219:14:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
        if (!equal) {
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_framelist.c:1231:14:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
        if (!equal) {
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_framelist.c:1243:14:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
        if (!equal) {
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_framelist.c:1255:14:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
        if (!equal) {
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_framelist.c:1266:14:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
        if (!equal) {
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_framelist.c:1281:10:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    if (!equal) {
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_framelist.c:1286:12:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    return equal;
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_sdp_spectrum.c:923: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 n1 = strlen(va[i]);
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_sdp_spectrum.c:924: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 n2 = strlen(vb[i]);
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_sdp_spectrum.c:1283: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 keylen = strlen(keyword_table[mid].name);
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_sdp_spectrum.c:1302:7:  [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(record->name) != strlen(name)) {
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_sdp_spectrum.c:1302: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).
  if (strlen(record->name) != strlen(name)) {
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_sdp_spectrum.c:1306: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).
    const char *c = name + strlen(record->name);
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_sdp_spectrum.c:2621: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).
  cpl_size extra_length = (extra != NULL ? (cpl_size) strlen(extra) : 0);
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_sdp_spectrum.c:2655: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).
    name_length = (cpl_size) strlen(name);
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_sdp_spectrum.c:2659:34:  [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).
    fragment_length = (cpl_size) strlen(fragment);
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_sdp_spectrum.c:2673:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(writepos, fragment, bytesleft);
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_sdp_spectrum.c:2676:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(writepos, name, bytesleft);
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_sdp_spectrum.c:2683:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(writepos, join_fragment, bytesleft);
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_sdp_spectrum.c:2684:29:  [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).
    bytesleft -= (cpl_size) strlen(join_fragment);
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_sdp_spectrum.c:2685: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).
    writepos += (cpl_size) strlen(join_fragment);
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_sdp_spectrum.c:2686:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(writepos, extra, bytesleft);
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/irplib_sdp_spectrum.c:2690:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(writepos, end_fragment, bytesleft);
data/cpl-plugin-hawki-2.4.8+dfsg/irplib/tests/irplib_utils-test.c:177:21:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    cpl_test_assert(sscanf(line, "%31s %16lf", &str[0], &val) != EOF);
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_cal_zpoint.c:1320:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(hawki_cal_zpoint_outputs.starname, star_name, 510);
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_cal_zpoint.c:1321:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(hawki_cal_zpoint_outputs.sptype, star_type, 510);
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_cal_zpoint.c:1322:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(hawki_cal_zpoint_outputs.catalog, used_catname, 510);
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_detector_noise.c:846: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).
            for (size_t index = 0; index < strlen(extname_mod); index++)
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_postprocess.c:875:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(pcat,cpl_propertylist_get_string(pp,"EXTNAME"),32-1);
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_postprocess.c:885:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(pcat,cpl_propertylist_get_string(pp,"PHOTCAT"),32-1);
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_postprocess.c:890:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(pcat,junk1,32-1);
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_postprocess.c:1979:15:  [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.
        (void)strcpy(outfname,"");
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_process.c:1312:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(pcat,cpl_propertylist_get_string(pp,"EXTNAME"),32-1);
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_process.c:1322:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(pcat,cpl_propertylist_get_string(pp,"PHOTCAT"),32-1);
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_process.c:1327:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(pcat,junk1,32-1);
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_process.c:1357:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(photosys,cpl_propertylist_get_string(pp,"PHOTOSYS"),8-1);
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_science_process.c:5295:15:  [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.
        (void)strcpy(outfname,"");
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_standard_process.c:994:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(photosys,cpl_propertylist_get_string(pp,"PHOTOSYS"),8-1);
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_standard_process.c:2356:15:  [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.
        (void)strcpy(outfname,"");
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_step_photom_2mass.c:752:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(magcol_2mass, HAWKI_COL_2MASS_J_MAG, 98);
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_step_photom_2mass.c:753:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(magerrcol_2mass, HAWKI_COL_2MASS_J_MAGSIG, 98);
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_step_photom_2mass.c:757:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(magcol_2mass, HAWKI_COL_2MASS_H_MAG, 98);
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_step_photom_2mass.c:758:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(magerrcol_2mass, HAWKI_COL_2MASS_H_MAGSIG, 98);
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_step_photom_2mass.c:762:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(magcol_2mass, HAWKI_COL_2MASS_K_MAG, 98);
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_step_photom_2mass.c:763:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(magerrcol_2mass, HAWKI_COL_2MASS_K_MAGSIG, 98);
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_step_photom_2mass.c:773:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(magcol_2mass, HAWKI_COL_2MASS_K_MAG, 98);
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_step_photom_2mass.c:774:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(magerrcol_2mass, HAWKI_COL_2MASS_K_MAGSIG, 98);
data/cpl-plugin-hawki-2.4.8+dfsg/recipes/hawki_util_stdstars.c:298:17:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
            if (sscanf(line, "%510s %lg %lg %510s %lg %lg %lg %lg", 

ANALYSIS SUMMARY:

Hits = 366
Lines analyzed = 113946 in approximately 2.97 seconds (38327 lines/second)
Physical Source Lines of Code (SLOC) = 63865
Hits@level = [0] 155 [1]  81 [2] 186 [3]   4 [4]  81 [5]  14
Hits@level+ = [0+] 521 [1+] 366 [2+] 285 [3+]  99 [4+]  95 [5+]  14
Hits/KSLOC@level+ = [0+] 8.15783 [1+] 5.73084 [2+] 4.46254 [3+] 1.55014 [4+] 1.48751 [5+] 0.219212
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.