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-fors-5.5.6+dfsg/mosca/hdrl/hdrl_bpm_fit.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_sigclip.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_overscan_defs.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_catalogue.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_bpm_3d.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/igam.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_test.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_sigclip.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_image.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_fit.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_flat.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_elemop.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_elemop.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_random.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_lacosmics.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_prototyping.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_fringe.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_prototyping.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_strehl.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_imagelist_view.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_frameiter.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_imagelist_view.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_image.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_frameiter.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_image_math.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_image_math.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_bpm_2d.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_bpm_2d.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_bpm_fit.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_combine.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_multiiter.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_iter.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_utils.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_parameter_defs.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_catalogue.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_imagelist_basic.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_lacosmics.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_strehl.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_image_defs.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_buffer.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_collapse.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_parameter.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_bpm_utils.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_overscan.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_random.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_combine.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_iter.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_bpm_utils.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_imagelist.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/tests/hdrl_utils-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/tests/hdrl_elemop-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/tests/hdrl_strehl-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/tests/hdrl_buffer-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/tests/hdrl_fringe-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/tests/hdrl_random-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/tests/hdrl_image-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/tests/hdrl_bpm_2d-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/tests/hdrl_overscan-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/tests/hdrl_collapse-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/tests/hdrl_parameter-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/tests/hdrl_imagelist_basic-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/tests/hdrl_catalogue-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/tests/hdrl_bpm_utils-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/tests/hdrl_combine-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/tests/hdrl_lacosmics-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/tests/hdrl_bpm_3d-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/tests/hdrl_imagelist_view-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/tests/hdrl_bpm_fit-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/tests/hdrl_imagelist_io-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/tests/hdrl_flat-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/tests/hdrl_sigclip-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/tests/hdrl_fit-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/tests/hdrl_frameiter-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_imagelist_io.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_flat.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_fit.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_imagelist_basic.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_types.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_collapse.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_parameter.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_utils.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_multiiter.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_overscan.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/catalogue/create_table_6.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/catalogue/imcore_background.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/catalogue/casu_utilfunctions.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/catalogue/apinit.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/catalogue/moments.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/catalogue/imcore_conf.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/catalogue/imcore_overlp.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/catalogue/casu_utilfunctions.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/catalogue/polynm.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/catalogue/imcore_filter.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/catalogue/classify.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/catalogue/apclust.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/catalogue/create_table.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/catalogue/classify.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/catalogue/seeing.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/catalogue/areals.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/catalogue/imcore_version.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/catalogue/floatmath.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/catalogue/tests/hdrl_casubkg_badpatch-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/catalogue/tests/imcore_moments-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/catalogue/tests/imcore_apinit-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/catalogue/tests/imcore_conf-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/catalogue/tests/imcore_classify-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/catalogue/tests/imcore_polynm-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/catalogue/tests/hdrl_casuaddmul-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/catalogue/tests/hdrl_simulerror_montecarlo-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/catalogue/tests/casu_imcore-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/catalogue/tests/imcore_radii-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/catalogue/tests/imcore_background-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/catalogue/tests/imcore_seeing-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/catalogue/tests/imcore_areals-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/catalogue/imcore_phopt.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/catalogue/imcore_radii.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/catalogue/terminate.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/catalogue/imcore_extend.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/catalogue/solve.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/catalogue/ap.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/catalogue/apline.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/catalogue/util.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/catalogue/imcore.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/catalogue/imcore_radii.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_bpm_3d.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_buffer.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_imagelist_basic_body.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_fringe.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_imagelist_defs.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_imagelist_io.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/wavelength_calibration.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/flat_combine.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/extinction.cpp
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/statistics.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/image_smooth.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/rect_region.cpp
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/image_spline_fit.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/calibrated_slit.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/reduce_method.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/ccd_config.cpp
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/global_distortion.cpp
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/response.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/detected_slits.cpp
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/mosca_image.cpp
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/spectrum.cpp
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/ccd_config.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/spec_std_star.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/statistics.cpp
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/vector_utils.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/extinction.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/grism_config.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/slit_trace_distortion.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/vector_utils.cpp
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/profile_providers.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/slit_trace_distortion.cpp
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/spec_std_star.cpp
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/grism_config.cpp
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/image_normalisation.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/wavelength_calibration.cpp
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/mosca_image.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/global_distortion.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/detected_slit.cpp
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/tests/fiera_config-test.cpp
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/tests/flat_combine-test.cpp
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/tests/image_smooth-test.cpp
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/tests/image_normalisation-test.cpp
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/image_utils.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/spectrum.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/detected_slits.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/spatial_distortion.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/rect_region.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/fiera_config.cpp
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/reduce_method.cpp
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/fiera_config.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/image_smooth.cpp
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/calibrated_slit.cpp
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/type_traits.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/spatial_distortion.cpp
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/detected_slit.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/response.cpp
Examining data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_normalise_flat.cc
Examining data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_config.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_img_science.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_resample.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_subtract_sky_lss.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_photometry.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_zeropoint.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_spec_mflat.cc
Examining data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_dark.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_pmos_science.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_bias.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_remove_bias.cc
Examining data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_trace_flat.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_flatfield.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_detect_spectra.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_wave_calib_lss.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_sumflux.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_img_screen_flat.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_pmos_calib.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_align_sky_lss.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_calib.cc
Examining data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_subtract_sky.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_science.cc
Examining data/cpl-plugin-fors-5.5.6+dfsg/recipes/tests/recipes-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_extract_slits.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_img_sky_flat.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_extract.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_align_sky.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_wave_calib.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_extract_objects.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_detect_objects.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_pmos_extract.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/irplib_distortion.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/irplib_oddeven.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/irplib_polynomial.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/irplib_stdstar.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/irplib_flat.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/irplib_calib.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/irplib_wavecal.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/irplib_ksigma_clip.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/irplib_slitpos.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/irplib_wcs.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/irplib_calib.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/irplib_plugin.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/irplib_polynomial.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/irplib_hist.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/irplib_wlxcorr.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/irplib_ppm.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/irplib_slitpos.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/irplib_mkmaster.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/irplib_plugin.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/irplib_ksigma_clip_body.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/irplib_cat.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/irplib_match_cats.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/irplib_framelist.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/irplib_spectrum.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/irplib_framelist.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/irplib_oddeven.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/irplib_utils.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/irplib_wcs.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/irplib_wlxcorr.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/irplib_wavecal.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/irplib_spectrum.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/irplib_flat.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/tests/irplib_cat-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/tests/irplib_utils-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/tests/irplib_sdp_spectrum-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/tests/irplib_wlxcorr-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/tests/irplib_strehl-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/tests/irplib_plugin-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/tests/irplib_hist-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/tests/irplib_framelist-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/tests/irplib_wcs-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/tests/irplib_polynomial-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/irplib_stdstar.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/irplib_ppm.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/irplib_strehl.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/irplib_wavecal_impl.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/irplib_cat.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/irplib_strehl.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/irplib_utils.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/irplib_match_cats.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/irplib_sdp_spectrum.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/irplib_mkmaster.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/irplib_distortion.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/irplib_ksigma_clip.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/irplib_hist.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/irplib/irplib_sdp_spectrum.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_response.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_qc.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_ccd_config.cc
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_point.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_saturation.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_photometry_impl.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_qc.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_pfits.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_preprocess.cc
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_trimm_illum.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_zeropoint_impl.cc
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_polynomial.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_grism.cc
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_img_sky_flat_impl.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_stats.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/list.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_std_star.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_bias_impl.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_preprocess.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_identify.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_overscan.cc
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_dfs.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_utils.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_instrument.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_header.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_ccd_config.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_pfits.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_dark_impl.cc
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_image.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_paf.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_dfs_idp.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_star.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_polynomial.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_stats.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_img_idp.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_zeropoint_impl.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_flat_normalise.cc
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_spec_idp.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_std_cat.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_detected_slits.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_saturation_mos.cc
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_image.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_point.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_img_screen_flat_impl.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_flat_normalise.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_star.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_overscan.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_instrument.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_tools.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_trimm_illum.cc
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_spec_idp.cc
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_saturation.cc
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/list.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_calibrated_slits.cc
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_calibrated_slits.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_detmodel.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_dark_impl.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_std_star.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_setting.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_bpm.cc
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_bpm.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_stack.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_img_screen_flat_impl.cc
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_dfs_idp.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_img_science_impl.cc
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_dfs.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/tests/fors_std_star-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/tests/fors_dfs_idp-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/tests/fors_point-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/tests/list-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/tests/fors_bias-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/tests/fors_dfs-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/tests/fors_photometry-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/tests/fors_image-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/tests/fors_zeropoint-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/tests/fors_img_science-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/tests/test_simulate.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/tests/fors_identify-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/tests/fors_img_screen_flat-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/tests/fors_setting-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/tests/fors_star-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/tests/fors_img_sky_flat-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/tests/fors_pattern-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/tests/fors-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/tests/fors_trimm_non_illum-test.cc
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/tests/fors_cpl_wcs-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/tests/test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/tests/fs_test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/tests/fors_stack-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/tests/test_simulate.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/tests/fors_qc-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/tests/test.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/tests/fors_dark-test.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/tests/fs_test.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_header.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_utils.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_double.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_data.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_stack.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_pattern.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_recipe_impl.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_paf.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_extract.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_grism.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_subtract_bias.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_img_science_impl.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_identify.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_img_idp.cc
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/list_void.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_subtract_bias.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_detmodel.cc
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_photometry_impl.cc
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_bias_impl.cc
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_response.cc
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_pattern.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_double.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_setting.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_data.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_tools.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_detected_slits.cc
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_saturation_mos.h
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_std_cat.c
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_img_sky_flat_impl.cc
Examining data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_extract.c

FINAL RESULTS:

data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_dfs.c:99:14:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strlower(strcpy(filename, category));
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_dfs.c:1050:14:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strlower(strcpy(filename, category));
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_dfs.c:1220:14:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strlower(strcpy(filename, category));
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_dfs.c:1348:14:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strlower(strcpy(filename, category));
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_dfs.c:1520:14:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strlower(strcpy(filename, category));
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_dfs.c:1644:14:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strlower(strcpy(filename, category));
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_dfs.c:1878:14:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strlower(strcpy(filename, tag));
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_dfs.c:1918:14:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strlower(strcpy(filename, tag));
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_dfs.c:1959:14:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strlower(strcpy(filename, tag));
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_extract.c:567:13:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    assure( system(command) == 0, return stars, "'%s' failed", command);
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_header.c:88:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(header_name, name);
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_header.c:151:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(header_name, name);
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_header.c:192:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(header_name, name);
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_polynomial.c:515:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(ndxstr, "%"CPL_SIZE_FORMAT, pows[0]);
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_polynomial.c:517:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(ndxstr+strlen(ndxstr), ",%"CPL_SIZE_FORMAT, pows[dim]);
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_polynomial.c:599:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(ndxstr, "%s_", prefix);
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_polynomial.c:606: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(ndxstr+strlen(ndxstr),         max_nr_strlen+1,
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_polynomial.c:610: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(ndxstr+strlen(ndxstr),     max_nr_strlen+2,
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_qc.c:86:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(pafName, "%s%.4d.paf", PAF_ROOT_NAME, pafIndex);
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_qc.c:251:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(allComment, "%s [%s]", comment, instrument);
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_qc.c:283:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(allComment, "%s [%s]", comment, instrument);
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_qc.c:342:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(allComment, "%s (%s) [%s]", comment, unit, instrument);
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_qc.c:344:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(allComment, "%s [%s]", comment, instrument);
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_qc.c:382:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(allComment, "%s (%s) [%s]", comment, unit, instrument);
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_qc.c:384:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(allComment, "%s [%s]", comment, instrument);
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_qc.c:561:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(header_name, name);
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_qc.c:624:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(header_name, name);
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_qc.c:665:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(header_name, name);
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_utils.c:667:5:  [4] (format) vsnprintf:
  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.
    vsnprintf(message, MAX_MESSAGE_LENGTH - 1, format, al);
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_utils.h:172:24:  [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, 3, 4)))
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:10063:4:  [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(name, MAX_COLNAME, "%"CPL_SIZE_FORMAT, j);
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:10099:6:  [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(name, MAX_COLNAME, "%"CPL_SIZE_FORMAT, k);
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:10110:4:  [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(name, MAX_COLNAME, "%"CPL_SIZE_FORMAT, j);
data/cpl-plugin-fors-5.5.6+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-fors-5.5.6+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-fors-5.5.6+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-fors-5.5.6+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-fors-5.5.6+dfsg/irplib/irplib_wlxcorr.c:755:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(title_loc, 
data/cpl-plugin-fors-5.5.6+dfsg/irplib/irplib_wlxcorr.c:788:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(title_loc, 
data/cpl-plugin-fors-5.5.6+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-fors-5.5.6+dfsg/mosca/hdrl/hdrl_imagelist_io.c:496:22:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    cpl_ensure_code( fprintf(stream,  msg, himlist->ni) >= msgmin,
data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_imagelist_io.c:504:22:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    cpl_ensure_code( fprintf(stream,  imsg, i, himlist->ni) >= imsgmin,
data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_imagelist_io.c:550:22:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    cpl_ensure_code( fprintf(stream,  imsg, i, himlist->ni) >= imsgmin,
data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_utils.c:469:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (dir && access(dir, W_OK) == 0) {
data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_utils.c:474:31:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
            if (tmpdirs[i] && access(tmpdirs[i], W_OK) == 0) {
data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/tests/hdrl_frameiter-test.c:378:9:  [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.
    if (system(rm_fns)) {}
data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_config.c:748:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(filename, "%s_GRS_%s_%s_%s_%s.fits", 
data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_science.cc:3040: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(name, MAX_COLNAME, "object_%" CPL_SIZE_FORMAT, maxobjects);
data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_science.cc:3043: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(name, MAX_COLNAME, "object_%" CPL_SIZE_FORMAT, maxobjects);
data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_science.cc:3050:13:  [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(name, MAX_COLNAME, "object_%" CPL_SIZE_FORMAT, j);
data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_science.cc:3068:13:  [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(name, MAX_COLNAME, "object_%" CPL_SIZE_FORMAT, j);
data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_science.cc:3070:17:  [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(name, MAX_COLNAME, "start_%" CPL_SIZE_FORMAT, j);
data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_science.cc:3072:17:  [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(name, MAX_COLNAME, "end_%" CPL_SIZE_FORMAT, j);
data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_science.cc:3102:17:  [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(name, MAX_COLNAME, "ra_%" CPL_SIZE_FORMAT, j);
data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_science.cc:3109:17:  [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(name, MAX_COLNAME, "dec_%" CPL_SIZE_FORMAT, j);
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_paf.c:327:12:  [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.
    user = getenv("USER");
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_paf.c:328: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.
    user = user == NULL ? getenv("LOGNAME") : user;
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:203:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand((unsigned int)time((time_t *)0));
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:14479:51:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
                    char      *saturation_level = getenv("SATURATION_LEVEL");
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:14481:48:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
                    char      *max_saturated = getenv("MAX_SATURATED");
data/cpl-plugin-fors-5.5.6+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-fors-5.5.6+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-fors-5.5.6+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-fors-5.5.6+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-fors-5.5.6+dfsg/mosca/hdrl/hdrl_buffer.c:283:13:  [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.
            getenv("HDRL_BUFFER_MALLOC")) {
data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_utils.c:460:9:  [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.
        getenv("TMPDIR"),
data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_pmos_calib.c:987:28:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        char *montecarlo = getenv("MONTECARLO");
data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_pmos_science.c:777:28:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        char *montecarlo = getenv("MONTECARLO");
data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_pmos_science.c:2141: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.
                    char *signal_to_noise  = getenv("SIGNAL_TO_NOISE" );
data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_pmos_science.c:2143:38:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
                    char *min_s2n  = getenv("MIN_S2N" );
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_dfs.c:100:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(filename, ".fits");
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_dfs.c:1051:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(filename, ".fits");
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_dfs.c:1221:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(filename, ".fits");
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_dfs.c:1349:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(filename, ".fits");
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_dfs.c:1521:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(filename, ".fits");
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_dfs.c:1646:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(filename, ".fits");
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_dfs.c:1879:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(filename, ".fits");
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_dfs.c:1919:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(filename, ".fits");
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_dfs.c:1960:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(filename, ".fits");
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_flat_normalise.cc:96: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 *clab[6] = {"c0", "c1", "c2", "c3", "c4", "c5"};
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_header.c:87:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(header_name, "ESO ");
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_header.c:150:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy(header_name, "ESO ");
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_header.c:191:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy(header_name, "ESO ");
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_instrument.c:36:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char  name[10];
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_paf.c:129: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 timeISO8601[TIME_ISO8601_LENGTH];
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_paf.c:134:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(timeISO8601, "0000-00-00T00:00:00");
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_paf.c:224: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(record->data.sval, value, sz);
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_paf.c:261:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(record->data.sval, value, sz);
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_paf.c:392: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 buffer[PAF_RECORD_MAX + 1];
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_paf.c:393:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char value[PAF_RECORD_MAX + 1];
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_paf.c:852:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    stream = fopen(paf->name, "wb");
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_paf.c:869: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 buffer[PAF_RECORD_MAX];
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_pfits.c:48:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *const FORS_PFITS_CONAD[4]    = {"ESO DET OUT1 CONAD",
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_pfits.c:52:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *const FORS_PFITS_RON[4]      = {"ESO DET OUT1 RON",
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_pfits.h:41: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.
extern const char *const FORS_PFITS_CONAD[4];
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_pfits.h:42: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.
extern const char *const FORS_PFITS_RON[4];
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_photometry_impl.cc:1387: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    estr[15];
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_photometry_impl.cc:1392: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(estr, "E_%d:         ", ext_index);
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_photometry_impl.cc:1503: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    exceed_max_err[30];
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_photometry_impl.cc:1504: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(exceed_max_err, "> %f", max_error);
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_photometry_impl.cc:3013:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char            name[16];
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_photometry_impl.cc:3014:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf(name, "non-std-%d", inonstd);
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_polynomial.c:475:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            max_ndx_str[15];
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_polynomial.c:501:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(max_ndx_str, "%d", ndegs);
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_polynomial.c:573:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            max_ndx_str[15];
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_polynomial.c:593:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(max_ndx_str, "%d", max_nr);
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_qc.c:81:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char pafName[MAX_PAF_NAME_LENGTH];
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_qc.c:560:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(header_name, "ESO ");
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_qc.c:623:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy(header_name, "ESO ");
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_qc.c:664:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy(header_name, "ESO ");
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_response.cc:102: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  name[MAX_COLNAME];
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_response.cc:338:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  name[MAX_COLNAME];
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_std_cat.c:591: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        estr[10];
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_std_cat.c:678: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  landolt_columns[5][4] = { "V", "B_V", "U_B", "V_R", "V_I" };
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_std_cat.c:765: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  stetson_columns[5][2] = { "U", "B", "V", "R", "I" };
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_std_cat.c:863:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            const char  *s[2];
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_std_cat.c:951:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        const char      name[10];
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_std_cat.c:1301:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *const FORS_DATA_STD_MAG[FORS_NUM_FILTER] =
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_std_cat.c:1311:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *const FORS_DATA_STD_DMAG[FORS_NUM_FILTER] =
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_std_cat.c:1321:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *const FORS_DATA_STD_COL[FORS_NUM_FILTER] = 
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_std_cat.c:1420: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 B1[2] = {'\0', '\0'};
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_std_cat.c:1509: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 C1[2] = {'\0', '\0'};
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_std_cat.c:1510: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 C2[2] = {'\0', '\0'};
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_utils.c:663:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char message[MAX_MESSAGE_LENGTH];
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_zeropoint_impl.cc:1486:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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   bytes[8];
data/cpl-plugin-fors-5.5.6+dfsg/fors/list.c:722: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(elemcpy, l->elements, len);
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:616:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char   name[MAX_COLNAME];
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:642:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char       name[MAX_COLNAME];
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:1206: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 *clab[6] = {"c0", "c1", "c2", "c3", "c4", "c5"};
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:1696: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     *clab[6] = {"c0", "c1", "c2", "c3", "c4", "c5"};
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:1850: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     *clab[6] = {"c0", "c1", "c2", "c3", "c4", "c5"};
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:1977: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 *clab[6] = {"c0", "c1", "c2", "c3", "c4", "c5"};
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:2299: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 *clab[6] = {"c0", "c1", "c2", "c3", "c4", "c5"};
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:2938: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 *clab[6] = {"c0", "c1", "c2", "c3", "c4", "c5"};
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:3069: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 *clab[6] = {"c0", "c1", "c2", "c3", "c4", "c5"};
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:3421: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 *clab[6] = {"c0", "c1", "c2", "c3", "c4", "c5"};
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:5488: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 *clab[6] = {"c0", "c1", "c2", "c3", "c4", "c5"};
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:5494:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            name[MAX_COLNAME];
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:7798:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char         trace_id[MAX_COLNAME];
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:8206:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            trace_id[MAX_COLNAME];
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:8207:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            trace_res[MAX_COLNAME];
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:8208:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            trace_mod[MAX_COLNAME];
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:8209: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     *clab[6] = {"c0", "c1", "c2", "c3", "c4", "c5"};
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:8363: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 *clab[6] = {"c0", "c1", "c2", "c3", "c4", "c5"};
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:8545: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 *clab[6] = {"c0", "c1", "c2", "c3", "c4", "c5"};
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:8971: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 *clab[6] = {"c0", "c1", "c2", "c3", "c4", "c5"};
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:8977:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            name[MAX_COLNAME];
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:9732: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 *clab[6] = {"c0", "c1", "c2", "c3", "c4", "c5"};
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:9954:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char *clab[6] = {"c0", "c1", "c2", "c3", "c4", "c5"};
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:10018:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char offname[MAX_COLNAME];
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:10060:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    char name[MAX_COLNAME];
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:10203: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 *clab[6] = {"c0", "c1", "c2", "c3", "c4", "c5"};
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:10218:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            offname[MAX_COLNAME];
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:10597: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 *clab[6] = {"c0", "c1", "c2", "c3", "c4", "c5"};
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:10622:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            name[MAX_COLNAME];
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:10623:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[MAX_COLNAME];
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:11239: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 *clab[6] = {"c0", "c1", "c2", "c3", "c4", "c5"};
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:11324: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 *clab[6] = {"c0", "c1", "c2", "c3", "c4", "c5"};
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:11437: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 *clab[6] = {"c0", "c1", "c2", "c3", "c4", "c5"};
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:11787: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 *clab[6] = {"c0", "c1", "c2", "c3", "c4", "c5"};
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:12868:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        name[MAX_COLNAME];
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:13727: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 *clab[6] = {"c0", "c1", "c2", "c3", "c4", "c5"};
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:13995:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        name[MAX_COLNAME];
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:14344:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        name[MAX_COLNAME];
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:14489:37:  [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).
                        max_satur = atoi(max_saturated);
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:14905:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        keyname[MAX_COLNAME];
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:15161:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        keyname[MAX_COLNAME];
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:15580:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char       keyname[MAX_COLNAME];
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:15624: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(keyname, "ESO INS SLIT%d ID", i+1);
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:15630: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(keyname, "ESO INS SLIT%d X", i+1);
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:15636: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(keyname, "ESO INS SLIT%d Y", i+1);
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:15642: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(keyname, "ESO INS SLIT%d DIMX", i+1);
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:15649: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(keyname, "ESO INS SLIT%d BEZIER DY", i+1);
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:15654: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(keyname, "ESO INS SLIT%d DIMY", i+1);
data/cpl-plugin-fors-5.5.6+dfsg/fors/tests/fors_cpl_wcs-test.c:62:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *skeys[NSK] = {"CTYPE1", "CTYPE2"};
data/cpl-plugin-fors-5.5.6+dfsg/fors/tests/fors_cpl_wcs-test.c:64:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *dkeys[NDK] = {"CRVAL1", "CRVAL2", "CRPIX1", "CRPIX2", 
data/cpl-plugin-fors-5.5.6+dfsg/fors/tests/fors_cpl_wcs-test.c:67: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 *ikeys[NIK] = {"NAXIS","NAXIS1","NAXIS2"};
data/cpl-plugin-fors-5.5.6+dfsg/fors/tests/fors_cpl_wcs-test.c:70:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *svals[NSK] = {"RA---ZPN", "DEC--ZPN"};
data/cpl-plugin-fors-5.5.6+dfsg/fors/tests/fors_dfs-test.c:638: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 *f = fopen("other.txt", "w");
data/cpl-plugin-fors-5.5.6+dfsg/fors/tests/test_simulate.c:51:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *const FORS_DATA_STD_MAG[FORS_NUM_FILTER] =
data/cpl-plugin-fors-5.5.6+dfsg/fors/tests/test_simulate.c:61:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *const FORS_DATA_STD_DMAG[FORS_NUM_FILTER] =
data/cpl-plugin-fors-5.5.6+dfsg/fors/tests/test_simulate.c:71:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *const FORS_DATA_STD_COL[FORS_NUM_FILTER] = 
data/cpl-plugin-fors-5.5.6+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-fors-5.5.6+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-fors-5.5.6+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-fors-5.5.6+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-fors-5.5.6+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-fors-5.5.6+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-fors-5.5.6+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-fors-5.5.6+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-fors-5.5.6+dfsg/irplib/irplib_wlxcorr.c:738:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-fors-5.5.6+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-fors-5.5.6+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-fors-5.5.6+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-fors-5.5.6+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-fors-5.5.6+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-fors-5.5.6+dfsg/mosca/hdrl/catalogue/casu_utilfunctions.c:17: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-fors-5.5.6+dfsg/mosca/hdrl/catalogue/casu_utilfunctions.c:306:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-fors-5.5.6+dfsg/mosca/hdrl/catalogue/classify.c:97: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 *g_colsfull[NCOLFULL] = {"Aper_flux_3","Aper_flux_1","Aper_flux_4",
data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/catalogue/classify.c:207:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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, NCOLFULL) ], colname[32];
data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/catalogue/classify.c:233:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        cols[i] = (char *)g_colsfull[i];
data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/catalogue/classify.c:288: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_%zd_profile",i+1);
data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/catalogue/create_table.c:304: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-fors-5.5.6+dfsg/mosca/hdrl/catalogue/create_table.c:305: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-fors-5.5.6+dfsg/mosca/hdrl/catalogue/create_table.c:305: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-fors-5.5.6+dfsg/mosca/hdrl/catalogue/create_table_6.c:95: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-fors-5.5.6+dfsg/mosca/hdrl/catalogue/create_table_6.c:124: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-fors-5.5.6+dfsg/mosca/hdrl/catalogue/create_table_6.c:273:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-fors-5.5.6+dfsg/mosca/hdrl/catalogue/create_table_6.c:278: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[g_areal_cols[i]-1];
data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/catalogue/imcore_conf.c:164:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-fors-5.5.6+dfsg/mosca/hdrl/hdrl_collapse.c:1863: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(ddst + y, dsrc, cpl_vector_get_size(src->reject_low));
data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_collapse.c:1866: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(ddst + y, dsrc, cpl_vector_get_size(src->reject_high));
data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_utils.c:484:18:  [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).
        int fd = mkstemp(template);
data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_utils.c:775:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(ddata, sdata, naxis1 * naxis2 * sizeof(ddata[0]));
data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_utils.c:1514: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(&dstatus[i], cpl_array_get_data_int(lstatus),
data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/global_distortion.cpp:138: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     *clab[6] = {"c0", "c1", "c2", "c3", "c4", "c5"};
data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/global_distortion.cpp: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   name[MAX_COLNAME];
data/cpl-plugin-fors-5.5.6+dfsg/mosca/libmosca/spatial_distortion.cpp:352: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 *clab[6] = {"c0", "c1", "c2", "c3", "c4", "c5"};
data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_align_sky.c:366:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        version[80];
data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_align_sky_lss.c:359:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        version[80];
data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_calib.cc:1700:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        const char *clab[6] = {"c0", "c1", "c2", "c3", "c4", "c5"};
data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_detect_objects.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        version[80];
data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_detect_spectra.c:420:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        version[80];
data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_extract.c:641:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char         version[80];
data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_extract_objects.c:264:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    version[80];
data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_extract_slits.c:332:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        version[80];
data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_flatfield.c:237:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        version[80];
data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_normalise_flat.cc:406:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char *clab[6] = {"c0", "c1", "c2", "c3", "c4", "c5"};
data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_normalise_flat.cc:511:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        version[80];
data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_pmos_calib.c:664:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    version[80];
data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_pmos_calib.c:990:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            doit = atoi(montecarlo);
data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_pmos_extract.c:631:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    version[80];
data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_pmos_science.c:700:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    version[80];
data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_pmos_science.c:780:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            doit = atoi(montecarlo);
data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_pmos_science.c:2150:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                        ms2n = atoi(min_s2n);
data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_pmos_science.c:2175:32:  [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(filename, "w");
data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_pmos_science.c:2192:32:  [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(filename, "w");
data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_resample.c:325:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        version[80];
data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_science.cc:747:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        version[80];
data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_science.cc:2346:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char   keyname[30];
data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_science.cc:2374:25:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                        sprintf(keyname, "QC.SPEC.EFFICIENCY%d.LAMBDA", 
data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_science.cc:2384:25:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                        sprintf(keyname, "QC.SPEC.EFFICIENCY%d", i + 1);
data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_science.cc:3038:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        name[MAX_COLNAME];
data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_spec_mflat.cc:349:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        version[80];
data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_subtract_sky.c:328:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        version[80];
data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_subtract_sky_lss.c:246:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        version[80];
data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_sumflux.c:322:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    version[80];
data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_sumflux.c:323:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    lamp[20];
data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_trace_flat.c:363:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        version[80];
data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_wave_calib.c:423:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        version[80];
data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_wave_calib_lss.c:427:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        version[80];
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_dfs.c:97:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char *filename = (char*)cpl_calloc(strlen(category) + 6, sizeof(char));
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_dfs.c:384: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).
    assure( strlen(instrume) >= 5, return NULL,
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_dfs.c:1048: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).
    filename = (char*)cpl_calloc(strlen(category) + 6, sizeof(char));
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_dfs.c:1218: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).
    filename = (char*)cpl_calloc(strlen(category) + 6, sizeof(char));
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_dfs.c:1346: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).
    filename = (char*)cpl_calloc(strlen(category) + 6, sizeof(char));
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_dfs.c:1518: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).
    filename = (char*)cpl_calloc(strlen(category) + 6, sizeof(char));
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_dfs.c:1642: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).
    filename = (char*)cpl_calloc(strlen(category) + 6, sizeof(char));
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_dfs.c:1866:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char * filename = (char*)cpl_calloc(strlen(tag) + 6, sizeof(char));
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_dfs.c:1905:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char * filename = (char*)cpl_calloc(strlen(tag) + 6, sizeof(char));
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_dfs.c:1951:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char * filename = (char*)cpl_calloc(strlen(tag) + 6, sizeof(char));
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_header.c:85:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    header_name = (char*)cpl_malloc((strlen(name) + 6) * sizeof(char *));
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_header.c:148:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  header_name = (char*)cpl_malloc((strlen(name) + 6) * sizeof(char *));
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_header.c:189:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  header_name = (char*)cpl_malloc((strlen(name) + 6) * sizeof(char *));
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_img_idp.cc:100: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).
	const cpl_size exp_length = strlen(not_expected_mov);
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_img_idp.cc:127: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).
		const cpl_size exp_length = strlen(expected_mov);
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_paf.c:164: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).
            sz = (strlen((char *)value) + 1) * sizeof(char);
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_paf.c:406: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).
    if (strlen(record->name) + 1 > PAF_RECORD_MAX)
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_paf.c:414: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).
    sz = strlen(record->name);
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_paf.c:415:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(buffer, record->name, sz);
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_paf.c:441:25:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                        strcat(value, ".");
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_paf.c:459:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        sz = strlen(value);
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_paf.c:468:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(&buffer[pos], value, sz);
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_paf.c:487:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(&buffer[pos], "# ", 2);
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_paf.c:489:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        sz = strlen(record->comment);
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_paf.c:490:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(&buffer[pos], record->comment, sz);
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_paf.c:653: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).
    sz = strlen(name);
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_photometry_impl.cc:468:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len1 = strlen(m1);
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_photometry_impl.cc:469:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len2 = strlen(m2);
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_polynomial.c:502:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ndxstr = cpl_calloc(ndims*(strlen(max_ndx_str)+1), sizeof(*ndxstr));
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_polynomial.c:517:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                sprintf(ndxstr+strlen(ndxstr), ",%"CPL_SIZE_FORMAT, pows[dim]);
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_polynomial.c:594: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).
    max_nr_strlen = strlen(max_ndx_str);
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_polynomial.c:597: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).
        int len = strlen(prefix) + 1 + ndims*(max_nr_strlen+1);
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_polynomial.c:606: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).
    snprintf(ndxstr+strlen(ndxstr),         max_nr_strlen+1,
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_polynomial.c:610:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        snprintf(ndxstr+strlen(ndxstr),     max_nr_strlen+2,
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_qc.c:240:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int   length = strlen(instrument) + 3;
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_qc.c:247:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length += strlen(comment) + 1;
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_qc.c:272:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int   length = strlen(instrument) + 3;
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_qc.c:279:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length += strlen(comment) + 1;
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_qc.c:327:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int   length = strlen(instrument) + 3;
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_qc.c:334:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length += strlen(comment) + 1;
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_qc.c:337:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      length += strlen(unit) + 3;
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_qc.c:367:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int   length = strlen(instrument) + 3;
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_qc.c:374:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length += strlen(comment) + 1;
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_qc.c:377:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      length += strlen(unit) + 3;
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_qc.c:558: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).
    header_name = cpl_malloc((strlen(name) + 6) * sizeof(char *));
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_qc.c:621: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).
  header_name = cpl_malloc((strlen(name) + 6) * sizeof(char *));
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_qc.c:662: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).
  header_name = cpl_malloc((strlen(name) + 6) * sizeof(char *));
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_setting.c:378:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  s->chip_id+strlen(s->chip_id) == p+1)
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_std_cat.c:1501: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).
            assure( strlen(col) == strlen("X_Y"), return c,
data/cpl-plugin-fors-5.5.6+dfsg/fors/fors_std_cat.c:1501:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            assure( strlen(col) == strlen("X_Y"), return c,
data/cpl-plugin-fors-5.5.6+dfsg/fors/moses.c:18441:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int        nbands = strlen(bands);
data/cpl-plugin-fors-5.5.6+dfsg/fors/tests/fors_dark-test.c:227:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            test(master_dark_fname != NULL && strlen(master_dark_fname) > 0);
data/cpl-plugin-fors-5.5.6+dfsg/fors/tests/fors_dfs_idp-test.c:283: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).
	test_eq(strlen(referenc), 0);
data/cpl-plugin-fors-5.5.6+dfsg/irplib/irplib_framelist.c:1171: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-fors-5.5.6+dfsg/irplib/irplib_framelist.c:1193: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-fors-5.5.6+dfsg/irplib/irplib_framelist.c:1205: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-fors-5.5.6+dfsg/irplib/irplib_framelist.c:1217: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-fors-5.5.6+dfsg/irplib/irplib_framelist.c:1229: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-fors-5.5.6+dfsg/irplib/irplib_framelist.c:1241: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-fors-5.5.6+dfsg/irplib/irplib_framelist.c:1253: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-fors-5.5.6+dfsg/irplib/irplib_framelist.c:1264: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-fors-5.5.6+dfsg/irplib/irplib_framelist.c:1279: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-fors-5.5.6+dfsg/irplib/irplib_framelist.c:1284: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-fors-5.5.6+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-fors-5.5.6+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-fors-5.5.6+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-fors-5.5.6+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-fors-5.5.6+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-fors-5.5.6+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-fors-5.5.6+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-fors-5.5.6+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-fors-5.5.6+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-fors-5.5.6+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-fors-5.5.6+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-fors-5.5.6+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-fors-5.5.6+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-fors-5.5.6+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-fors-5.5.6+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-fors-5.5.6+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-fors-5.5.6+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-fors-5.5.6+dfsg/mosca/hdrl/hdrl_imagelist_io.c:489:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    const int    msgmin = (int)strlen(msg) - 5;
data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_imagelist_io.c:502: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).
    const int               imsgmin = (int)strlen(imsg) - 5;
data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_imagelist_io.c:548: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).
    const int               imsgmin = (int)strlen(imsg) - 5;
data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_utils.c:346:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    const char * sep = strlen(prefix) > 0 ? "." : "";
data/cpl-plugin-fors-5.5.6+dfsg/mosca/hdrl/hdrl_utils.c:391: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).
        if (val == NULL || strlen(val) == 0) {
data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_config.c:740:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len += strlen(instrument);
data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_config.c:741:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len += strlen(grism + 5);
data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_config.c:742:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len += strlen(grism_id);
data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_config.c:743:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len += strlen(filter);
data/cpl-plugin-fors-5.5.6+dfsg/recipes/fors_config.c:744:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len += strlen(filter_id);

ANALYSIS SUMMARY:

Hits = 341
Lines analyzed = 175689 in approximately 4.42 seconds (39769 lines/second)
Physical Source Lines of Code (SLOC) = 105528
Hits@level = [0] 397 [1]  90 [2] 181 [3]  15 [4]  55 [5]   0
Hits@level+ = [0+] 738 [1+] 341 [2+] 251 [3+]  70 [4+]  55 [5+]   0
Hits/KSLOC@level+ = [0+] 6.9934 [1+] 3.23137 [2+] 2.37852 [3+] 0.663331 [4+] 0.521189 [5+]   0
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.