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/photoflow-0.2.8+git20200114/src/phf_stack.cc
Examining data/photoflow-0.2.8+git20200114/src/benchmarks/matrix-3x3.cc
Examining data/photoflow-0.2.8+git20200114/src/benchmarks/invert.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/imageeditor.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/softproofdialog.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/raw_histogram.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/widgets/checkbox.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/widgets/layerlist.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/widgets/selector.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/widgets/outmode_slider.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/widgets/numentry.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/widgets/percent_selector.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/widgets/vslider.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/widgets/toolbutton.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/widgets/curveeditor.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/widgets/textbox.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/widgets/statusindicator.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/widgets/exposure_slider.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/widgets/slider.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/widgets/pfwidget.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/widgets/lensfun_selector.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/widgets/imagebutton.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operation_config_gui.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/layertree_dnd.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/imagearea.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/doublebuffer.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/layerwidget.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/image_info.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/exportdialog.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/layertree.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/help.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/channel_mixer_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/gradient_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/raw_developer_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/basic_adjustments_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/color_correction_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/imageread_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/OCIO/ocio_filmic_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/OCIO/ocio_config_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/OCIO/ocio_aces_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/unsharp_mask_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/uniform_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/levels_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/path_mask_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/clone_stamp_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/curves_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/guided_filter_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/blur_bilateral_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/tone_mapping_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/crop_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/hsl_mask_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/vips_operation_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/local_contrast_config_v2.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/volume_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/split_details_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/raw_loader_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/convert_colorspace_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/sharpen_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/gaussblur_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/tone_mapping_config_v2.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/dynamic_range_compressor_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/threshold_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/lensfun_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/wavdec_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/shadows_highlights_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/dynamic_range_compressor_config_v2.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/local_contrast_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/scale_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/defringe_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/relight_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/shadows_highlights_config_v2.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/perspective_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/desaturate_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/draw_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/clip_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/clone_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/emulate_film_negative_color_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/smooth_nlmeans_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/gmic_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/blur_bilateral_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/tone_mapping_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/emulate_film_instant_consumer_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/emulate_film_various_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/emulate_film_negative_new_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/emulate_film_print_films_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/emulate_film_bw_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/transfer_colors_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/emulate_film_instant_pro_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/emulate_film_colorslide_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/gradient_norm_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/sharpen_rl_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/obsolete/denoise_gmic_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/obsolete/iain_denoise_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/obsolete/smooth_nlmeans_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/obsolete/inpaint_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/obsolete/smooth_total_variation_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/obsolete/watermark_fourier_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/obsolete/smooth_guided_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/obsolete/smooth_mean_curvature_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/obsolete/split_details_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/obsolete/smooth_selective_gaussian_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/obsolete/extract_foreground_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/obsolete/smooth_wavelets_haar_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/obsolete/gcd_despeckle_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/obsolete/smooth_median_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/obsolete/smooth_diffusion_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/obsolete/dream_smooth_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/convolve_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/new_gmic_operation_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/emulate_film_negative_old_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/smooth_anisotropic_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/emulate_film_user_defined_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/white_balance_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operations/denoise_config.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/sampler.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/mainwindow.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/operationstree.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/settingsdialog.cc
Examining data/photoflow-0.2.8+git20200114/src/gui/histogram.cc
Examining data/photoflow-0.2.8+git20200114/src/pfbatch.cc
Examining data/photoflow-0.2.8+git20200114/src/legacy/gui/operations/raw_developer_config.cc
Examining data/photoflow-0.2.8+git20200114/src/legacy/gui/operations/brightness_contrast_config.cc
Examining data/photoflow-0.2.8+git20200114/src/legacy/gui/operations/hue_saturation_config.cc
Examining data/photoflow-0.2.8+git20200114/src/legacy/operations/raw_developer.cc
Examining data/photoflow-0.2.8+git20200114/src/legacy/operations/raw_preprocessor.cc
Examining data/photoflow-0.2.8+git20200114/src/legacy/operations/brightness_contrast.cc
Examining data/photoflow-0.2.8+git20200114/src/legacy/operations/hue_saturation.cc
Examining data/photoflow-0.2.8+git20200114/src/legacy/operations/raw_output.cc
Examining data/photoflow-0.2.8+git20200114/src/legacy/operations/operations.cc
Examining data/photoflow-0.2.8+git20200114/src/plugin/pluginwindow.cc
Examining data/photoflow-0.2.8+git20200114/src/tests/gmic_test.cpp
Examining data/photoflow-0.2.8+git20200114/src/tests/gtkdisp2.cc
Examining data/photoflow-0.2.8+git20200114/src/tests/vector.cc
Examining data/photoflow-0.2.8+git20200114/src/tests/scrollwin.cc
Examining data/photoflow-0.2.8+git20200114/src/tests/gmic_test.cc
Examining data/photoflow-0.2.8+git20200114/src/tests/gmic.cc
Examining data/photoflow-0.2.8+git20200114/src/tests/icc.c
Examining data/photoflow-0.2.8+git20200114/src/tests/draw2.cc
Examining data/photoflow-0.2.8+git20200114/src/tests/draw.cc
Examining data/photoflow-0.2.8+git20200114/src/tests/rawsave.c
Examining data/photoflow-0.2.8+git20200114/src/tests/local_laplacian_filters.cc
Examining data/photoflow-0.2.8+git20200114/src/tests/cast.c
Examining data/photoflow-0.2.8+git20200114/src/tests/unprocessed_raw.cc
Examining data/photoflow-0.2.8+git20200114/src/tests/refcount.cc
Examining data/photoflow-0.2.8+git20200114/src/external/darktable/src/develop/masks/path.c
Examining data/photoflow-0.2.8+git20200114/src/external/darktable/src/develop/masks.h
Examining data/photoflow-0.2.8+git20200114/src/external/darktable/src/external/wb_presets.c
Examining data/photoflow-0.2.8+git20200114/src/external/darktable/src/external/adobe_coeff.c
Examining data/photoflow-0.2.8+git20200114/src/external/darktable/src/external/cie_colorimetric_tables.c
Examining data/photoflow-0.2.8+git20200114/src/external/darktable/src/common/colormatrices.c
Examining data/photoflow-0.2.8+git20200114/src/external/darktable/src/common/srgb_tone_curve_values.h
Examining data/photoflow-0.2.8+git20200114/src/external/darktable/src/common/colorspaces.h
Examining data/photoflow-0.2.8+git20200114/src/external/darktable/src/common/bilateral.h
Examining data/photoflow-0.2.8+git20200114/src/external/darktable/src/common/colorspaces.c
Examining data/photoflow-0.2.8+git20200114/src/external/darktable/src/common/bilateral.c
Examining data/photoflow-0.2.8+git20200114/src/external/darktable/src/iop/clipping.c
Examining data/photoflow-0.2.8+git20200114/src/external/darktable/src/iop/clipping.cc
Examining data/photoflow-0.2.8+git20200114/src/external/librtprocess/src/demosaic/bayerfast.cc
Examining data/photoflow-0.2.8+git20200114/src/external/librtprocess/src/demosaic/border.cc
Examining data/photoflow-0.2.8+git20200114/src/external/librtprocess/src/demosaic/amaze.cc
Examining data/photoflow-0.2.8+git20200114/src/external/librtprocess/src/demosaic/vng4.cc
Examining data/photoflow-0.2.8+git20200114/src/external/librtprocess/src/demosaic/dcb.cc
Examining data/photoflow-0.2.8+git20200114/src/external/librtprocess/src/demosaic/ahd.cc
Examining data/photoflow-0.2.8+git20200114/src/external/librtprocess/src/demosaic/lmmse.cc
Examining data/photoflow-0.2.8+git20200114/src/external/librtprocess/src/demosaic/markesteijn.cc
Examining data/photoflow-0.2.8+git20200114/src/external/librtprocess/src/demosaic/igv.cc
Examining data/photoflow-0.2.8+git20200114/src/external/librtprocess/src/demosaic/xtransfast.cc
Examining data/photoflow-0.2.8+git20200114/src/external/librtprocess/src/demosaic/rcd.cc
Examining data/photoflow-0.2.8+git20200114/src/external/librtprocess/src/demosaic/hphd.cc
Examining data/photoflow-0.2.8+git20200114/src/external/librtprocess/src/postprocess/hilite_recon.cc
Examining data/photoflow-0.2.8+git20200114/src/external/librtprocess/src/include/boxblur.h
Examining data/photoflow-0.2.8+git20200114/src/external/librtprocess/src/include/array2D.h
Examining data/photoflow-0.2.8+git20200114/src/external/librtprocess/src/include/LUT.h
Examining data/photoflow-0.2.8+git20200114/src/external/librtprocess/src/include/gauss.h
Examining data/photoflow-0.2.8+git20200114/src/external/librtprocess/src/include/opthelper.h
Examining data/photoflow-0.2.8+git20200114/src/external/librtprocess/src/include/librtprocess.h
Examining data/photoflow-0.2.8+git20200114/src/external/librtprocess/src/include/jaggedarray.h
Examining data/photoflow-0.2.8+git20200114/src/external/librtprocess/src/include/sleefsseavx.c
Examining data/photoflow-0.2.8+git20200114/src/external/librtprocess/src/include/bayerhelper.h
Examining data/photoflow-0.2.8+git20200114/src/external/librtprocess/src/include/rt_math.h
Examining data/photoflow-0.2.8+git20200114/src/external/librtprocess/src/include/sleef.c
Examining data/photoflow-0.2.8+git20200114/src/external/librtprocess/src/include/helpersse2.h
Examining data/photoflow-0.2.8+git20200114/src/external/librtprocess/src/include/median.h
Examining data/photoflow-0.2.8+git20200114/src/external/librtprocess/src/include/mytime.h
Examining data/photoflow-0.2.8+git20200114/src/external/librtprocess/src/include/xtranshelper.h
Examining data/photoflow-0.2.8+git20200114/src/external/librtprocess/src/include/StopWatch.h
Examining data/photoflow-0.2.8+git20200114/src/external/librtprocess/src/preprocess/CA_correct.cc
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/bench/librawspeed/interpolators/Cr2sRawInterpolatorBenchmark.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/bench/librawspeed/bench/Common.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/bench/librawspeed/bench/Common.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/bench/librawspeed/metadata/CameraMetaDataBenchmark.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/bench/librawspeed/io/BitStreamBenchmark.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/bench/librawspeed/decompressors/DeflateDecompressorBenchmark.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/bench/librawspeed/common/DefaultInitAllocatorAdaptorBenchmark.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/interpolators/Cr2sRawInterpolator.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/interpolators/Cr2sRawInterpolator.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/RawSpeed-API.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/metadata/Camera.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/metadata/CameraSensorInfo.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/metadata/ColorFilterArray.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/metadata/ColorFilterArray.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/metadata/Camera.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/metadata/CameraMetadataException.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/metadata/CameraSensorInfo.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/metadata/BlackArea.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/metadata/CameraMetaData.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/metadata/CameraMetaData.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/parsers/CiffParser.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/parsers/TiffParserException.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/parsers/TiffParser.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/parsers/RawParser.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/parsers/TiffParser.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/parsers/FiffParser.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/parsers/FiffParserException.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/parsers/FiffParser.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/parsers/RawParser.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/parsers/CiffParserException.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/parsers/RawParserException.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/parsers/CiffParser.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/ErfDecoder.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/NakedDecoder.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/IiqDecoder.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/MosDecoder.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/NakedDecoder.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/DcrDecoder.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/ErfDecoder.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/SimpleTiffDecoder.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/CrwDecoder.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/MefDecoder.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/RawDecoderException.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/NefDecoder.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/ArwDecoder.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/KdcDecoder.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/MrwDecoder.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/ArwDecoder.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/OrfDecoder.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/Cr2Decoder.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/MrwDecoder.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/RawDecoder.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/NefDecoder.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/DcrDecoder.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/Rw2Decoder.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/DngDecoder.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/SrwDecoder.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/RafDecoder.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/KdcDecoder.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/CrwDecoder.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/ThreefrDecoder.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/PefDecoder.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/RawDecoder.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/DngDecoder.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/MefDecoder.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/MosDecoder.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/IiqDecoder.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/Rw2Decoder.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/DcsDecoder.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/OrfDecoder.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/SimpleTiffDecoder.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/Cr2Decoder.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/RafDecoder.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/DcsDecoder.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/ThreefrDecoder.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/AbstractTiffDecoder.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/AbstractTiffDecoder.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/PefDecoder.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/SrwDecoder.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/io/FileIO.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/io/BitPumpMSB16.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/io/ByteStream.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/io/FileIOException.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/io/FileReader.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/io/IOException.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/io/BitPumpMSB32.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/io/BitPumpJPEG.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/io/Buffer.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/io/FileWriter.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/io/FileReader.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/io/BitPumpLSB.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/io/FileWriter.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/io/Endianness.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/io/Buffer.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/io/BitPumpMSB.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/io/BitStream.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/tiff/TiffEntry.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/tiff/TiffIFD.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/tiff/CiffEntry.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/tiff/CiffEntry.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/tiff/TiffIFD.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/tiff/CiffTag.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/tiff/CiffIFD.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/tiff/TiffTag.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/tiff/CiffIFD.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/tiff/TiffEntry.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/HuffmanTableLookup.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/PentaxDecompressor.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/PhaseOneDecompressor.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/HuffmanTableLUT.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/VC5Decompressor.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/Cr2Decompressor.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/PanasonicDecompressorV5.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/HuffmanTableVector.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/FujiDecompressor.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/SonyArw1Decompressor.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/SamsungV1Decompressor.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/NikonDecompressor.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/PentaxDecompressor.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/SonyArw2Decompressor.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/PhaseOneDecompressor.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/UncompressedDecompressor.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/BinaryHuffmanTree.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/SamsungV0Decompressor.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/FujiDecompressor.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/PanasonicDecompressor.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/VC5Decompressor.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/JpegDecompressor.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/LJpegDecompressor.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/HuffmanTable.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/HuffmanTableTree.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/SamsungV0Decompressor.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/Cr2Decompressor.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/AbstractHuffmanTable.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/SonyArw2Decompressor.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/KodakDecompressor.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/PanasonicDecompressorV5.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/SamsungV1Decompressor.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/KodakDecompressor.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/NikonDecompressor.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/LJpegDecompressor.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/OlympusDecompressor.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/OlympusDecompressor.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/AbstractLJpegDecompressor.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/DeflateDecompressor.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/HasselbladDecompressor.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/AbstractDngDecompressor.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/UncompressedDecompressor.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/SonyArw1Decompressor.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/CrwDecompressor.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/AbstractDngDecompressor.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/JpegDecompressor.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/DeflateDecompressor.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/PanasonicDecompressor.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/SamsungV2Decompressor.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/AbstractLJpegDecompressor.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/AbstractSamsungDecompressor.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/HasselbladDecompressor.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/SamsungV2Decompressor.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/CrwDecompressor.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/AbstractDecompressor.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/common/ChecksumFile.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/common/Spline.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/common/SimpleLUT.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/common/DngOpcodes.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/common/RawImage.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/common/RawImageDataFloat.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/common/Cpuid.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/common/RawImageDataU16.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/common/Common.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/common/GetNumberOfProcessorCores.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/common/ErrorLog.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/common/Mutex.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/common/RawspeedException.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/common/DngOpcodes.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/common/ErrorLog.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/common/DefaultInitAllocatorAdaptor.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/common/Common.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/common/TableLookUp.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/common/RawImage.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/common/Memory.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/common/ChecksumFile.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/common/TableLookUp.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/common/Memory.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/common/NORangesSet.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/common/Cpuid.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/common/Array2DRef.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/common/Optional.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/common/Range.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/common/Point.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/external/MemorySanitizer.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/external/AddressSanitizer.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/external/ThreadSafetyAnalysis.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/utilities/identify/rawspeed-identify.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/utilities/rstest/md5.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/utilities/rstest/MD5Test.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/utilities/rstest/md5.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/utilities/rstest/rstest.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/utilities/rstest/MD5Benchmark.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/utilities/rsbench/main.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/lnt/RawSpeed.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/fuzz/librawspeed/parsers/main.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/fuzz/librawspeed/decoders/TiffDecoders/main.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/fuzz/librawspeed/fuzz/Common.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/fuzz/librawspeed/fuzz/RawSpeed.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/fuzz/librawspeed/fuzz/Common.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/fuzz/librawspeed/decompressors/HuffmanTable/Solo.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/fuzz/librawspeed/decompressors/HuffmanTable/Dual.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/fuzz/librawspeed/decompressors/HuffmanTable/Common.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/fuzz/librawspeed/decompressors/PentaxDecompressor.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/fuzz/librawspeed/decompressors/PhaseOneDecompressor.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/fuzz/librawspeed/decompressors/VC5Decompressor.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/fuzz/librawspeed/decompressors/Cr2Decompressor.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/fuzz/librawspeed/decompressors/FujiDecompressor.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/fuzz/librawspeed/decompressors/SamsungV1Decompressor.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/fuzz/librawspeed/decompressors/NikonDecompressor.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/fuzz/librawspeed/decompressors/PanasonicDecompressor.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/fuzz/librawspeed/decompressors/SamsungV0Decompressor.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/fuzz/librawspeed/decompressors/SonyArw2Decompressor.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/fuzz/librawspeed/decompressors/PanasonicDecompressorV5.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/fuzz/librawspeed/decompressors/DummyLJpegDecompressor.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/fuzz/librawspeed/decompressors/KodakDecompressor.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/fuzz/librawspeed/decompressors/LJpegDecompressor.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/fuzz/librawspeed/decompressors/OlympusDecompressor.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/fuzz/librawspeed/decompressors/HasselbladDecompressor.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/fuzz/librawspeed/decompressors/SonyArw1Decompressor.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/fuzz/librawspeed/decompressors/CrwDecompressor.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/fuzz/librawspeed/decompressors/SamsungV2Decompressor.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/fuzz/rawspeed/main.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/fuzz/libFuzzer_dummy_main.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/test/librawspeed/metadata/CameraSensorInfoTest.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/test/librawspeed/metadata/ColorFilterArrayTest.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/test/librawspeed/metadata/CameraTest.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/test/librawspeed/metadata/BlackAreaTest.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/test/librawspeed/metadata/CameraMetaDataTest.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/test/librawspeed/test/RawSpeed.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/test/librawspeed/test/ExceptionsTest.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/test/librawspeed/io/BitPumpJPEGTest.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/test/librawspeed/io/BitPumpMSBTest.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/test/librawspeed/io/EndiannessTest.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/test/librawspeed/io/EndiannessTest.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/test/librawspeed/io/BitPumpMSB32Test.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/test/librawspeed/io/BitPumpLSBTest.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/test/librawspeed/io/BitPumpMSB16Test.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/test/librawspeed/io/BitPumpTest.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/test/librawspeed/decompressors/HuffmanTableTest.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/test/librawspeed/decompressors/AbstractHuffmanTableTest.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/test/librawspeed/decompressors/BinaryHuffmanTreeTest.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/test/librawspeed/common/CommonTest.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/test/librawspeed/common/NORangesSetTest.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/test/librawspeed/common/SplineTest.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/test/librawspeed/common/MemoryTest.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/test/librawspeed/common/ChecksumFileTest.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/test/librawspeed/common/CpuidTest.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/test/librawspeed/common/RangeTest.h
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/test/librawspeed/common/PointTest.cpp
Examining data/photoflow-0.2.8+git20200114/src/external/rawspeed/test/librawspeed/common/RangeTest.cpp
Examining data/photoflow-0.2.8+git20200114/src/rt/rtexif/nikonattribs.cc
Examining data/photoflow-0.2.8+git20200114/src/rt/rtexif/kodakattribs.cc
Examining data/photoflow-0.2.8+git20200114/src/rt/rtexif/stdattribs.cc
Examining data/photoflow-0.2.8+git20200114/src/rt/rtexif/olympusattribs.cc
Examining data/photoflow-0.2.8+git20200114/src/rt/rtexif/pentaxattribs.cc
Examining data/photoflow-0.2.8+git20200114/src/rt/rtexif/canonattribs.cc
Examining data/photoflow-0.2.8+git20200114/src/rt/rtexif/fujiattribs.cc
Examining data/photoflow-0.2.8+git20200114/src/rt/rtexif/sonyminoltaattribs.cc
Examining data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc
Examining data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.h
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/rescale.h
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcp.cc
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/rtlensfun.h
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/flatcurves.cc
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/CA_correct_RT_old.cc
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/iccmatrices.h
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/diagonalcurves.cc
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/boxblur.h
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/myfile.cc
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcp.h
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/amaze_demosaic_RT.cc
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/LUT.h
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/rawimage.h
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/opthelper.h
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/progresslistener.h
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/sleefsseavx.h
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/alignedbuffer.h
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/igv_demosaic_RT.cc
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/camconst.cc
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/curves.cc
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/coord.cc
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/color.h
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/rawimagesource.cc
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/CA_correct_RT.cc
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/camconst.h
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/noncopyable.h
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/curves.h
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.h
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/sleefsseavx.c
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/lmmse_demosaic_RT.cc
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/rtengine.h
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/rtlensfun.cc
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/safekeyfile.h
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/sleef.h
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/myfile.h
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/procparams.h
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/helperavx.h
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/settings.h
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/xtrans_demosaic_RT.cc
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/rt_math.h
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/sleef.c
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/helpersse2.h
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/cJSON.h
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/settings.cc
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/coord.h
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/median.h
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/mytime.h
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/cJSON.c
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/imageio.h
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/color.cc
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/rcd_demosaic_RT.cc
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/rawimage.cc
Examining data/photoflow-0.2.8+git20200114/src/rt/rtengine/StopWatch.h
Examining data/photoflow-0.2.8+git20200114/src/base/image_hierarchy.cc
Examining data/photoflow-0.2.8+git20200114/src/base/pftypes.cc
Examining data/photoflow-0.2.8+git20200114/src/base/format_info.cc
Examining data/photoflow-0.2.8+git20200114/src/base/curve.cc
Examining data/photoflow-0.2.8+git20200114/src/base/roi.cc
Examining data/photoflow-0.2.8+git20200114/src/base/iccstore.cc
Examining data/photoflow-0.2.8+git20200114/src/base/image.cc
Examining data/photoflow-0.2.8+git20200114/src/base/cachebuffer.cc
Examining data/photoflow-0.2.8+git20200114/src/base/imageprocessor.cc
Examining data/photoflow-0.2.8+git20200114/src/base/exif_data.cc
Examining data/photoflow-0.2.8+git20200114/src/base/rawbuffer.cc
Examining data/photoflow-0.2.8+git20200114/src/base/pf_mkstemp.cc
Examining data/photoflow-0.2.8+git20200114/src/base/layermanager.cc
Examining data/photoflow-0.2.8+git20200114/src/base/splinecurve.cc
Examining data/photoflow-0.2.8+git20200114/src/base/options.cc
Examining data/photoflow-0.2.8+git20200114/src/base/file_util.cc
Examining data/photoflow-0.2.8+git20200114/src/base/print_display_profile.cc
Examining data/photoflow-0.2.8+git20200114/src/base/icc/prophoto.cc
Examining data/photoflow-0.2.8+git20200114/src/base/icc/aces.cc
Examining data/photoflow-0.2.8+git20200114/src/base/icc/srgb.cc
Examining data/photoflow-0.2.8+git20200114/src/base/icc/rec2020.cc
Examining data/photoflow-0.2.8+git20200114/src/base/icc/prophoto_d65.cc
Examining data/photoflow-0.2.8+git20200114/src/base/icc/Lab.cc
Examining data/photoflow-0.2.8+git20200114/src/base/icc/srgb_d50.cc
Examining data/photoflow-0.2.8+git20200114/src/base/icc/XYZ.cc
Examining data/photoflow-0.2.8+git20200114/src/base/new_operation.cc
Examining data/photoflow-0.2.8+git20200114/src/base/layer.cc
Examining data/photoflow-0.2.8+git20200114/src/base/photoflow.cc
Examining data/photoflow-0.2.8+git20200114/src/base/fileutils.cc
Examining data/photoflow-0.2.8+git20200114/src/base/closedsplinecurve.cc
Examining data/photoflow-0.2.8+git20200114/src/base/operation.cc
Examining data/photoflow-0.2.8+git20200114/src/base/photoflow_run_batch.cc
Examining data/photoflow-0.2.8+git20200114/src/base/pf_file_loader.cc
Examining data/photoflow-0.2.8+git20200114/src/base/imagepyramid.cc
Examining data/photoflow-0.2.8+git20200114/src/base/processor.cc
Examining data/photoflow-0.2.8+git20200114/src/base/property.cc
Examining data/photoflow-0.2.8+git20200114/src/base/pipeline.cc
Examining data/photoflow-0.2.8+git20200114/src/base/color.cc
Examining data/photoflow-0.2.8+git20200114/src/main.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/shadows_highlights.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/raw_image.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/wavdec.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/clipping_warning.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/defringe.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/raw_developer.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/padded_op.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/demosaic_common.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/blur_bilateral_slow.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/rcd_demosaic.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/local_contrast.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/vips_operation.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/subtr_image.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/raw_preprocessor.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/channel_mixer.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/OCIO/ocio_aces.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/OCIO/ocio_filmic.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/OCIO/ocio_config.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/crop.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/blur_bilateral.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/false_color_correction.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/threshold.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/no_demosaic.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/icc_transform.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/fast_demosaic.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/levels.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/dynamic_range_compressor.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/local_contrast_v2.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/nlmeans.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/image_reader.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/multiraw_developer.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/curves.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/convert_colorspace.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/impulse_nr.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/dynamic_range_compressor_v2.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/desaturate.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/guided_filter.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/gaussian_conv_sii.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/tone_mapping.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/CTMF/ctmf.h
Examining data/photoflow-0.2.8+git20200114/src/operations/CTMF/ctmf.c
Examining data/photoflow-0.2.8+git20200114/src/operations/tone_mapping_v2.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/hotpixels.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/gaussblur_sii.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/color_correction.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/Filmic/Core/CoreHelpers.cpp
Examining data/photoflow-0.2.8+git20200114/src/operations/Filmic/Core/CoreHelpers.h
Examining data/photoflow-0.2.8+git20200114/src/operations/Filmic/FilmicCurve/FilmicToneCurve.h
Examining data/photoflow-0.2.8+git20200114/src/operations/Filmic/FilmicCurve/FilmicToneCurve.cpp
Examining data/photoflow-0.2.8+git20200114/src/operations/split_details.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/uniform.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/median_filter.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/clip.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/image_to_map.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/hsl_mask.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/volume.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/draw.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/basic_adjustments.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/denoise.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/ca_correct.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/white_balance.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/fast_demosaic_algo.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/raster_image.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/gaussblur.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/perspective.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/raw_loader.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/buffer.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/path_mask.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/trcconv.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/clone.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/raw_output.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/invert.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/scale.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/enhanced_usm.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/untiled_op.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/clahe.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/sharpen.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/igv_demosaic.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/maxrgb.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/lensfun.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/lmmse_demosaic.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/clone_stamp.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/gradient.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/xtrans_demosaic.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/convertformat.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/blender.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/operations.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/fast_demosaic_xtrans.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/desaturate_luminance.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/unsharp_mask.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/shadows_highlights_v2.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/gmic/new_gmic_operation.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/gmic/emulate_film.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/gmic/blur_bilateral.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/gmic/gmic_untiled_op.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/gmic/transfer_colors.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/gmic/tone_mapping.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/gmic/emulate_film_user_defined.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/gmic/gmic.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/gmic/sharpen_texture.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/gmic/gradient_norm.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/gmic/obsolete/emulate_film_negative_old.cc_.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/gmic/obsolete/emulate_film_bw.cc_.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/gmic/obsolete/gcd_despeckle.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/gmic/obsolete/emulate_film_negative_color.cc_.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/gmic/obsolete/emulate_film_colorslide.cc_.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/gmic/obsolete/smooth_diffusion.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/gmic/obsolete/watermark_fourier.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/gmic/obsolete/smooth_guided.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/gmic/obsolete/smooth_total_variation.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/gmic/obsolete/emulate_film_instant_pro.cc_.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/gmic/obsolete/dream_smooth.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/gmic/obsolete/split_details.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/gmic/obsolete/emulate_film_various.cc_.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/gmic/obsolete/inpaint.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/gmic/obsolete/smooth_median.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/gmic/obsolete/smooth_selective_gaussian.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/gmic/obsolete/emulate_film_negative_new.cc_.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/gmic/obsolete/extract_foreground.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/gmic/obsolete/smooth_nlmeans.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/gmic/obsolete/emulate_film_print_films.cc_.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/gmic/obsolete/emulate_film_instant_consumer.cc_.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/gmic/obsolete/smooth_wavelets_haar.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/gmic/obsolete/denoise_gmic.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/gmic/obsolete/iain_denoise.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/gmic/obsolete/smooth_mean_curvature.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/gmic/smooth_anisotropic.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/gmic/convolve.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/gmic/sharpen_rl.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/relight.cc
Examining data/photoflow-0.2.8+git20200114/src/operations/amaze_demosaic.cc
Examining data/photoflow-0.2.8+git20200114/src/vips/tilecache_pf.c
Examining data/photoflow-0.2.8+git20200114/src/vips/layer.cc
Examining data/photoflow-0.2.8+git20200114/src/vips/sinkscreen_pf.c
Examining data/photoflow-0.2.8+git20200114/src/vips/perspective.cc
Examining data/photoflow-0.2.8+git20200114/src/vips/lensfun.cc
Examining data/photoflow-0.2.8+git20200114/src/vips/clone_stamp.cc
Examining data/photoflow-0.2.8+git20200114/src/vips/gmic/generate/op.cc
Examining data/photoflow-0.2.8+git20200114/src/vips/gmic/generate/op_config.cc
Examining data/photoflow-0.2.8+git20200114/src/vips/gmic/generate/par_proto.cpp
Examining data/photoflow-0.2.8+git20200114/src/vips/gmic/vips_gmic.cpp
Examining data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic_stdlib.h
Examining data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic_def.h
Examining data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp
Examining data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.h
Examining data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h
Examining data/photoflow-0.2.8+git20200114/src/version.cc

FINAL RESULTS:

data/photoflow-0.2.8+git20200114/src/base/photoflow.cc:253:7:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
  if (readlink("/proc/self/exe", exname, 512) < 0) {
data/photoflow-0.2.8+git20200114/src/tests/vector.cc:163:7:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
  if (readlink("/proc/self/exe", exname, 512) < 0) {
data/photoflow-0.2.8+git20200114/src/base/cachebuffer.cc:160:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf( fname,"%spfraw-XXXXXX", PF::PhotoFlow::Instance().get_cache_dir().c_str() );
data/photoflow-0.2.8+git20200114/src/base/cachebuffer.cc:345:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf( fname,"%spfraw-XXXXXX", PF::PhotoFlow::Instance().get_cache_dir().c_str() );
data/photoflow-0.2.8+git20200114/src/base/image.cc:1706:15:  [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.
    int ret = system(tstr);
data/photoflow-0.2.8+git20200114/src/base/imagepyramid.cc:382:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf( fname,"%spfraw-XXXXXX", PF::PhotoFlow::Instance().get_cache_dir().c_str() );
data/photoflow-0.2.8+git20200114/src/base/photoflow.cc:126:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf( fname2,"%s\\photoflow", fname );
data/photoflow-0.2.8+git20200114/src/base/photoflow.cc:133:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf( fname2,"%s\\photoflow\\cache\\", fname );
data/photoflow-0.2.8+git20200114/src/base/photoflow.cc:144:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf( fname,"%s/.photoflow", getenv("HOME") );
data/photoflow-0.2.8+git20200114/src/base/photoflow.cc:147:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf( fname,"%s/.photoflow/cache/", getenv("HOME") );
data/photoflow-0.2.8+git20200114/src/base/photoflow.cc:183:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf( fname,"%s/.photoflow", getenv("HOME") );
data/photoflow-0.2.8+git20200114/src/base/photoflow.cc:186:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf( fname,"%s/.photoflow/presets/", getenv("HOME") );
data/photoflow-0.2.8+git20200114/src/base/photoflow.cc:219:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf( fname,"%s/.photoflow", getenv("HOME") );
data/photoflow-0.2.8+git20200114/src/base/photoflow.cc:222:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf( fname,"%s/.photoflow/config/", getenv("HOME") );
data/photoflow-0.2.8+git20200114/src/base/rawbuffer.cc:157:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf( fname,"%spfraw-XXXXXX", PF::PhotoFlow::Instance().get_cache_dir().c_str() );
data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/common/Common.cpp:50:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stdout, format, args);
data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/common/Common.h:56:27:  [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/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/common/RawspeedException.h:36:61:  [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.
[[noreturn]] void __attribute__((noreturn, noinline, format(printf, 1, 2)))
data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/common/RawspeedException.h:53:3:  [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(buf.data(), sizeof(buf), fmt, val);
data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/utilities/rstest/rstest.cpp:152:35:  [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.
static void __attribute__((format(printf, 2, 3)))
data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/utilities/rstest/rstest.cpp:158:3:  [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(line.data(), sizeof(line), format, args);
data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/utilities/rstest/rstest.cpp:449: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(cmd.c_str())) {
data/photoflow-0.2.8+git20200114/src/gui/imageeditor.cc:995:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf( bckfname,"%spfbck-XXXXXX", PF::PhotoFlow::Instance().get_cache_dir().c_str() );
data/photoflow-0.2.8+git20200114/src/operations/gmic/emulate_film_user_defined.cc:160:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf( fname,"%shaldclut-XXXXXX.tif", PF::PhotoFlow::Instance().get_cache_dir().c_str() );
data/photoflow-0.2.8+git20200114/src/operations/gmic/obsolete/extract_foreground.cc:227:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf( fname,"%spfraw-XXXXXX.tif", PF::PhotoFlow::Instance().get_cache_dir().c_str() );
data/photoflow-0.2.8+git20200114/src/operations/gmic/obsolete/extract_foreground.cc:234:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf( fname,"%spfraw-XXXXXX.tif", PF::PhotoFlow::Instance().get_cache_dir().c_str() );
data/photoflow-0.2.8+git20200114/src/operations/gmic/obsolete/extract_foreground.cc:293:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf( fname,"%spfraw-XXXXXX.tif", PF::PhotoFlow::Instance().get_cache_dir().c_str() );
data/photoflow-0.2.8+git20200114/src/operations/gmic/obsolete/extract_foreground.cc:311:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf( fname2,"%spfraw-XXXXXX.tif", PF::PhotoFlow::Instance().get_cache_dir().c_str() );
data/photoflow-0.2.8+git20200114/src/operations/untiled_op.cc:99:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf( fname,"%spfraw-XXXXXX.tif", PF::PhotoFlow::Instance().get_cache_dir().c_str() );
data/photoflow-0.2.8+git20200114/src/operations/untiled_op.cc:111:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf( fname,"%spfraw-XXXXXX.tif", PF::PhotoFlow::Instance().get_cache_dir().c_str() );
data/photoflow-0.2.8+git20200114/src/operations/untiled_op.cc:152:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf( fname,"%spfraw-XXXXXX.tif", PF::PhotoFlow::Instance().get_cache_dir().c_str() );
data/photoflow-0.2.8+git20200114/src/rt/rtengine/cJSON.c:414:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(ptr,entries[i]);ptr+=strlen(entries[i]);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/cJSON.c:513:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(ptr,names[i]);ptr+=strlen(names[i]);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/cJSON.c:515:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(ptr,entries[i]);ptr+=strlen(entries[i]);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:70:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:70:18:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:1315:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy (make,  table[i].make );
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:1316:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy (model, table[i].model);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:3731:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf (str, "%sRGBNeutral", model2);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:5589:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy (model, mod[i]);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6056:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	  strcpy(model,cp+1);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6453:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy (jname, ifname);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6457:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (jext, isupper(ext[1]) ? ".JPG":".jpg");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6676:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (model, cp+1);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6855:9:  [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 (sscanf (date, "%*s %s %d %d:%d:%d %d", month, &t.tm_mday,
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:7063:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	    strcpy (make, value);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:7065:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	    strcpy (model, value);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:7067:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	    strcpy (model2, value);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:8136:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf (name, "%s %s", make, model);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:8666:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy (make,  table[i].make );
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:8667:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy (model, table[i].model);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:8718:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	    strcpy (make, corp[i]);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:8733:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (model, model+8);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:8735:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (model, model+15);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:8796:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy (model, unique[i].model);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:8800:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy (model, sonique[i].model);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:9043:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf (model+20, "DYNAX %-10s", model+6+(model[0]=='M'));
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:9177:57:  [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).
      else if (strstr(model3, "Hasselblad ") == model3) strcpy(model, &model3[11]);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:9537:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (cdesc, colors == 3 ? "RGBG":"GMCY");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/myfile.cc:366:5:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
int fscanf (IMFILE* f, const char* s ...)
data/photoflow-0.2.8+git20200114/src/rt/rtengine/myfile.h:132:5:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
int fscanf (IMFILE* f, const char* s ...);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/rawimage.cc:1063:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(name, "%s %s", make, model);
data/photoflow-0.2.8+git20200114/src/rt/rtexif/canonattribs.cc:104:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf (buffer, "%.1fs %s", sec / 10., sec & 0x4000 ? ",Custom" : "");
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:1595:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy (buffer, attrib->name);
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:1798:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy ((char*)value, text);
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:3087:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(buffer, fullname.c_str());
data/photoflow-0.2.8+git20200114/src/rt/rtexif/stdattribs.cc:465:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy (buffer + 8, value.c_str());
data/photoflow-0.2.8+git20200114/src/tests/unprocessed_raw.cc:37:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/photoflow-0.2.8+git20200114/src/tests/unprocessed_raw.cc:37:18:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:140:26:  [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.
#define cimg_sscanf std::sscanf
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:141:27:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#define cimg_sprintf std::sprintf
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:142:29:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define cimg_snprintf cimg::_snprintf
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:149:29:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define cimg_snprintf cimg::_snprintf
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:152:26:  [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.
#define cimg_sscanf std::sscanf
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:153:27:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#define cimg_sprintf std::sprintf
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:154:23:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define cimg_snprintf snprintf
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:155:24:  [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.
#define cimg_vsnprintf vsnprintf
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:2233:16:  [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.
    inline int _snprintf(char *const s, const size_t size, const char *const format, ...) {
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:2257:31:  [4] (buffer) vsscanf:
  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.
      const int result = std::vsscanf(s,format,args);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:2267:31:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
      const int result = std::vsprintf(s,format,args);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:2273:16:  [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.
    inline int _snprintf(char *const s, const size_t n, const char *const format, ...) {
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:2277:31:  [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.
      const int result = std::vsnprintf(s,n,format,args);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:2285:31:  [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.
      const int result = std::vsnprintf(s,size,format,ap);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:4258:16:  [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.
    inline int system(const char *const command, const char *const module_name=0) {
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:4269:34:  [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.
        const int out_val = std::system(ncommand);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:4288:26:  [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.
      } else return std::system(command);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:4290: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.
      return std::system(command);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:5379:26:  [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).
      if (ls<=nl) { std::strcpy(res,str); return res; }
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:5517:56:  [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).
        if (GetShortPathNameA(str,nstr,MAX_PATH)) std::strcpy(str,nstr);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:5718:24:  [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).
        if (body) std::strcpy(body,filename);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:47903:14:  [4] (shell) popen:
  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.
      file = popen(command,"r");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:47927: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.
      cimg::system(command,cimg::graphicsmagick_path());
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:47980: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.
      cimg::system(command);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:48017:14:  [4] (shell) popen:
  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.
      file = popen(command,"r");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:48043: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.
      cimg::system(command,cimg::imagemagick_path());
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:48083: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.
      cimg::system(command);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:48128:14:  [4] (shell) popen:
  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.
      file = popen(command,"r");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:48151: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.
      cimg::system(command,cimg::dcraw_path());
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:48336:14:  [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.
        std::fprintf(cimg::output(),cimg::type<T>::format(),cimg::type<T>::format(_data[off]));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:49564:14:  [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.
        std::fprintf(nfile,cimg::type<T>::format(),cimg::type<T>::format((*this)[off]));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:50736: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).
        std::strcpy(hname,filename);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:50741: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).
        std::strcpy(hname,filename);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:51455: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.
      cimg::system(command);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:51512: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.
      cimg::system(command);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:51567: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.
      cimg::system(command);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:51605: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.
      cimg::system(command);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:55117: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.
      cimg::system(command,0);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:55193: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.
      cimg::system(command,0);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:55257: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.
      cimg::system(command);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:55728: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.
      cimg::system(_command);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:56124:15:  [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.
        cimg::system(command);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:56321: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.
      cimg::system(command);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:57527:11:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    cimg::system(command);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:57547: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.
      cimg::system(command);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:57559: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.
      cimg::system(command);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:751:14:  [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.
        std::fprintf(cimg::output(),cimg::type<T>::format(),cimg::type<T>::format(_data[off]));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:3279:22:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  const int result = access((const char*)ptr,F_OK);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:4018:22:  [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).
                std::strcpy(substr,images_names[ind]);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:4659:18:  [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).
            std::strcpy(command,onechar_shortcuts[(unsigned int)command1]);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:6485:37:  [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.
          const int errcode = cimg::system(name);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:11461:23:  [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).
          else { std::strcpy(argx,cimg::type<T>::string()); is_compressed = is_compressed0?1U:0U; is_gmz = 1; }
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:12592:31:  [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).
                  } else std::strcpy(command_code_text.data(),command_code);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:12856:31:  [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).
                  } else std::strcpy(command_code_text.data(),substituted_command.data());
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:13121:23:  [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).
          } else std::strcpy(s_values_text,s_values);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.h:377:12:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      std::strcpy(_command_help._data,command);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.h:381:12:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      std::strcpy(_message._data,message);
data/photoflow-0.2.8+git20200114/src/vips/tilecache_pf.c:210:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	VipsAccess access;
data/photoflow-0.2.8+git20200114/src/vips/tilecache_pf.c:555:18:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		switch( cache->access ) {
data/photoflow-0.2.8+git20200114/src/vips/tilecache_pf.c:762:35:  [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.
		G_STRUCT_OFFSET( PhFBlockCache, access ),
data/photoflow-0.2.8+git20200114/src/base/photoflow.cc:77:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if( getenv("PROGRAMDATA") ) {
data/photoflow-0.2.8+git20200114/src/base/photoflow.cc:78: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.
    dbdir = getenv("PROGRAMDATA");
data/photoflow-0.2.8+git20200114/src/base/photoflow.cc:143:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if( getenv("HOME") ) {
data/photoflow-0.2.8+git20200114/src/base/photoflow.cc:144:37:  [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.
    sprintf( fname,"%s/.photoflow", getenv("HOME") );
data/photoflow-0.2.8+git20200114/src/base/photoflow.cc:147: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.
      sprintf( fname,"%s/.photoflow/cache/", getenv("HOME") );
data/photoflow-0.2.8+git20200114/src/base/photoflow.cc:182: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.
    if( getenv("HOME") ) {
data/photoflow-0.2.8+git20200114/src/base/photoflow.cc:183:39:  [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.
      sprintf( fname,"%s/.photoflow", getenv("HOME") );
data/photoflow-0.2.8+git20200114/src/base/photoflow.cc:186:50:  [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.
        sprintf( fname,"%s/.photoflow/presets/", getenv("HOME") );
data/photoflow-0.2.8+git20200114/src/base/photoflow.cc:218: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.
    if( getenv("HOME") ) {
data/photoflow-0.2.8+git20200114/src/base/photoflow.cc:219:39:  [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.
      sprintf( fname,"%s/.photoflow", getenv("HOME") );
data/photoflow-0.2.8+git20200114/src/base/photoflow.cc:222:49:  [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.
        sprintf( fname,"%s/.photoflow/config/", getenv("HOME") );
data/photoflow-0.2.8+git20200114/src/base/photoflow.cc:264:24:  [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* dataPath_env = getenv("PF_DATA_DIR");
data/photoflow-0.2.8+git20200114/src/base/photoflow.cc:273:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if( false && getenv("PROGRAMDATA") ) {
data/photoflow-0.2.8+git20200114/src/base/photoflow.cc:274:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    dataPath = getenv("PROGRAMDATA");
data/photoflow-0.2.8+git20200114/src/base/photoflow.cc:285:24:  [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* dataPath_env = getenv("PF_DATA_DIR");
data/photoflow-0.2.8+git20200114/src/base/photoflow_run_batch.cc:49:13:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
    #define realpath(N,R) _fullpath((R),(N),_MAX_PATH)
data/photoflow-0.2.8+git20200114/src/base/photoflow_run_batch.cc:276:21:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
  gchar* fullpath = realpath( filename_full, NULL );
data/photoflow-0.2.8+git20200114/src/base/photoflow_run_batch.cc:338:20:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
  char* fullpath = realpath( cCurrentPath, NULL );
data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/common/RawImage.h:119:67:  [3] (random) random:
  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.
  virtual void setWithLookUp(ushort16 value, uchar8* dst, uint32* random) = 0;
data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/common/RawImage.h:182:59:  [3] (random) random:
  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.
  void setWithLookUp(ushort16 value, uchar8* dst, uint32* random) override;
data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/common/RawImage.h:202:59:  [3] (random) random:
  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.
  void setWithLookUp(ushort16 value, uchar8 *dst, uint32 *random) override;
data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/common/RawImage.h:262:81:  [3] (random) random:
  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.
inline void RawImageDataU16::setWithLookUp(ushort16 value, uchar8* dst, uint32* random) {
data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/common/RawImage.h:273:17:  [3] (random) random:
  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.
    uint32 r = *random;
data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/common/RawImageDataFloat.cpp:383:76:  [3] (random) random:
  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.
void RawImageDataFloat::setWithLookUp(ushort16 value, uchar8* dst, uint32* random) {
data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/NefDecoder.cpp:696:35:  [3] (random) random:
  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.
                          tmpch, &random);
data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/NefDecoder.cpp:701:53:  [3] (random) random:
  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.
          reinterpret_cast<uchar8*>(&dest[x + 1]), &random);
data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/NefDecoder.cpp:704:35:  [3] (random) random:
  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.
                          tmpch, &random);
data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/NefDecoder.cpp:708:35:  [3] (random) random:
  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.
                          tmpch, &random);
data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/NefDecoder.cpp:713:53:  [3] (random) random:
  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.
          reinterpret_cast<uchar8*>(&dest[x + 4]), &random);
data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/NefDecoder.cpp:716:35:  [3] (random) random:
  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.
                          tmpch, &random);
data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/KodakDecompressor.cpp:137:32:  [3] (random) random:
  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.
                              &random);
data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/NikonDecompressor.cpp:505:66:  [3] (random) random:
  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.
                           reinterpret_cast<uchar8*>(dest + 0), &random);
data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/NikonDecompressor.cpp:507:66:  [3] (random) random:
  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.
                           reinterpret_cast<uchar8*>(dest + 1), &random);
data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/NikonDecompressor.cpp:516:68:  [3] (random) random:
  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.
                             reinterpret_cast<uchar8*>(dest + 0), &random);
data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/NikonDecompressor.cpp:518:68:  [3] (random) random:
  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.
                             reinterpret_cast<uchar8*>(dest + 1), &random);
data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/NikonDecompressor.h:45:10:  [3] (random) random:
  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.
  uint32 random;
data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/SonyArw2Decompressor.cpp:103:28:  [3] (random) random:
  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.
                          &random);
data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/UncompressedDecompressor.cpp:227:72:  [3] (random) random:
  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.
        mRaw->setWithLookUp(*in, reinterpret_cast<uchar8*>(&dest[x]), &random);
data/photoflow-0.2.8+git20200114/src/external/rawspeed/test/librawspeed/metadata/CameraSensorInfoTest.cpp:316:8:  [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.
  std::srand(2016122923);
data/photoflow-0.2.8+git20200114/src/gui/imageeditor.cc:35:9:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
#define realpath(N,R) _fullpath((R),(N),_MAX_PATH)
data/photoflow-0.2.8+git20200114/src/gui/imageeditor.cc:823:20:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
  char* fullpath = realpath( filename.c_str(), NULL );
data/photoflow-0.2.8+git20200114/src/gui/layerwidget.cc:1868:22:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
    char* fullpath = realpath( filename.c_str(), NULL );
data/photoflow-0.2.8+git20200114/src/gui/mainwindow.cc:1119:23:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
      char* fulldir = realpath( dname, NULL );
data/photoflow-0.2.8+git20200114/src/gui/mainwindow.cc:1166:24:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
      char* fullpath = realpath( editor->get_image()->get_filename().c_str(), NULL );
data/photoflow-0.2.8+git20200114/src/main.cc:214:20:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
  char* fullpath = realpath( cCurrentPath, NULL );
data/photoflow-0.2.8+git20200114/src/main.cc:380:16:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
    fullpath = realpath( argv[1], NULL );
data/photoflow-0.2.8+git20200114/src/operations/gmic/emulate_film_user_defined.cc:96:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if( getenv("HOME") ) {
data/photoflow-0.2.8+git20200114/src/operations/gmic/gmic_untiled_op.cc:77:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if( getenv("HOME") ) {
data/photoflow-0.2.8+git20200114/src/operations/gmic/obsolete/extract_foreground.cc:168:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if( getenv("HOME") ) {
data/photoflow-0.2.8+git20200114/src/pfbatch.cc:49:13:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
    #define realpath(N,R) _fullpath((R),(N),_MAX_PATH)
data/photoflow-0.2.8+git20200114/src/pfbatch.cc:155:20:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
  char* fullpath = realpath( cCurrentPath, NULL );
data/photoflow-0.2.8+git20200114/src/pfbatch.cc:189:16:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
    fullpath = realpath( argv[1], NULL );
data/photoflow-0.2.8+git20200114/src/tests/vector.cc:187:19:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
	char* fullpath = realpath( cCurrentPath, NULL );
data/photoflow-0.2.8+git20200114/src/tests/vector.cc:243:16:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
    fullpath = realpath( argv[argc-1], NULL );
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:4516:17:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    inline void srand() {
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:4527:17:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    inline void srand(const unsigned int seed) {
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:4539:17:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    inline void srand() {
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:4542:12:  [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.
      std::srand(t + (unsigned int)getpid());
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:4544:12:  [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.
      std::srand(t + (unsigned int)_getpid());
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:4546:12:  [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.
      std::srand(t);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:4550:17:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    inline void srand(const unsigned int seed) {
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:4551:12:  [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.
      std::srand(seed);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:5484: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 _str1 = std::getenv("OSTYPE"),
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:5485:41:  [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 _str2 = _str1?_str1:std::getenv("OS"),
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:5502:13:  [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.
      cimg::srand();
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:56721: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 *tmpPath = std::getenv("TMP");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:56722: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.
      if (!tmpPath) { tmpPath = std::getenv("TEMP"); winformat_string(tmpPath); }
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:56771:41:  [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 *const pfPath = std::getenv("PROGRAMFILES");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:2388:33:  [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 (!_path_user) _path_user = getenv("GMIC_PATH");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:2389:33:  [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 (!_path_user) _path_user = getenv("GMIC_GIMP_PATH");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:2392:18:  [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.
    _path_user = getenv("HOME");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:2394:18:  [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.
    _path_user = getenv("APPDATA");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:2397:33:  [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 (!_path_user) _path_user = getenv("TMP");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:2398:33:  [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 (!_path_user) _path_user = getenv("TEMP");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:2399:33:  [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 (!_path_user) _path_user = getenv("TMPDIR");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:2423: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.
  if (!_path_rc) _path_rc = getenv("GMIC_PATH");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:2424: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.
  if (!_path_rc) _path_rc = getenv("GMIC_GIMP_PATH");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:2425: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.
  if (!_path_rc) _path_rc = getenv("XDG_CONFIG_HOME");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:2428:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    _path_rc = getenv("HOME");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:2435:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    _path_rc = getenv("APPDATA");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:2438: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.
  if (!_path_rc) _path_rc = getenv("TMP");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:2439: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.
  if (!_path_rc) _path_rc = getenv("TEMP");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:2440: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.
  if (!_path_rc) _path_rc = getenv("TMPDIR");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:3351:9:  [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.
  cimg::srand();
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:4264:44:  [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 *const s_env = std::getenv(name);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:10996:19:  [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.
            cimg::srand((unsigned int)value);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:11000:19:  [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.
            cimg::srand();
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:13242:48:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
            const char *const _filename_path = realpath(_filename,0);
data/photoflow-0.2.8+git20200114/src/vips/gmic/vips_gmic.cpp:576: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.
    if( getenv("HOME") ) {
data/photoflow-0.2.8+git20200114/src/base/cachebuffer.cc:159:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char fname[500];
data/photoflow-0.2.8+git20200114/src/base/cachebuffer.cc:187:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy( pout, p, VIPS_IMAGE_SIZEOF_PEL(image)*tile_area.width );
data/photoflow-0.2.8+git20200114/src/base/cachebuffer.cc:324: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( buf, p, VIPS_REGION_SIZEOF_LINE(reg) );
data/photoflow-0.2.8+git20200114/src/base/cachebuffer.cc:344:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[500];
data/photoflow-0.2.8+git20200114/src/base/exif_data.cc:72:32:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  image = Exiv2::ImageFactory::open(path);
data/photoflow-0.2.8+git20200114/src/base/iccstore.cc:192:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tstr[1024];
data/photoflow-0.2.8+git20200114/src/base/iccstore.cc:1027:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tstr[1024];
data/photoflow-0.2.8+git20200114/src/base/iccstore.cc:1043:7:  [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( buf, prof->get_profile_data(), prof->get_profile_size() );
data/photoflow-0.2.8+git20200114/src/base/iccstore.cc:1300:3:  [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( buf, pdata, psize );
data/photoflow-0.2.8+git20200114/src/base/image.cc:938:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
bool PF::Image::open( std::string filename, std::string bckname )
data/photoflow-0.2.8+git20200114/src/base/image.cc:1075:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    of.open( filename.c_str() );
data/photoflow-0.2.8+git20200114/src/base/image.cc:1095:6:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  of.open( backup_file_name.c_str() );
data/photoflow-0.2.8+git20200114/src/base/image.cc:1119:7:  [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(request.data, export_opt, sizeof(image_export_opt_t));
data/photoflow-0.2.8+git20200114/src/base/image.cc:1408:68:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
          Exiv2::Image::AutoPtr exiv2_image = Exiv2::ImageFactory::open(file);
data/photoflow-0.2.8+git20200114/src/base/image.cc:1506: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( pout, p, sizeof(float)*lsz );
data/photoflow-0.2.8+git20200114/src/base/image.cc:1597: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( imgbuf->iccdata, iccdata, iccsize );
data/photoflow-0.2.8+git20200114/src/base/image.cc:1703:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tstr[500];
data/photoflow-0.2.8+git20200114/src/base/imagepyramid.cc:54:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tstr[500];
data/photoflow-0.2.8+git20200114/src/base/imagepyramid.cc:84:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tstr[500];
data/photoflow-0.2.8+git20200114/src/base/imagepyramid.cc:114:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tstr[500];
data/photoflow-0.2.8+git20200114/src/base/imagepyramid.cc:221: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( &(buf_out[x]), &(buf_in[x2]), pelsz );
data/photoflow-0.2.8+git20200114/src/base/imagepyramid.cc:251:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tstr[500];
data/photoflow-0.2.8+git20200114/src/base/imagepyramid.cc:352:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[500]; fname[0] = '\0';
data/photoflow-0.2.8+git20200114/src/base/layermanager.cc:1504: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 tstr[1024];
data/photoflow-0.2.8+git20200114/src/base/layermanager.cc:1623: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 tstr[1024];
data/photoflow-0.2.8+git20200114/src/base/operation.cc:51:29:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::OperationConfigUI::open()
data/photoflow-0.2.8+git20200114/src/base/operation.cc:578:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char tstr[1024];
data/photoflow-0.2.8+git20200114/src/base/pf_file_loader.cc:120:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        version = atoi(*value_cursor);
data/photoflow-0.2.8+git20200114/src/base/pf_file_loader.cc:130:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        version = atoi(*value_cursor);
data/photoflow-0.2.8+git20200114/src/base/pf_file_loader.cc:159:18:  [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).
        old_id = atoi( *value_cursor );
data/photoflow-0.2.8+git20200114/src/base/pf_file_loader.cc:163:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        visible = atoi( *value_cursor );
data/photoflow-0.2.8+git20200114/src/base/pf_file_loader.cc:165: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).
        expanded = atoi( *value_cursor );
data/photoflow-0.2.8+git20200114/src/base/pf_file_loader.cc:167:18:  [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).
        normal = atoi( *value_cursor );
data/photoflow-0.2.8+git20200114/src/base/pf_mkstemp.cc:123:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      fd = open (tmpl, O_RDWR | O_CREAT | O_EXCL | O_BINARY, _S_IREAD | _S_IWRITE);
data/photoflow-0.2.8+git20200114/src/base/photoflow.cc:118:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char fname[500];
data/photoflow-0.2.8+git20200114/src/base/photoflow.cc:123:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char fname2[500];
data/photoflow-0.2.8+git20200114/src/base/photoflow.cc:165:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char pathA[MAX_PATH];
data/photoflow-0.2.8+git20200114/src/base/photoflow.cc:238:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char exname[512] = {0};
data/photoflow-0.2.8+git20200114/src/base/photoflow.cc:246:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char path[1024];
data/photoflow-0.2.8+git20200114/src/base/photoflow_run_batch.cc:333:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char cCurrentPath[FILENAME_MAX];
data/photoflow-0.2.8+git20200114/src/base/photoflow_run_batch.cc:435:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    image->open( img_in );
data/photoflow-0.2.8+git20200114/src/base/photoflow_run_batch.cc:461:7:  [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(data, &export_opt, sizeof(image_export_opt_t));
data/photoflow-0.2.8+git20200114/src/base/pipeline.cc:37:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tstr[500];
data/photoflow-0.2.8+git20200114/src/base/pipeline.cc:90:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tstr[500];
data/photoflow-0.2.8+git20200114/src/base/pipeline.cc:204:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tstr[500];
data/photoflow-0.2.8+git20200114/src/base/pipeline.cc:247:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tstr[500];
data/photoflow-0.2.8+git20200114/src/base/pipeline.cc:288:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tstr[500];
data/photoflow-0.2.8+git20200114/src/base/pipeline.cc:312:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tstr[500];
data/photoflow-0.2.8+git20200114/src/base/print_display_profile.cc:113:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char tstr[1024];
data/photoflow-0.2.8+git20200114/src/base/print_display_profile.cc:131:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char tstr[1024];
data/photoflow-0.2.8+git20200114/src/base/print_display_profile.cc:187:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char tstr[1024];
data/photoflow-0.2.8+git20200114/src/base/rawbuffer.cc:123:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fd = open( file_name.c_str(), O_CREAT|O_RDWR|O_TRUNC, S_IRWXU );
data/photoflow-0.2.8+git20200114/src/base/rawbuffer.cc:156:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char fname[500];
data/photoflow-0.2.8+git20200114/src/benchmarks/matrix-3x3.cc:48:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    if(in_place) memcpy(obuf, buf, sizeof(float)*4*size);
data/photoflow-0.2.8+git20200114/src/benchmarks/matrix-3x3.cc:140:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    if(in_place) memcpy(obuf, buf, sizeof(float)*4*size);
data/photoflow-0.2.8+git20200114/src/benchmarks/matrix-3x3.cc:248:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    if(in_place) memcpy(obuf, buf, sizeof(float)*4*size);
data/photoflow-0.2.8+git20200114/src/benchmarks/matrix-3x3.cc:355:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    if(in_place) memcpy(obuf, buf, sizeof(float)*4*size);
data/photoflow-0.2.8+git20200114/src/benchmarks/matrix-3x3.cc:420:3:  [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(obuf, buf, sizeof(float)*4*size);
data/photoflow-0.2.8+git20200114/src/external/darktable/src/common/colorspaces.c:144: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(tmp, matrix, sizeof(float)*9);
data/photoflow-0.2.8+git20200114/src/external/darktable/src/common/colorspaces.c:613:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[512];
data/photoflow-0.2.8+git20200114/src/external/darktable/src/common/colorspaces.c:667:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[512];
data/photoflow-0.2.8+git20200114/src/external/darktable/src/common/colorspaces.c:721:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[512];
data/photoflow-0.2.8+git20200114/src/external/darktable/src/develop/masks.h:153:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[128];
data/photoflow-0.2.8+git20200114/src/external/darktable/src/develop/masks.h:175:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tag[128];
data/photoflow-0.2.8+git20200114/src/external/darktable/src/external/adobe_coeff.c:14:40:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 void dt_dcraw_adobe_coeff(const char *name, float cam_xyz[1][12])
data/photoflow-0.2.8+git20200114/src/external/darktable/src/iop/clipping.c:1326:3:  [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(self->params, &tmp, sizeof(dt_iop_clipping_params_t));
data/photoflow-0.2.8+git20200114/src/external/darktable/src/iop/clipping.c:1327:3:  [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(self->default_params, &tmp, sizeof(dt_iop_clipping_params_t));
data/photoflow-0.2.8+git20200114/src/external/darktable/src/iop/clipping.c:1347:18:  [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).
        int dd = atoi(text);
data/photoflow-0.2.8+git20200114/src/external/darktable/src/iop/clipping.c:1348:18:  [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).
        int nn = atoi(c);
data/photoflow-0.2.8+git20200114/src/external/darktable/src/iop/clipping.c:1569:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[128];
data/photoflow-0.2.8+git20200114/src/external/darktable/src/iop/clipping.c:1937:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char dimensions[16];
data/photoflow-0.2.8+git20200114/src/external/darktable/src/iop/clipping.c:2105:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char view_angle[16];
data/photoflow-0.2.8+git20200114/src/external/librtprocess/src/demosaic/markesteijn.cc:369:25:  [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 (rgb[c + 1], rgb[0], sizeof * rgb);
data/photoflow-0.2.8+git20200114/src/external/librtprocess/src/demosaic/markesteijn.cc:430:29:  [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 (rgb += 4, buffer, 4 * sizeof * rgb);
data/photoflow-0.2.8+git20200114/src/external/librtprocess/src/include/LUT.h:237: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(this->data, rhs.data, rhs.size * sizeof(T));
data/photoflow-0.2.8+git20200114/src/external/librtprocess/src/include/array2D.h:266: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(data, copy, w * h * sizeof(T));
data/photoflow-0.2.8+git20200114/src/external/librtprocess/src/include/gauss.h:227: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 (dst[i] + 1, temp + 1, (W - 2)*sizeof(T));
data/photoflow-0.2.8+git20200114/src/external/librtprocess/src/include/gauss.h:1196:21:  [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(dst[i], src[i], W * sizeof(T));
data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/common/Common.h:62: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(dest, src, static_cast<size_t>(rowSize) * height);
data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/common/Common.h:65:7:  [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(dest, src, rowSize);
data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/common/RawImage.cpp:489:7:  [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(dst_pos, src_pos, static_cast<size_t>(dim.x) * bpp);
data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/common/RawImage.cpp:496:7:  [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(dst_pos, src_pos, static_cast<size_t>(dim.x) * bpp);
data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/ArwDecoder.cpp:387: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(&pv, &(pad[p & 127]), sizeof(uint32));
data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/ArwDecoder.cpp:390: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(&bv, ibuf, sizeof(uint32));
data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decoders/ArwDecoder.cpp:394: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(obuf, &bv, sizeof(uint32));
data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/decompressors/FujiDecompressor.cpp:715:7:  [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(info_block->linebuf[i.a], info_block->linebuf[i.b], line_size);
data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/io/BitStream.h:121:7:  [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(tmp.data(), data + pos, BitStreamCacheBase::MaxProcessBytes);
data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/io/BitStream.h:127:7:  [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(tmp.data(), data + pos, size - pos);
data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/io/Buffer.cpp:110:3:  [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(new_map->data, data, size);
data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/io/Buffer.cpp:117:3:  [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(new_map->data, data, new_size);
data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/io/ByteStream.h:231: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(new_data, data_, size_);
data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/io/Endianness.h:92:3:  [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(&f, &i, sizeof(i));
data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/io/Endianness.h:99:3:  [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(&d, &i, sizeof(i));
data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/io/Endianness.h:108:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(&ret, data, sizeof(T));
data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/io/FileIO.h:40:22:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
  auto f = std::bind(MultiByteToWideChar, CP_UTF8, 0, fileName, -1,
data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/io/FileReader.cpp:49:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  file_ptr file(fopen(fileName, "rb"), &fclose);
data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/librawspeed/io/FileWriter.cpp:49: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).
  file = fopen(mFilename, "wb");
data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/utilities/identify/rawspeed-identify.cpp:163:16:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    int size = MultiByteToWideChar(CP_ACP, 0, argv[1], -1, NULL, 0);
data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/utilities/identify/rawspeed-identify.cpp:166:5:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    MultiByteToWideChar(CP_ACP, 0, argv[1], -1, &wImageFileName[0], size);
data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/utilities/rstest/md5.cpp:172:3:  [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(block.data(), &message[i], rem);
data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/utilities/rstest/rstest.cpp:240: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).
  file_ptr f(fopen((fn + ".ppm").c_str(), "wb"), &fclose);
data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/utilities/rstest/rstest.cpp:264: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).
  file_ptr f(fopen((fn + ".pfm").c_str(), "wb"), &fclose);
data/photoflow-0.2.8+git20200114/src/external/rawspeed/test/librawspeed/io/EndiannessTest.cpp:118:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(&in, &(v.first), sizeof(T2));
data/photoflow-0.2.8+git20200114/src/external/rawspeed/test/librawspeed/io/EndiannessTest.cpp:119:7:  [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(&expected, &(v.second), sizeof(T2));
data/photoflow-0.2.8+git20200114/src/external/rawspeed/test/librawspeed/io/EndiannessTest.cpp:121:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(&in, &(v.second), sizeof(T2));
data/photoflow-0.2.8+git20200114/src/external/rawspeed/test/librawspeed/io/EndiannessTest.cpp:122:7:  [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(&expected, &(v.first), sizeof(T2));
data/photoflow-0.2.8+git20200114/src/gui/exportdialog.cc:328:24:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::ExportDialog::open()
data/photoflow-0.2.8+git20200114/src/gui/imagearea.cc:1224:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char tstr[1024];
data/photoflow-0.2.8+git20200114/src/gui/imagearea.cc:1249:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char tstr[1024];
data/photoflow-0.2.8+git20200114/src/gui/imageeditor.cc:148:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  void open();
data/photoflow-0.2.8+git20200114/src/gui/imageeditor.cc:203:22:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void SamplersDialog::open()
data/photoflow-0.2.8+git20200114/src/gui/imageeditor.cc:336:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      samplers_dialog.open();
data/photoflow-0.2.8+git20200114/src/gui/imageeditor.cc:840:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        ifile.open( (PF::PhotoFlow::Instance().get_cache_dir()+infofile).c_str() );
data/photoflow-0.2.8+git20200114/src/gui/imageeditor.cc:869:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tstr[501];
data/photoflow-0.2.8+git20200114/src/gui/imageeditor.cc:930:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tstr[501];
data/photoflow-0.2.8+git20200114/src/gui/imageeditor.cc:953:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    image->open( sidecar_name[sidecar_id] );
data/photoflow-0.2.8+git20200114/src/gui/imageeditor.cc:957:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    image->open( filename, bckname );
data/photoflow-0.2.8+git20200114/src/gui/imageeditor.cc:994:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char bckfname[500];
data/photoflow-0.2.8+git20200114/src/gui/imageeditor.cc:1003:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      of.open( infoname.c_str() );
data/photoflow-0.2.8+git20200114/src/gui/layerwidget.cc:380:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  gui->open();
data/photoflow-0.2.8+git20200114/src/gui/layerwidget.cc:542:26:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::ControlsDialog::open()
data/photoflow-0.2.8+git20200114/src/gui/layerwidget.cc:1122:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
          gui->open();
data/photoflow-0.2.8+git20200114/src/gui/layerwidget.cc:1538:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  dialog->open();
data/photoflow-0.2.8+git20200114/src/gui/layerwidget.cc:1546:59:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if( i->second && i->second->is_visible() ) i->second->open();
data/photoflow-0.2.8+git20200114/src/gui/layerwidget.cc:1612:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  operationsDialog.open();
data/photoflow-0.2.8+git20200114/src/gui/layerwidget.cc:1918:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
          dialog->open();
data/photoflow-0.2.8+git20200114/src/gui/layerwidget.cc:2027:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            gui->open();
data/photoflow-0.2.8+git20200114/src/gui/layerwidget.cc:2557:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      gui->open();
data/photoflow-0.2.8+git20200114/src/gui/layerwidget.cc:2784:6:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  of.open( filename.c_str() );
data/photoflow-0.2.8+git20200114/src/gui/mainwindow.cc:1164:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    of.open( infoname.c_str() );
data/photoflow-0.2.8+git20200114/src/gui/mainwindow.cc:1278:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tstr[501];
data/photoflow-0.2.8+git20200114/src/gui/operation_config_gui.cc:966:30:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::OperationConfigGUI::open()
data/photoflow-0.2.8+git20200114/src/gui/operation_config_gui.cc:992:26:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  PF::OperationConfigUI::open();
data/photoflow-0.2.8+git20200114/src/gui/operations/OCIO/ocio_config_config.cc:463:31:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::OCIOConfigConfigGUI::open()
data/photoflow-0.2.8+git20200114/src/gui/operations/OCIO/ocio_config_config.cc:475:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  OperationConfigGUI::open();
data/photoflow-0.2.8+git20200114/src/gui/operations/blur_bilateral_config.cc:48:34:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::BlurBilateralConfigGUI::open()
data/photoflow-0.2.8+git20200114/src/gui/operations/blur_bilateral_config.cc:55:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  OperationConfigGUI::open();
data/photoflow-0.2.8+git20200114/src/gui/operations/clone_stamp_config.cc:56:31:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::CloneStampConfigGUI::open()
data/photoflow-0.2.8+git20200114/src/gui/operations/clone_stamp_config.cc:62:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  OperationConfigGUI::open();
data/photoflow-0.2.8+git20200114/src/gui/operations/color_correction_config.cc:248:3:  [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(str, text, text_len); str[text_len] = '\0';
data/photoflow-0.2.8+git20200114/src/gui/operations/color_correction_config.cc:432:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    of.open( filename.c_str() );
data/photoflow-0.2.8+git20200114/src/gui/operations/convert_colorspace_config.cc:116:38:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::ConvertColorspaceConfigGUI::open()
data/photoflow-0.2.8+git20200114/src/gui/operations/convert_colorspace_config.cc:123:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  OperationConfigGUI::open();
data/photoflow-0.2.8+git20200114/src/gui/operations/crop_config.cc:64:25:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::CropConfigGUI::open()
data/photoflow-0.2.8+git20200114/src/gui/operations/crop_config.cc:74:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  OperationConfigGUI::open();
data/photoflow-0.2.8+git20200114/src/gui/operations/denoise_config.cc:88:28:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::DenoiseConfigGUI::open()
data/photoflow-0.2.8+git20200114/src/gui/operations/denoise_config.cc:95:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  OperationConfigGUI::open();
data/photoflow-0.2.8+git20200114/src/gui/operations/draw_config.cc:91:25:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::DrawConfigGUI::open()
data/photoflow-0.2.8+git20200114/src/gui/operations/draw_config.cc:129:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  OperationConfigGUI::open();
data/photoflow-0.2.8+git20200114/src/gui/operations/gaussblur_config.cc:48:30:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::GaussBlurConfigGUI::open()
data/photoflow-0.2.8+git20200114/src/gui/operations/gaussblur_config.cc:55:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  OperationConfigGUI::open();
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/blur_bilateral_config.cc:50:34:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::BlurBilateralConfigGUI::open()
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/blur_bilateral_config.cc:57:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  OperationConfigGUI::open();
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/convolve_config.cc:52:33:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::GmicConvolveConfigGUI::open()
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/convolve_config.cc:54:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  OperationConfigGUI::open();
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/emulate_film_bw_config.cc:62:38:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::GmicEmulateFilmBEConfigGUI::open()
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/emulate_film_bw_config.cc:64:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  OperationConfigGUI::open();
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/emulate_film_colorslide_config.cc:62:46:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::GmicEmulateFilmColorslideConfigGUI::open()
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/emulate_film_colorslide_config.cc:64:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  OperationConfigGUI::open();
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/emulate_film_instant_consumer_config.cc:62:51:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::GmicEmulateFilmInstantConsumerConfigGUI::open()
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/emulate_film_instant_consumer_config.cc:64:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  OperationConfigGUI::open();
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/emulate_film_instant_pro_config.cc:62:46:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::GmicEmulateFilmInstantProConfigGUI::open()
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/emulate_film_instant_pro_config.cc:64:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  OperationConfigGUI::open();
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/emulate_film_negative_color_config.cc:62:49:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::GmicEmulateFilmNegativeColorConfigGUI::open()
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/emulate_film_negative_color_config.cc:64:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  OperationConfigGUI::open();
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/emulate_film_negative_new_config.cc:64:47:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::GmicEmulateFilmNegativeNewConfigGUI::open()
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/emulate_film_negative_new_config.cc:66:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  OperationConfigGUI::open();
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/emulate_film_negative_old_config.cc:64:47:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::GmicEmulateFilmNegativeOldConfigGUI::open()
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/emulate_film_negative_old_config.cc:66:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  OperationConfigGUI::open();
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/emulate_film_print_films_config.cc:62:46:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::GmicEmulateFilmPrintFilmsConfigGUI::open()
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/emulate_film_print_films_config.cc:64:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  OperationConfigGUI::open();
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/emulate_film_user_defined_config.cc:140:47:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::GmicEmulateFilmUserDefinedConfigGUI::open()
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/emulate_film_user_defined_config.cc:153:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  OperationConfigGUI::open();
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/emulate_film_various_config.cc:62:43:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::GmicEmulateFilmVariousConfigGUI::open()
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/emulate_film_various_config.cc:64:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  OperationConfigGUI::open();
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/gmic_config.cc:61:25:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::GMicConfigGUI::open()
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/gmic_config.cc:81:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  OperationConfigGUI::open();
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/gradient_norm_config.cc:54:37:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::GmicGradientNormConfigGUI::open()
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/gradient_norm_config.cc:56:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  OperationConfigGUI::open();
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/obsolete/denoise_gmic_config.cc:58:32:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::GmicDenoiseConfigGUI::open()
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/obsolete/denoise_gmic_config.cc:60:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  OperationConfigGUI::open();
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/obsolete/dream_smooth_config.cc:86:36:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::GmicDreamSmoothConfigGUI::open()
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/obsolete/dream_smooth_config.cc:88:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  OperationConfigGUI::open();
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/obsolete/extract_foreground_config.cc:128:42:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::GmicExtractForegroundConfigGUI::open()
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/obsolete/extract_foreground_config.cc:130:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  OperationConfigGUI::open();
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/obsolete/gcd_despeckle_config.cc:50:37:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::GmicGcdDespeckleConfigGUI::open()
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/obsolete/gcd_despeckle_config.cc:52:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  OperationConfigGUI::open();
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/obsolete/iain_denoise_config.cc:70:36:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::GmicIainDenoiseConfigGUI::open()
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/obsolete/iain_denoise_config.cc:72:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  OperationConfigGUI::open();
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/obsolete/inpaint_config.cc:85:32:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::GmicInpaintConfigGUI::open()
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/obsolete/inpaint_config.cc:87:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  OperationConfigGUI::open();
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/obsolete/smooth_diffusion_config.cc:58:40:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::GmicSmoothDiffusionConfigGUI::open()
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/obsolete/smooth_diffusion_config.cc:60:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  OperationConfigGUI::open();
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/obsolete/smooth_guided_config.cc:50:37:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::GmicSmoothGuidedConfigGUI::open()
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/obsolete/smooth_guided_config.cc:52:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  OperationConfigGUI::open();
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/obsolete/smooth_mean_curvature_config.cc:50:44:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::GmicSmoothMeanCurvatureConfigGUI::open()
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/obsolete/smooth_mean_curvature_config.cc:52:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  OperationConfigGUI::open();
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/obsolete/smooth_median_config.cc:50:37:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::GmicSmoothMedianConfigGUI::open()
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/obsolete/smooth_median_config.cc:52:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  OperationConfigGUI::open();
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/obsolete/smooth_nlmeans_config.cc:52:44:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::GmicSmoothNonLocalMeansConfigGUI::open()
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/obsolete/smooth_nlmeans_config.cc:54:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  OperationConfigGUI::open();
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/obsolete/smooth_selective_gaussian_config.cc:52:48:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::GmicSmoothSelectiveGaussianConfigGUI::open()
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/obsolete/smooth_selective_gaussian_config.cc:54:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  OperationConfigGUI::open();
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/obsolete/smooth_total_variation_config.cc:50:45:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::GmicSmoothTotalVariationConfigGUI::open()
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/obsolete/smooth_total_variation_config.cc:52:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  OperationConfigGUI::open();
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/obsolete/smooth_wavelets_haar_config.cc:52:43:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::GmicSmoothWaveletsHaarConfigGUI::open()
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/obsolete/smooth_wavelets_haar_config.cc:54:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  OperationConfigGUI::open();
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/obsolete/split_details_config.cc:69:37:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::GmicSplitDetailsConfigGUI::open()
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/obsolete/split_details_config.cc:71:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  OperationConfigGUI::open();
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/sharpen_rl_config.cc:52:34:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::GmicSharpenRLConfigGUI::open()
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/sharpen_rl_config.cc:54:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  OperationConfigGUI::open();
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/smooth_anisotropic_config.cc:68:42:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::GmicSmoothAnisotropicConfigGUI::open()
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/smooth_anisotropic_config.cc:70:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  OperationConfigGUI::open();
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/smooth_nlmeans_config.cc:52:44:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::GmicSmoothNonLocalMeansConfigGUI::open()
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/smooth_nlmeans_config.cc:54:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  OperationConfigGUI::open();
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/tone_mapping_config.cc:75:36:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::GmicToneMappingConfigGUI::open()
data/photoflow-0.2.8+git20200114/src/gui/operations/gmic/tone_mapping_config.cc:77:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  OperationConfigGUI::open();
data/photoflow-0.2.8+git20200114/src/gui/operations/imageread_config.cc:192:30:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::ImageReadConfigGUI::open()
data/photoflow-0.2.8+git20200114/src/gui/operations/imageread_config.cc:205:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  OperationConfigGUI::open();
data/photoflow-0.2.8+git20200114/src/gui/operations/raw_developer_config.cc:735:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tstr[100];
data/photoflow-0.2.8+git20200114/src/gui/operations/raw_developer_config.cc:1223:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char tstr[500];
data/photoflow-0.2.8+git20200114/src/gui/operations/raw_developer_config.cc:1526:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tstr2[1024];
data/photoflow-0.2.8+git20200114/src/gui/operations/raw_developer_config.cc:1772:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tstr2[1024];
data/photoflow-0.2.8+git20200114/src/gui/operations/raw_developer_config.cc:2207:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tstr[500];
data/photoflow-0.2.8+git20200114/src/gui/operations/raw_loader_config.cc:72:30:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::RawLoaderConfigGUI::open()
data/photoflow-0.2.8+git20200114/src/gui/operations/raw_loader_config.cc:85:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  OperationConfigGUI::open();
data/photoflow-0.2.8+git20200114/src/gui/operations/uniform_config.cc:58:28:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::UniformConfigGUI::open()
data/photoflow-0.2.8+git20200114/src/gui/operations/uniform_config.cc:80:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  OperationConfigGUI::open();
data/photoflow-0.2.8+git20200114/src/gui/operations/unsharp_mask_config.cc:48:32:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::UnsharpMaskConfigGUI::open()
data/photoflow-0.2.8+git20200114/src/gui/operations/unsharp_mask_config.cc:56:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  OperationConfigGUI::open();
data/photoflow-0.2.8+git20200114/src/gui/operations/white_balance_config.cc:347:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tstr[100];
data/photoflow-0.2.8+git20200114/src/gui/operations/white_balance_config.cc:938:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tstr2[1024];
data/photoflow-0.2.8+git20200114/src/gui/operations/white_balance_config.cc:1367:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tstr[500];
data/photoflow-0.2.8+git20200114/src/gui/operationstree.cc:404:32:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::OperationsTreeDialog::open()
data/photoflow-0.2.8+git20200114/src/gui/operationstree.cc:596:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
          dialog->open();
data/photoflow-0.2.8+git20200114/src/gui/sampler.cc:248:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tstr[500];
data/photoflow-0.2.8+git20200114/src/gui/sampler.cc:249:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char ch[4] = {'x','x','x','x'};
data/photoflow-0.2.8+git20200114/src/gui/settingsdialog.cc:297:26:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::SettingsDialog::open()
data/photoflow-0.2.8+git20200114/src/gui/settingsdialog.cc:306:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tstr[501];
data/photoflow-0.2.8+git20200114/src/gui/softproofdialog.cc:237:27:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::SoftProofDialog::open()
data/photoflow-0.2.8+git20200114/src/gui/widgets/toolbutton.cc:119:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
          dialog->open();
data/photoflow-0.2.8+git20200114/src/legacy/gui/operations/brightness_contrast_config.cc:69:39:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::BrightnessContrastConfigGUI::open()
data/photoflow-0.2.8+git20200114/src/legacy/gui/operations/brightness_contrast_config.cc:77:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  OperationConfigGUI::open();
data/photoflow-0.2.8+git20200114/src/legacy/gui/operations/raw_developer_config.cc:696: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 tstr[500];
data/photoflow-0.2.8+git20200114/src/legacy/gui/operations/raw_developer_config.cc:923:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tstr2[1024];
data/photoflow-0.2.8+git20200114/src/legacy/gui/operations/raw_developer_config.cc:1146:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tstr2[1024];
data/photoflow-0.2.8+git20200114/src/legacy/gui/operations/raw_developer_config.cc:1577:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tstr[500];
data/photoflow-0.2.8+git20200114/src/legacy/operations/raw_output.cc:276:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tstr[1024];
data/photoflow-0.2.8+git20200114/src/legacy/operations/raw_output.cc:386:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char tstr[1024];
data/photoflow-0.2.8+git20200114/src/legacy/operations/raw_output.cc:415:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char tstr[1024];
data/photoflow-0.2.8+git20200114/src/main.cc:209:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char cCurrentPath[FILENAME_MAX];
data/photoflow-0.2.8+git20200114/src/operations/Filmic/Core/CoreHelpers.cpp:42:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[2];
data/photoflow-0.2.8+git20200114/src/operations/Filmic/Core/CoreHelpers.h:93:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char camName[2048];
data/photoflow-0.2.8+git20200114/src/operations/Filmic/Core/CoreHelpers.h:94:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(camName,"%04d",i);
data/photoflow-0.2.8+git20200114/src/operations/clone.cc:374:7:  [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( profile_data2, profile_data, profile_length );
data/photoflow-0.2.8+git20200114/src/operations/clone.cc:493:7:  [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( buf, profile_data, profile_length );
data/photoflow-0.2.8+git20200114/src/operations/convert_colorspace.cc:175:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tstr[1024];
data/photoflow-0.2.8+git20200114/src/operations/convert_colorspace.cc:404: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 tstr[1024];
data/photoflow-0.2.8+git20200114/src/operations/gmic/emulate_film_user_defined.cc:77:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char fname[500]; fname[0] = 0;
data/photoflow-0.2.8+git20200114/src/operations/gmic/emulate_film_user_defined.cc:114:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    t.open(fname);      // open input file
data/photoflow-0.2.8+git20200114/src/operations/gmic/emulate_film_user_defined.cc:159:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char fname[500];
data/photoflow-0.2.8+git20200114/src/operations/gmic/gmic_untiled_op.cc:58:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char fname[500]; fname[0] = 0;
data/photoflow-0.2.8+git20200114/src/operations/gmic/gmic_untiled_op.cc:95:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    t.open(fname);      // open input file
data/photoflow-0.2.8+git20200114/src/operations/gmic/obsolete/extract_foreground.cc:159:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char fname[500]; fname[0] = 0;
data/photoflow-0.2.8+git20200114/src/operations/gmic/obsolete/extract_foreground.cc:186:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    t.open(fname);      // open input file
data/photoflow-0.2.8+git20200114/src/operations/gmic/obsolete/extract_foreground.cc:226:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[500];
data/photoflow-0.2.8+git20200114/src/operations/gmic/obsolete/extract_foreground.cc:233:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[500];
data/photoflow-0.2.8+git20200114/src/operations/gmic/obsolete/extract_foreground.cc:292:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[500];
data/photoflow-0.2.8+git20200114/src/operations/gmic/obsolete/extract_foreground.cc:310:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char fname2[500];
data/photoflow-0.2.8+git20200114/src/operations/gmic/smooth_anisotropic.cc:85:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char interp_val[10];
data/photoflow-0.2.8+git20200114/src/operations/hsl_mask.cc:111: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(vec[id], hslmpin->vec[id], sizeof(float)*65536);
data/photoflow-0.2.8+git20200114/src/operations/icc_transform.cc:98:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tstr[1024];
data/photoflow-0.2.8+git20200114/src/operations/icc_transform.cc:124:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tstr[1024];
data/photoflow-0.2.8+git20200114/src/operations/image_reader.cc:323:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char tstr[1024];
data/photoflow-0.2.8+git20200114/src/operations/image_reader.cc:334:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char tstr[1024];
data/photoflow-0.2.8+git20200114/src/operations/image_reader.cc:346: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 tstr[1024];
data/photoflow-0.2.8+git20200114/src/operations/raster_image.cc:48:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  int ifd = open( file_name_real.c_str(), O_RDONLY );
data/photoflow-0.2.8+git20200114/src/operations/raster_image.cc:59:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    ifd = open( fname2, O_RDONLY );
data/photoflow-0.2.8+git20200114/src/operations/raster_image.cc:172:45:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    exiv2_buf->image = Exiv2::ImageFactory::open(file);
data/photoflow-0.2.8+git20200114/src/operations/raster_image.cc:434:3:  [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( buf, &exif_data, sizeof(PF::exif_data_t) );
data/photoflow-0.2.8+git20200114/src/operations/raw_image.cc:160:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  int ifd = open( file_name_real.c_str(), O_RDONLY );
data/photoflow-0.2.8+git20200114/src/operations/raw_image.cc:168:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    ifd = open( fname2, O_RDONLY );
data/photoflow-0.2.8+git20200114/src/operations/raw_image.cc:209:47:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      exiv2_buf->image = Exiv2::ImageFactory::open(file);
data/photoflow-0.2.8+git20200114/src/operations/raw_image.cc:349:3:  [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( exifdata_buf, &exif_data, sizeof(exif_data_t) );
data/photoflow-0.2.8+git20200114/src/operations/raw_image.cc:358:3:  [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( rawdata_buf, pdata, sizeof(dcraw_data_t) );
data/photoflow-0.2.8+git20200114/src/operations/raw_image.cc:490:14:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
  int size = MultiByteToWideChar(CP_ACP, 0, &(ls[0]), -1, NULL, 0);
data/photoflow-0.2.8+git20200114/src/operations/raw_image.cc:493:3:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
  MultiByteToWideChar(CP_ACP, 0, &(ls[0]), -1, &(ws[0]), size);
data/photoflow-0.2.8+git20200114/src/operations/raw_image.cc:913:3:  [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( pdata->color.ca_fitparams, fitparams, sizeof(fitparams) );
data/photoflow-0.2.8+git20200114/src/operations/raw_image.cc:1192:3:  [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( pdata->color.ca_fitparams, fitparams, sizeof(fitparams) );
data/photoflow-0.2.8+git20200114/src/operations/raw_output.cc:479:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char tstr[1024];
data/photoflow-0.2.8+git20200114/src/operations/raw_output.cc:508:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char tstr[1024];
data/photoflow-0.2.8+git20200114/src/operations/raw_preprocessor.cc:104:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tstr[100];
data/photoflow-0.2.8+git20200114/src/operations/untiled_op.cc:97:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char fname[500];
data/photoflow-0.2.8+git20200114/src/operations/untiled_op.cc:108:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[500];
data/photoflow-0.2.8+git20200114/src/operations/untiled_op.cc:151:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char fname[500];
data/photoflow-0.2.8+git20200114/src/operations/white_balance.cc:96:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tstr[100];
data/photoflow-0.2.8+git20200114/src/pfbatch.cc:150:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char cCurrentPath[FILENAME_MAX];
data/photoflow-0.2.8+git20200114/src/pfbatch.cc:222:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    image->open( img_in );
data/photoflow-0.2.8+git20200114/src/phf_stack.cc:318:64:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      Exiv2::Image::AutoPtr exiv2_image = Exiv2::ImageFactory::open(file);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/LUT.h:224: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(this->data, rhs.data, rhs.size * sizeof(T));
data/photoflow-0.2.8+git20200114/src/rt/rtengine/cJSON.c:74:7:  [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(copy,str,len);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/cJSON.c:143:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		if (str) sprintf(str,"%d",item->valueint);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/cJSON.c:150:56:  [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.
			if (fabs(floor(d)-d)<=DBL_EPSILON && fabs(d)<1.0e60)sprintf(str,"%.0f",d);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/cJSON.c:151:48:  [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.
			else if (fabs(d)<1.0e-6 || fabs(d)>1.0e9)			sprintf(str,"%e",d);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/cJSON.c:152:20:  [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.
			else												sprintf(str,"%f",d);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/cJSON.c:172:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char firstByteMark[7] = { 0x00, 0x00, 0xC0, 0xE0, 0xF0, 0xF8, 0xFC };
data/photoflow-0.2.8+git20200114/src/rt/rtengine/cJSON.c:260:14:  [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.
				default: sprintf(ptr2,"u%04x",token);ptr2+=5;	break;	/* escape and print */
data/photoflow-0.2.8+git20200114/src/rt/rtengine/cJSON.c:379:12:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		if (out) strcpy(out,"[]");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/cJSON.c:535:93:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
static cJSON *create_reference(cJSON *item) {cJSON *ref=cJSON_New_Item();if (!ref) return 0;memcpy(ref,item,sizeof(cJSON));ref->string=0;ref->type|=cJSON_IsReference;ref->next=ref->prev=0;return ref;}
data/photoflow-0.2.8+git20200114/src/rt/rtengine/camconst.cc:546:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *stream = fopen(filename, "rt");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/camconst.cc:567:21:  [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(temp, buf, bufsize - increment); // copy old buffer content to new buffer
data/photoflow-0.2.8+git20200114/src/rt/rtengine/camconst.cc:600: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 str[128];
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcp.cc:2157: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(xyzToCamera, mCol, sizeof(mCol));
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:196:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static const char filter[16][16] =
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:307: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.
  union { char c[8]; double d; } u;
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:1303:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char make[12], model[15];
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:1326:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tail[424];
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:1481:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static const signed char dir[12][2] =
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:2593:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (buf[c][0]+!c, buf[c][2], sizeof buf[c][0]-2*!c);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:2708:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    FORC3 memcpy (cur[c], curve, sizeof cur[0]);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:3451: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).
    if (!bit && !load_flags && atoi(model+2) < 14) get4();
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:3613:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (ptr, dp, size*4);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:3685:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char str[128];
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:3773:3:  [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 (black, black+8, sizeof *black*8);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:3774:3:  [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 (black+height-11, black+height-22, 11*sizeof *black);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:3775:3:  [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 (last, black, sizeof last);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:3785: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 (last[2], black[row+1], sizeof last[2]);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:3791:3:  [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 (fsum, black, sizeof fsum);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:3795:3:  [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 (last[0], black[height-1], sizeof last[0]);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:3815: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 (prev, pix, sizeof prev);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:4025:7:  [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 (smrow[2], smrow[1], sizeof **smrow * width);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:4061: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 (image[row*i], image[(row+active[1])*width+active[0]],
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:4290: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 (gamm, g, sizeof gamm);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:4528: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 (pre_mul, user_mul, sizeof pre_mul);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:4567:7:  [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 (pre_mul, cam_mul, sizeof pre_mul);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:5181:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[10];
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:5472:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char str[20];
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:5561:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char data[40];
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:5684:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char software[64], *cbuf, *cp;
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:5872:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy (make, "Sarnoff");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:5905: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.
	  FORC(36) ((char *)xtrans)[c] = fgetc(ifp) & 3;
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:5915:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	if (cfa == 070) memcpy (cfa_pc,"\003\004\005",3);	/* CMY */
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:5916:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	if (cfa == 072) memcpy (cfa_pc,"\005\003\004\001",4);	/* GMCY */
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:5947:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy (make, "Leaf");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:5986:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy (make, "Imacon");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6016:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf (model, "Ixpress %d-Mp", height*width/1000000);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6034:16:  [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.
	if (!make[0]) strcpy (make, "Hasselblad");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6049:16:  [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.
	if (!make[0]) strcpy (make, "DNG");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6185: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).
/*RT*/ ifp = fopen (buf, sony_length);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6459:7:  [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 (jfile, file+4, 4);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6460:7:  [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 (jfile+4, file, 4);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6471:22:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
/*RT*/    if ((ifp = fopen (jname))) {
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6620:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char line[128], *val;
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6636:22:  [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).
      thumb_offset = atoi(val);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6638:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      raw_width = atoi(val);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6640: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).
      raw_height = atoi(val);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6642:21:  [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).
      thumb_width = atoi(val);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6644:22:  [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).
      thumb_height = atoi(val);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6651: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 (make, "Rollei");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6652: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 (model,"d530flex");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6659:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char str[8], *cp;
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6748: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 (make, "Phase One");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6751:16:  [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.
    case 2060: strcpy (model,"LightPhase");	break;
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6752:16:  [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.
    case 2682: strcpy (model,"H 10");		break;
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6753:16:  [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.
    case 4128: strcpy (model,"H 20");		break;
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6754:16:  [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.
    case 5488: strcpy (model,"H 25");		break;
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6830:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tag[4], date[64], month[64];
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6831:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static const char mon[12][4] =
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6870:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tag[4];
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6900: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 (make, "SMaL");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6901:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (model, "v%d %dx%d", ver, width, height);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6928: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 (make, "CINE");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6929:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (model, "%d", get4());
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6997:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[64], value[64];
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:7061:18:  [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).
	    iso_speed = atoi(value);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:7069:18:  [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).
	    timestamp = atoi(value);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:7071:16:  [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).
	    shutter = atoi(value) / 1000000.0;
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:8133:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[130];
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:8319:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char model[20];
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:8380:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char make[10], model[20];
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:8490:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char head[32], *cp;
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:8555: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 (make, "Contax");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:8556: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 (model,"N Digital");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:8562: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 (make, "Logitech");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:8563: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 (model,"Fotoman Pixtura");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:8565: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 (make, "Apple");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:8566: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 (model,"QuickTake 100");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:8569: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 (make, "Apple");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:8570: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 (model,"QuickTake 150");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:8609: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 (make, "NOKIA");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:8628: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 (make, "ARRI");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:8647: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 (make, "Red");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:8648: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 (model,"One");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:8706:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
      strcpy (make, "OmniVision");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:8724: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 (make, "Pentax");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:8814: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 (model,"C603");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:8875:23:  [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.
    if (canon_s2is()) strcpy (model+10, "S2 IS");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:8952:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
      strcpy (model, "E995");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:8962:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
      strcpy (model,"E2500");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:8971: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).
    if (model[0] == 'E' && atoi(model+1) < 3700)
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:8988:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
      strcpy (make, "Minolta");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:8989:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
      strcpy (model,"DiMAGE Z2");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:8998:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
      strcpy (make, "ISG");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:9003:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
      strcpy (model,"S2Pro");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:9023: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.
      FORC(36) ((char *)xtrans)[c] =
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:9115: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 (model, "WB550");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:9133:34:  [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.
      if (!strcmp(model, "H3D")) strcpy(model, "H3D-39"); // RT
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:9140:34:  [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.
      if (!strcmp(model, "H4D")) strcpy(model, "H4D-40"); // RT
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:9147:34:  [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.
      if (!strcmp(model, "H3D")) strcpy(model, "H3D-31");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:9148:34:  [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.
      if (!strcmp(model, "H4D")) strcpy(model, "H4D-31");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:9154:34:  [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.
      if (!strcmp(model, "H3D")) strcpy(model, "H3DII-50");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:9155:34:  [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.
      if (!strcmp(model, "H4D")) strcpy(model, "H4D-50");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:9161:34:  [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.
      if (!strcmp(model, "H5D")) strcpy(model, "H5D-50c");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:9162:36:  [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.
      if (!strcmp(model, "CFV-2")) strcpy(model, "CFV-50c");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:9176:34:  [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.
      if (!strcmp(model, "H3D")) strcpy(model, "H3D-22");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:9178:43:  [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.
      if (strstr(model3, "ixpressCF132")) strcpy(model, "CF-22"); // ixpressCF132 / CF132 is same as CF-22, we use the simpler name
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:9179:48:  [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.
      else if (strstr(model3, "Hasselblad96")) strcpy(model, "CFV"); // popularly called CFV-16
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:9181:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
      strcpy (model, "V96C");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:9207:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy (cdesc, "RBTG");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:9208:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy (model, "CatchLight");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:9211:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy (model, "DCB2");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:9215:22:  [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.
      if (!model[0]) strcpy (model, "Cantare");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:9226:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
      strcpy (model, "Valeo 6");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:9231:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
      strcpy (model, "Valeo 6");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:9303: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 (cdesc, "RGBE");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:9387:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
      strcpy (cdesc, "MYCY");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:9389:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
      strcpy (model, "DC25");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:9410:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
      strcpy (model, "DC40");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:9417:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
      strcpy (model, "DC50");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:9423:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
      strcpy (model, "DC120");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:9445:18:  [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.
    if (head[5]) strcpy (model+10, "200");
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:9474: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 (model, "%dx%d", width, height);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:9486: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 (rgb_cam, cmatrix, sizeof cmatrix);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:9845: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.
  union { char c[4]; short s[2]; int i; } val;
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:9861:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char desc[512], make[64], model[64], soft[32], date[20], artist[64];
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.h:79:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *meta_data, xtrans[6][6],xtrans_abs[6][6];
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.h:80:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char cdesc[5], desc[512], make[64], model[64], model2[64], model3[64], artist[64];
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.h:150: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.
      union { char c[4]; short s[2]; int i; } val;
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.h:166:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char desc[512], make[64], model[64], soft[32], date[20], artist[64];
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.h:403:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char xtransTemp[6][6];
data/photoflow-0.2.8+git20200114/src/rt/rtengine/myfile.cc:69:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
IMFILE* fopen (const char* fname)
data/photoflow-0.2.8+git20200114/src/rt/rtengine/myfile.cc:178:21:  [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(realData, buffer, buffer_out_count);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/myfile.cc:203: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).
    return fopen(fname);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/myfile.cc:207:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
IMFILE* fopen (const char* fname)
data/photoflow-0.2.8+git20200114/src/rt/rtengine/myfile.cc:312:21:  [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(realData, buffer, buffer_out_count);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/myfile.cc:335:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
IMFILE* fopen (unsigned* buf, int size)
data/photoflow-0.2.8+git20200114/src/rt/rtengine/myfile.cc:343: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 ((void*)mf->data, buf, size);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/myfile.cc:372:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[50], *endptr = nullptr;
data/photoflow-0.2.8+git20200114/src/rt/rtengine/myfile.cc:379: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(buf, &f->data[f->pos], copy_sz);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/myfile.h:46:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
IMFILE* fopen (const char* fname);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/myfile.h:48:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
IMFILE* fopen (unsigned* buf, int size);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/myfile.h:107: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 (dst, f->data + f->pos, s);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/myfile.h:120: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 (dst, f->data + f->pos, avail);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/procparams.h:1193:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *methodstring[numMethods];
data/photoflow-0.2.8+git20200114/src/rt/rtengine/procparams.h:1219:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *methodstring[numMethods];
data/photoflow-0.2.8+git20200114/src/rt/rtengine/procparams.h:1235: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.
    static const char *ff_BlurTypestring[numFlatFileBlurTypes];
data/photoflow-0.2.8+git20200114/src/rt/rtengine/rawimage.cc:770:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void RawImage::getXtransMatrix( char XtransMatrix[6][6])
data/photoflow-0.2.8+git20200114/src/rt/rtengine/rawimage.cc:1062:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[strlen(make) + strlen(model) + 32];
data/photoflow-0.2.8+git20200114/src/rt/rtengine/rawimage.h:182:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    void getXtransMatrix ( char xtransMatrix[6][6]);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/rawimagesource.cc:95:7:  [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(optr, ptr, ir->valid.width*sizeof(PF::raw_pixel_t));
data/photoflow-0.2.8+git20200114/src/rt/rtengine/xtrans_demosaic_RT.cc:319:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (rgb[c + 1], rgb[0], sizeof * rgb);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/xtrans_demosaic_RT.cc:382: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 (rgb += 4, buffer, 4 * sizeof * rgb);
data/photoflow-0.2.8+git20200114/src/rt/rtexif/canonattribs.cc:68: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[32];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/canonattribs.cc:75: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 (buffer, "%.1f", v );
data/photoflow-0.2.8+git20200114/src/rt/rtexif/canonattribs.cc:103: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[32];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/canonattribs.cc:499: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[32];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/canonattribs.cc:500: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 (buffer, "%.1f", v );
data/photoflow-0.2.8+git20200114/src/rt/rtexif/canonattribs.cc:983: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[1024];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/canonattribs.cc:984: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 (buffer, "%.2fmm", val * 25.4 / 1000);
data/photoflow-0.2.8+git20200114/src/rt/rtexif/canonattribs.cc:995: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[1024];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/canonattribs.cc:997: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 (buffer, "%.3f", d);
data/photoflow-0.2.8+git20200114/src/rt/rtexif/canonattribs.cc:1007: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[1024];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/canonattribs.cc:1008: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 (buffer, "%.1f", t->toDouble() / 32.0  );
data/photoflow-0.2.8+git20200114/src/rt/rtexif/canonattribs.cc:1019: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[32];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/canonattribs.cc:1021: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 (buffer, "%d", a);
data/photoflow-0.2.8+git20200114/src/rt/rtexif/canonattribs.cc:1152: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[32];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/canonattribs.cc:1153: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 (buffer, "%.0f", n / 32. );
data/photoflow-0.2.8+git20200114/src/rt/rtexif/canonattribs.cc:1207: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[1024];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/canonattribs.cc:1208: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 (buffer, "%.2f", t->toDouble() / 100 );
data/photoflow-0.2.8+git20200114/src/rt/rtexif/canonattribs.cc:1219: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[1024];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/canonattribs.cc:1220: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 (buffer, "%.1f", t->toDouble() / 8 - 6 );
data/photoflow-0.2.8+git20200114/src/rt/rtexif/canonattribs.cc:1344: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[32];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/canonattribs.cc:1345: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 (buffer, "%ld", ((val & 0xffc0) >> 6) * 10000 + ((val >> 16) & 0xff) + ((val & 0x3f) << 8) );
data/photoflow-0.2.8+git20200114/src/rt/rtexif/kodakattribs.cc:95:24:  [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).
            t->initInt(atoi(val.c_str()), SHORT);
data/photoflow-0.2.8+git20200114/src/rt/rtexif/kodakattribs.cc:102:21:  [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).
                a = atoi(val.c_str());
data/photoflow-0.2.8+git20200114/src/rt/rtexif/kodakattribs.cc:105:21:  [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).
                a = atoi(val.c_str());
data/photoflow-0.2.8+git20200114/src/rt/rtexif/kodakattribs.cc:106:21:  [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).
                b = atoi(&p1[1]);
data/photoflow-0.2.8+git20200114/src/rt/rtexif/nikonattribs.cc:40:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[32];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/nikonattribs.cc:41: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 (buffer, "%d", t->toInt(2));
data/photoflow-0.2.8+git20200114/src/rt/rtexif/nikonattribs.cc:53: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[32];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/nikonattribs.cc:55: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 (buffer, "%d", a);
data/photoflow-0.2.8+git20200114/src/rt/rtexif/nikonattribs.cc:133: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 buffer[32];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/nikonattribs.cc:134: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(buffer, "0x%04X", a);
data/photoflow-0.2.8+git20200114/src/rt/rtexif/nikonattribs.cc:817:31:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static const unsigned char xlat[2][256] = {
data/photoflow-0.2.8+git20200114/src/rt/rtexif/nikonattribs.cc:883: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 buffer[16];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/nikonattribs.cc:886: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 (buffer, t->getValue() + 6, 7);
data/photoflow-0.2.8+git20200114/src/rt/rtexif/nikonattribs.cc:888: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 (buffer, t->getValue() + 4, 16);
data/photoflow-0.2.8+git20200114/src/rt/rtexif/pentaxattribs.cc:394: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[32];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/pentaxattribs.cc:401: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 (buffer, "%.1f", v );
data/photoflow-0.2.8+git20200114/src/rt/rtexif/pentaxattribs.cc:580: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 buffer[1024];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/pentaxattribs.cc:1227: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[31];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/pentaxattribs.cc:1232: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(buffer, t->getValue(), 30);
data/photoflow-0.2.8+git20200114/src/rt/rtexif/pentaxattribs.cc:1245: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[21];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/pentaxattribs.cc:1250: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(buffer, t->getValue(), 20);
data/photoflow-0.2.8+git20200114/src/rt/rtexif/pentaxattribs.cc:1271: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[10];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/pentaxattribs.cc:1272: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 (buffer, "%d", a );
data/photoflow-0.2.8+git20200114/src/rt/rtexif/pentaxattribs.cc:1299: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 buffer[10];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/pentaxattribs.cc:1300: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 (buffer, "%.2f", a / 100. );
data/photoflow-0.2.8+git20200114/src/rt/rtexif/pentaxattribs.cc:1329: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 buffer[10];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/pentaxattribs.cc:1330: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 (buffer, "%.2f", b );
data/photoflow-0.2.8+git20200114/src/rt/rtexif/pentaxattribs.cc:1357: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[32];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/pentaxattribs.cc:1359: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 (buffer, "%.1f", v );
data/photoflow-0.2.8+git20200114/src/rt/rtexif/pentaxattribs.cc:1380: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 buffer[32];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/pentaxattribs.cc:1387: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 (buffer, "%.1f", v );
data/photoflow-0.2.8+git20200114/src/rt/rtexif/pentaxattribs.cc:1414: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[32];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/pentaxattribs.cc:1416: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 (buffer, "%.1f", v );
data/photoflow-0.2.8+git20200114/src/rt/rtexif/pentaxattribs.cc:1434: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[32];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/pentaxattribs.cc:1436: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 (buffer, "%.1f", v );
data/photoflow-0.2.8+git20200114/src/rt/rtexif/pentaxattribs.cc:1454: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[32];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/pentaxattribs.cc:1456: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 (buffer, "%.1f", v );
data/photoflow-0.2.8+git20200114/src/rt/rtexif/pentaxattribs.cc:1474: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[32];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/pentaxattribs.cc:1476: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 (buffer, "%.6f", v );
data/photoflow-0.2.8+git20200114/src/rt/rtexif/pentaxattribs.cc:1493: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[32];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/pentaxattribs.cc:1496: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 (buffer, "%.1f", double(int(pow(2.0, double(mina + 10) / 4.0) + 0.2)));
data/photoflow-0.2.8+git20200114/src/rt/rtexif/pentaxattribs.cc:1513: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[32];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/pentaxattribs.cc:1516: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 (buffer, "%.1f", double(int(pow(2.0, double(maxa) / 4.0) + 0.2)) );
data/photoflow-0.2.8+git20200114/src/rt/rtexif/pentaxattribs.cc:1627: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[1024];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/pentaxattribs.cc:1629: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 (buffer, "%.0f", pow(2., b / 16. + 4) );
data/photoflow-0.2.8+git20200114/src/rt/rtexif/pentaxattribs.cc:1714: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 buffer[1024];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:195:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char prefixStr[level * 4 + 1];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:703: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(values, v, valuesSize);
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:750: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(buffer + start, values, valuesSize);
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:805: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[buffersize], *p = buffer;
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:861: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 make[128], model[128];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:1244: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 (t->value, value, valuesize);
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:1332: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 ((char*)value, v, valuesize);
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:1529: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 (buffer, "%.64s", value + ofs);
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:1543:13:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
            strcat (buffer, ", ");
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:1551: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 (b, "%d", value[i + ofs]);
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:1555: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 (b, "%d", toInt(2 * i + ofs));
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:1559: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 (b, "%u", toInt(2 * i + ofs));
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:1563: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 (b, "%ld", (long)toInt(4 * i + ofs));
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:1567: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 (b, "%lu", (unsigned long)toInt(4 * i + ofs));
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:1572: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 (b, "%d/%d", (int)sget4 (value + 8 * i + ofs, getOrder()), (int)sget4 (value + 8 * i + ofs + 4, getOrder()));
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:1576: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 (b, "%g", toDouble(8 * i + ofs));
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:1585:9:  [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 (buffer, "...");
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:1592:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[1024];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:1597: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 (buffer, "0x%x", tag);
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:1601: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 (buffer + strlen(buffer) - 1, "[%d]", i);
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:1610:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[1024];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:1677: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 (buffer + dataOffs, value, valuesize);
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:1685: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 (buffer + offs, value, valuesize);
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:1691: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 (buffer + dataOffs, value, 18);
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:1697: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 (buffer + dataOffs, value, valuesize);
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:1702: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 (buffer + dataOffs, value, valuesize);
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:1764: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 ((char*)value, data, valuesize);
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:1843: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 (value, data, len);
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:1852: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 (value, data, len);
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:1913:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[1024];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:2237: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).
            iso_speed = 25 * (1 << (atoi(val) - 1));
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:2240:30:  [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).
            rotation_angle = atoi(val);
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:2485: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).
                        t->initInt (atoi(p1), LONG);
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:2493: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 tstr[64];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:2494: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(tstr, "%04d:%02d:%02d %02d:%02d:%02d", tm.tm_year, tm.tm_mon,
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:2542:36:  [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).
                    niso->initInt (atoi(isov.c_str()), SHORT);
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:2552: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).
                niso->initInt (atoi(isov.c_str()), SHORT);
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:2771:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char idbuff[8];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:2834: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 (buffer, "Exif\0\0", 6);
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:3002:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char str[2] = { 0xff, 0xff };
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:3011:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char str[4] = { 0xff, 0xff, 0xff, 0xff };
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:3086:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[1024];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.h:345: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[1024];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.h:359:25:  [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).
            t->fromInt (atoi(value.c_str()));
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.h:467: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 buffer[1024];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/sonyminoltaattribs.cc:1865: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 buffer[10];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/sonyminoltaattribs.cc:1866: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 (buffer, "%.4f", a);
data/photoflow-0.2.8+git20200114/src/rt/rtexif/sonyminoltaattribs.cc:1925: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 buffer[10];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/sonyminoltaattribs.cc:1926: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 (buffer, "%.1f", a / 100. );
data/photoflow-0.2.8+git20200114/src/rt/rtexif/sonyminoltaattribs.cc:1985: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 buffer[10];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/sonyminoltaattribs.cc:1986: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 (buffer, "%d", a );
data/photoflow-0.2.8+git20200114/src/rt/rtexif/sonyminoltaattribs.cc:2024: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[10];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/sonyminoltaattribs.cc:2025: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 (buffer, "%.2f", a );
data/photoflow-0.2.8+git20200114/src/rt/rtexif/sonyminoltaattribs.cc:2044: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[10];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/sonyminoltaattribs.cc:2045: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 (buffer, "%d", t->getValue()[0] - 20);
data/photoflow-0.2.8+git20200114/src/rt/rtexif/sonyminoltaattribs.cc:2083: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[10];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/sonyminoltaattribs.cc:2084: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 (buffer, "%d", t->getValue()[0] & 0x7f);
data/photoflow-0.2.8+git20200114/src/rt/rtexif/sonyminoltaattribs.cc:2139: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[10];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/sonyminoltaattribs.cc:2140: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 (buffer, "%d", t->toInt());
data/photoflow-0.2.8+git20200114/src/rt/rtexif/stdattribs.cc:332: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[32];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/stdattribs.cc:339: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 (buffer, "%0.1f", v);
data/photoflow-0.2.8+git20200114/src/rt/rtexif/stdattribs.cc:351: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[32];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/stdattribs.cc:358: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 (buffer, "%.1f", v );
data/photoflow-0.2.8+git20200114/src/rt/rtexif/stdattribs.cc:370: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[32];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/stdattribs.cc:377: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 (buffer, "%+0.2f", v );
data/photoflow-0.2.8+git20200114/src/rt/rtexif/stdattribs.cc:389: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[1024];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/stdattribs.cc:393: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 (buffer, "1/%.0f", 1.0 / d);
data/photoflow-0.2.8+git20200114/src/rt/rtexif/stdattribs.cc:395: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 (buffer, "%.1f", d);
data/photoflow-0.2.8+git20200114/src/rt/rtexif/stdattribs.cc:409: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[1024];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/stdattribs.cc:413: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 (buffer, "1/%.0f", 1.0 / d);
data/photoflow-0.2.8+git20200114/src/rt/rtexif/stdattribs.cc:415: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 (buffer, "%.1f", d);
data/photoflow-0.2.8+git20200114/src/rt/rtexif/stdattribs.cc:429: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[32];
data/photoflow-0.2.8+git20200114/src/rt/rtexif/stdattribs.cc:436: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 (buffer, "%.1f", v );
data/photoflow-0.2.8+git20200114/src/rt/rtexif/stdattribs.cc:464: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 (buffer, "ASCII\0\0\0", 8);
data/photoflow-0.2.8+git20200114/src/rt/rtexif/stdattribs.cc:479: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[1024];
data/photoflow-0.2.8+git20200114/src/tests/cast.c:18:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char str[1024];
data/photoflow-0.2.8+git20200114/src/tests/gmic.cc:40:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char fname[500]; fname[0] = 0;
data/photoflow-0.2.8+git20200114/src/tests/gmic.cc:46:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    t.open(fname);      // open input file
data/photoflow-0.2.8+git20200114/src/tests/gmic_test.cc:169:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    t.open("gmic_stdlib.gmic");      // open input file
data/photoflow-0.2.8+git20200114/src/tests/local_laplacian_filters.cc:141:3:  [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(input,    input+wd, sizeof(float)*wd);
data/photoflow-0.2.8+git20200114/src/tests/local_laplacian_filters.cc:142:3:  [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(input+wd*(ht-1), input+wd*(ht-2), sizeof(float)*wd);
data/photoflow-0.2.8+git20200114/src/tests/local_laplacian_filters.cc:154:3:  [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(input, input+wd, sizeof(float)*wd);
data/photoflow-0.2.8+git20200114/src/tests/local_laplacian_filters.cc:155:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  if(!(ht & 1)) memcpy(input+wd*(ht-2), input+wd*(ht-3), sizeof(float)*wd);
data/photoflow-0.2.8+git20200114/src/tests/local_laplacian_filters.cc:156:3:  [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(input+wd*(ht-1), input+wd*(ht-2), sizeof(float)*wd);
data/photoflow-0.2.8+git20200114/src/tests/local_laplacian_filters.cc:304: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( out, input, *wd2**ht2*sizeof(*out) );
data/photoflow-0.2.8+git20200114/src/tests/local_laplacian_filters.cc:325:7:  [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(out + *wd2*j, out+max_supp**wd2, sizeof(float)**wd2);
data/photoflow-0.2.8+git20200114/src/tests/local_laplacian_filters.cc:330:7:  [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(out + *wd2*j, out + *wd2*(max_supp+ht-1), sizeof(float)**wd2);
data/photoflow-0.2.8+git20200114/src/tests/local_laplacian_filters.cc:417:7:  [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( oline, line, sizeof(float)*out.width );
data/photoflow-0.2.8+git20200114/src/tests/local_laplacian_filters.cc:430: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( out.pixels, pixels, sizeof(float)*width*height );
data/photoflow-0.2.8+git20200114/src/tests/local_laplacian_filters.cc:509:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tstr[500];
data/photoflow-0.2.8+git20200114/src/tests/local_laplacian_filters.cc:522:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(tstr,"padded[0]"); padded[0].set_name(tstr);
data/photoflow-0.2.8+git20200114/src/tests/local_laplacian_filters.cc:530: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(tstr,"padded[%d]", l); padded[l].set_name(tstr);
data/photoflow-0.2.8+git20200114/src/tests/local_laplacian_filters.cc:851:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tstr[500];
data/photoflow-0.2.8+git20200114/src/tests/local_laplacian_filters.cc:852: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(tstr, "/tmp/g%02d.tif", i);
data/photoflow-0.2.8+git20200114/src/tests/local_laplacian_filters.cc:855: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(tstr, "/tmp/l%02d.tif", i);
data/photoflow-0.2.8+git20200114/src/tests/local_laplacian_filters.cc:885:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tstr[500];
data/photoflow-0.2.8+git20200114/src/tests/local_laplacian_filters.cc:889:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(tstr, "/tmp/cg%02d.tif", N-1);
data/photoflow-0.2.8+git20200114/src/tests/local_laplacian_filters.cc:894: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(tstr, "/tmp/cl%02d.tif", i);
data/photoflow-0.2.8+git20200114/src/tests/local_laplacian_filters.cc:905: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(tstr, "/tmp/cg%02d.tif", i);
data/photoflow-0.2.8+git20200114/src/tests/local_laplacian_filters.cc:959:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tstr[500];
data/photoflow-0.2.8+git20200114/src/tests/local_laplacian_filters.cc:963: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(tstr, "/tmp/rg%02d.tif", i);
data/photoflow-0.2.8+git20200114/src/tests/scrollwin.cc:266: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 (buf, "%d", m_SpinButton_Value.get_value_as_int());
data/photoflow-0.2.8+git20200114/src/tests/scrollwin.cc:268: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 (buf, "%0.*f", m_SpinButton_Value.get_digits(),
data/photoflow-0.2.8+git20200114/src/tests/vector.cc:147:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char exname[512] = {0};
data/photoflow-0.2.8+git20200114/src/tests/vector.cc:156:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char path[1024];
data/photoflow-0.2.8+git20200114/src/tests/vector.cc:179:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cCurrentPath[FILENAME_MAX];
data/photoflow-0.2.8+git20200114/src/vips/clone_stamp.cc:172: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( pout, p, sizeof(T)*line_size );
data/photoflow-0.2.8+git20200114/src/vips/gmic/generate/op_config.cc:47:38:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void PF::Gmic%op_name2%ConfigDialog::open()
data/photoflow-0.2.8+git20200114/src/vips/gmic/generate/op_config.cc:49:26:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  OperationConfigDialog::open();
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:327:24:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#define std_fopen std::fopen
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:4157:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static const unsigned char logo40x38[4576] = {
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:4268:14:  [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.
        std::strcpy(ncommand + l," 2> /dev/null"); // Make command silent.
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:4400:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      std::memcpy(&tmp,&f,sizeof(float));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:4404:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      std::memcpy(&u,&f,sizeof(float));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:4413:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      std::memcpy(&f,&v,sizeof(float));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:5359:27:  [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.
      if (is_ending) std::strcpy(str + nl - 5,"(...)");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:5362:14:  [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.
        std::strcpy(str + ll,"(...)");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:5382:14:  [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.
        std::strcpy(res + nl -5,"(...)");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:5386:14:  [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.
        std::strcpy(res + ll,"(...)");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:5501: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 char randomid[9];
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:5534:23:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    inline std::FILE *fopen(const char *const path, const char *const mode) {
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:5722:31:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      if (body) { if (l) std::memcpy(body,filename,l); body[l] = 0; }
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:5803:48:  [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).
      std::FILE *const nfile = file?file:cimg::fopen(filename,"wb");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:5864:30:  [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).
      const int res = s?std::atoi(s):defaut;
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:5876:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char tmp[8];
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:7397:35:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        for ( ; !dy && y<hd; std::memcpy(ptrd,ptrd - wd,sizeof(t)*wd), ++y, ptrd+=wd, dy = *(poffy++)) {}
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:7940: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 keys_return[32];  // Check that the key has been physically unpressed.
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:8240:19:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      if (s) std::memcpy(tmp_title,nptitle,s*sizeof(char));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:8456:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      std::memcpy(_data,disp._data,(cimg::X11_attr().nb_bits==8?sizeof(unsigned char):
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:8503:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(image_data,_data,buf_size);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:8505:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(_data,image_data,buf_size);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:8561: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.
      static const char pix_data[8] = { 0 };
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:8595:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      std::memcpy(_title,tmp,s*sizeof(char));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:9346:19:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      if (s) std::memcpy(tmp_title,nptitle,s*sizeof(char));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:9435:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      std::memcpy(_data,disp._data,sizeof(unsigned int)*_width*_height);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:9480:16:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          std::memcpy(odata,_data,buf_size);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:9482:16:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          std::memcpy(_data,odata,buf_size);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:9559:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      std::memcpy(_title,tmp,s*sizeof(char));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:10313:16:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          std::memcpy(_data,values,siz*sizeof(T));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:10396:16:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          std::memcpy(_data,img._data,siz*sizeof(T));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:10457:16:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          std::memcpy(_data,img._data,siz*sizeof(T));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:10639:19:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        else std::memcpy(_data,values,siz*sizeof(T));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:10650:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(new_data,values,siz*sizeof(T));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:15220:33:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                if (p_ref) std::memcpy(p_ref,ref,ref._width*sizeof(unsigned int));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:15232:33:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                if (p_ref) std::memcpy(p_ref,ref,ref._width*sizeof(unsigned int));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:15254:33:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                if (p_ref) std::memcpy(p_ref,ref,ref._width*sizeof(unsigned int));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:15273:33:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                if (p_ref) std::memcpy(p_ref,ref,ref._width*sizeof(unsigned int));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:15302:33:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                if (p_ref) std::memcpy(p_ref,ref,ref._width*sizeof(unsigned int));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:15405:31:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
              if (p_ref) std::memcpy(p_ref,ref,ref._width*sizeof(unsigned int));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:15423:31:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
              if (p_ref) std::memcpy(p_ref,ref,ref._width*sizeof(unsigned int));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:15470:31:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
              if (p_ref) std::memcpy(p_ref,ref,ref._width*sizeof(unsigned int));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:15483:31:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
              if (p_ref) std::memcpy(p_ref,ref,ref._width*sizeof(unsigned int));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:15506:31:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
              if (p_ref) std::memcpy(p_ref,ref,ref._width*sizeof(unsigned int));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:15526:31:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
              if (p_ref) std::memcpy(p_ref,ref,ref._width*sizeof(unsigned int));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:15548:31:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
              if (p_ref) std::memcpy(p_ref,ref,ref._width*sizeof(unsigned int));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:16086:29:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            if (p_ref) std::memcpy(p_ref,ref,ref._width*sizeof(unsigned int));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:16098:29:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            if (p_ref) std::memcpy(p_ref,ref,ref._width*sizeof(unsigned int));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:16120:29:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            if (p_ref) std::memcpy(p_ref,ref,ref._width*sizeof(unsigned int));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:16139:29:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            if (p_ref) std::memcpy(p_ref,ref,ref._width*sizeof(unsigned int));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:16160:29:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            if (p_ref) std::memcpy(p_ref,ref,ref._width*sizeof(unsigned int));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:17891:26:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    std::memcpy(_expr._data + k,variable_name,variable_name._width - 1);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:17960:16:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          std::memcpy((char*)_opcode[1]._data,variable_name,arg1);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:17981:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            std::memcpy((char*)_opcode[1]._data,variable_name,arg1);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:18200:16:  [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.
          std::sprintf(res._data + 6,"%u",_cimg_mp_vector_size(arg));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:19105:26:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          if (vsiz) std::memcpy(&mp.mem[vtarget] + 1,&mp.mem[mem_left] + 1,sizeof(double)*vsiz);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:19115:24:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        if (vsiz) std::memcpy(&mp.mem[vtarget] + 1,&mp.mem[mem_right] + 1,sizeof(double)*vsiz);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:19977:68:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
              if (ptrs + siz - 1<ptrd || ptrs>ptrd + siz - 1) std::memcpy(ptrd,ptrs,siz*sizeof(double));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:20001:68:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
              if (ptrs + siz - 1<ptrd || ptrs>ptrd + siz - 1) std::memcpy(ptrd,ptrs,siz*sizeof(float));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:20613:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(&_mp_arg(1) + 1,&_mp_arg(2) + 1,sizeof(double)*mp.opcode[3]);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:20621:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(ptrd,ptrs + p1,p2*sizeof(double));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:23152:16:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          std::memcpy(vec.data(0,k),tmp._data,sizeof(t)*_width);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:23455:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            std::memcpy(U.data(0,k),tmp._data,sizeof(t)*_width);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:23459:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            std::memcpy(V.data(0,k),tmp._data,sizeof(t)*_width);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:24778:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            std::memcpy(res._data + k,_data + i0,(i - i0 + 1)*sizeof(T));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:24783:36:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        if ((ulongT)i0<siz) { std::memcpy(res._data + k,_data + i0,(siz - i0)*sizeof(T)); k+=siz - i0; }
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:26903:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(res.assign(sx,sy,sz,sc,(T)0)._data,_data,sizeof(T)*std::min(size(),(ulongT)sx*sy*sz*sc));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:27039:41:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
              for ( ; !dy && y<dy; std::memcpy(ptrd,ptrd - sx,sizeof(T)*sx), ++y, ptrd+=sx, dy = *(poff_y++)) {}
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:27044:39:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            for ( ; !dz && z<dz; std::memcpy(ptrd,ptrd-sxy,sizeof(T)*sxy), ++z, ptrd+=sxy, dz = *(poff_z++)) {}
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:27049:37:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          for ( ; !dc && c<dc; std::memcpy(ptrd,ptrd-sxyz,sizeof(T)*sxyz), ++c, ptrd+=sxyz, dc = *(poff_c++)) {}
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:27963:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            std::memcpy(buf,pf,_width*sizeof(T));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:27964:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            std::memcpy(pf,pb,_width*sizeof(T));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:27965:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            std::memcpy(pb,buf,_width*sizeof(T));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:27979:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            std::memcpy(buf,pf,_width*_height*sizeof(T));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:27980:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            std::memcpy(pf,pb,_width*_height*sizeof(T));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:27981:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            std::memcpy(pb,buf,_width*_height*sizeof(T));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:27994:16:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          std::memcpy(buf,pf,_width*_height*_depth*sizeof(T));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:27995:16:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          std::memcpy(pf,pb,_width*_height*_depth*sizeof(T));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:27996:16:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          std::memcpy(pb,buf,_width*_height*_depth*sizeof(T));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:28085:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            std::memcpy(buf,data(0,y,z,c),ndelta_x*sizeof(T));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:28087:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            std::memcpy(data(_width-ndelta_x,y,z,c),buf,ndelta_x*sizeof(T));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:28089:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            std::memcpy(buf,data(_width + ndelta_x,y,z,c),-ndelta_x*sizeof(T));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:28091:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            std::memcpy(data(0,y,z,c),buf,-ndelta_x*sizeof(T));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:28116:59:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
              for (int l = 0; l<ndelta_y - 1; ++l) { std::memcpy(ptrd,ptrs,_width*sizeof(T)); ptrd+=_width; }
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:28124:59:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
              for (int l = 0; l<ndelta_y - 1; ++l) { std::memcpy(ptrd,ptrs,_width*sizeof(T)); ptrd+=_width; }
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:28133:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            std::memcpy(buf,data(0,0,z,c),_width*ndelta_y*sizeof(T));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:28135:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            std::memcpy(data(0,_height-ndelta_y,z,c),buf,_width*ndelta_y*sizeof(T));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:28137:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            std::memcpy(buf,data(0,_height + ndelta_y,z,c),-ndelta_y*_width*sizeof(T));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:28139:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            std::memcpy(data(0,0,z,c),buf,-ndelta_y*_width*sizeof(T));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:28165:22:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                std::memcpy(ptrd,ptrs,_width*_height*sizeof(T)); ptrd+=(ulongT)_width*_height;
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:28175:22:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                std::memcpy(ptrd,ptrs,_width*_height*sizeof(T)); ptrd+=(ulongT)_width*_height;
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:28185:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            std::memcpy(buf,data(0,0,0,c),_width*_height*ndelta_z*sizeof(T));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:28187:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            std::memcpy(data(0,0,_depth-ndelta_z,c),buf,_width*_height*ndelta_z*sizeof(T));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:28189:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            std::memcpy(buf,data(0,0,_depth + ndelta_z,c),-ndelta_z*_width*_height*sizeof(T));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:28191:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            std::memcpy(data(0,0,0,c),buf,-ndelta_z*_width*_height*sizeof(T));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:28216:20:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
              std::memcpy(ptrd,ptrs,_width*_height*_depth*sizeof(T)); ptrd+=(ulongT)_width*_height*_depth;
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:28224:20:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
              std::memcpy(ptrd,_data,_width*_height*_depth*sizeof(T)); ptrd+=(ulongT)_width*_height*_depth;
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:28233:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            std::memcpy(buf,_data,_width*_height*_depth*ndelta_c*sizeof(T));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:28235:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            std::memcpy(data(0,0,0,_spectrum-ndelta_c),buf,_width*_height*_depth*ndelta_c*sizeof(T));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:28237:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            std::memcpy(buf,data(0,0,0,_spectrum + ndelta_c),-ndelta_c*_width*_height*_depth*sizeof(T));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:28239:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            std::memcpy(_data,buf,-ndelta_c*_width*_height*_depth*sizeof(T));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:28273:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      unsigned char s_code[4] = { 0,1,2,3 }, n_code[4] = { 0 };
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:41543:49:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
              for (int y = 0; y<lY; ++y) { std::memcpy(ptrd,ptrs,slX); ptrd+=_width; ptrs+=sprite._width; }
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:44756:22:  [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.
                std::strcpy(text._data + std::strlen(text),"] ");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:45273: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).
        std::FILE *file = std::fopen(filename,"rb");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:45350:48:  [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).
      std::FILE *const nfile = file?file:cimg::fopen(filename,"rb");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:45412:48:  [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).
      std::FILE *const nfile = file?file:cimg::fopen(filename,"r");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:45470:48:  [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).
      std::FILE *const nfile = file?file:cimg::fopen(filename,"rb");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:45665:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char message[JMSG_LENGTH_MAX];
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:45692:48:  [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).
      std::FILE *const nfile = file?file:cimg::fopen(filename,"rb");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:45877:51:  [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).
      std::FILE *volatile nfile = file?file:cimg::fopen(nfilename,"rb");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:45879:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      unsigned char pngCheck[8] = { 0 };
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:46060:48:  [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).
      std::FILE *const nfile = file?file:cimg::fopen(filename,"rb");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:46262:48:  [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).
      std::FILE *const nfile = file?file:cimg::fopen(filename,"rb");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:46356:48:  [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).
      std::FILE *const nfile = file?file:cimg::fopen(filename,"rb");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:46412:48:  [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).
      std::FILE *const nfile = file?file:cimg::fopen(filename,"rb");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:46788:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      rdr.open(filename);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:46846: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).
          nfile_header = cimg::fopen(filename,"rb");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:46848:25:  [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).
          nfile = cimg::fopen(body,"rb");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:46850:25:  [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).
          nfile = cimg::fopen(filename,"rb");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:46852: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).
          nfile_header = cimg::fopen(body,"rb");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:46853:45:  [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).
        } else nfile_header = nfile = cimg::fopen(filename,"rb"); // File is a Niftii file.
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:47151:48:  [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).
      std::FILE *const nfile = file?file:cimg::fopen(filename,"rb");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:47277:48:  [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).
      std::FILE *const nfile = file?file:cimg::fopen(filename,"rb");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:47533:48:  [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).
      std::FILE *const nfile = file?file:cimg::fopen(filename,"rb");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:47641:48:  [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).
      std::FILE *const nfile = file?file:cimg::fopen(filename,"r");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:47896:25:  [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).
      std::fclose(cimg::fopen(filename,"rb"));            // Check if file exists.
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:47929:28:  [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).
        cimg::fclose(cimg::fopen(filename,"r"));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:47955:25:  [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).
      std::fclose(cimg::fopen(filename,"rb"));            // Check if file exists.
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:47982:28:  [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).
        cimg::fclose(cimg::fopen(filename,"r"));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:48008:25:  [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).
      std::fclose(cimg::fopen(filename,"rb"));            // Check if file exists.
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:48045:28:  [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).
        cimg::fclose(cimg::fopen(filename,"r"));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:48071:25:  [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).
      std::fclose(cimg::fopen(filename,"rb"));            // Check if file exists.
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:48073:26:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      cimg::fclose(cimg::fopen(filename,"r"));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:48121:25:  [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).
      std::fclose(cimg::fopen(filename,"rb"));            // Check if file exists.
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:48153:28:  [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).
        cimg::fclose(cimg::fopen(filename,"r"));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:48272:35:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                std::fclose(cimg::fopen(filename,"rb"));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:49227:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(pose_matrix,pose._data,12*sizeof(float));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:49525:48:  [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).
      std::FILE *const nfile = file?file:cimg::fopen(filename,"w");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:49554:48:  [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).
      std::FILE *const nfile = file?file:cimg::fopen(filename,"w");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:49603:48:  [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).
      std::FILE *const nfile = file?file:cimg::fopen(filename,"w");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:49643:48:  [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).
      std::FILE *const nfile = file?file:cimg::fopen(filename,"wb");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:49645:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      unsigned char align_buf[4] = { 0 };
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:49767:48:  [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).
      std::FILE *const nfile = file?file:cimg::fopen(filename,"wb");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:49937:51:  [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).
      std::FILE *volatile nfile = file?file:cimg::fopen(nfilename,"wb");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:50153:48:  [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).
      std::FILE *const nfile = file?file:cimg::fopen(filename,"wb");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:50277:48:  [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).
      std::FILE *const nfile = file?file:cimg::fopen(filename,"wb");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:50353:48:  [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).
      std::FILE *const nfile = file?file:cimg::fopen(filename,"wb");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:50435:48:  [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).
      std::FILE *const nfile = file?file:cimg::fopen(filename,"wb");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:50497:48:  [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).
      std::FILE *const nfile = file?file:cimg::fopen(filename,"wb");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:50693:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
       wtr.open(filename, imitate_file);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:50700:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
       wtr.open(filename,di,1,NC_FLOAT,0);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:50752:12:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
      std::strcpy(header._data + 4,"CImg");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:50788:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      file = cimg::fopen(hname,"wb");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:50790:54:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      if (*iname) { cimg::fclose(file); file = cimg::fopen(iname,"wb"); }
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:50919:48:  [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).
      std::FILE *const nfile = file?file:cimg::fopen(filename,"wb");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:50927:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      std::memcpy(header._data + 252,"##}\n",4);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:51107:48:  [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).
      std::FILE *const nfile = file?file:cimg::fopen(filename,"wb");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:51108:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      unsigned char header[36] = { 'P','A','N','D','O','R','E','0','4',0,0,0,
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:51232:48:  [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).
      std::FILE *const nfile = file?file:cimg::fopen(filename,"wb");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:51316:48:  [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).
      std::FILE *const nfile = file?file:cimg::fopen(filename,"w");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:51616:30:  [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).
          cimg::fclose(cimg::fopen(filename,"r"));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:53490:26:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          if (npos) std::memcpy(new_data,_data,sizeof(CImg<T>)*npos);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:53491:38:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          if (npos!=_width - 1) std::memcpy(new_data + npos + 1,_data + npos,sizeof(CImg<T>)*(_width - 1 - npos));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:53528:26:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          if (npos) std::memcpy(new_data,_data,sizeof(CImg<T>)*npos);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:53529:38:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          if (npos!=_width - 1) std::memcpy(new_data + npos + 1,_data + npos,sizeof(CImg<T>)*(_width - 1 - npos));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:53687:27:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          if (npos1) std::memcpy(new_data,_data,sizeof(CImg<T>)*npos1);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:53688:35:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          if (npos1!=_width) std::memcpy(new_data + npos1,_data + npos2 + 1,sizeof(CImg<T>)*(_width - npos1));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:54321:38:  [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).
        std::FILE *const file = std::fopen(filename,"rb");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:54445:48:  [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).
      std::FILE *const nfile = file?file:cimg::fopen(filename,"rb");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:54628:48:  [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).
      std::FILE *const nfile = file?file:cimg::fopen(filename,"rb");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:54712:31:  [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).
      std::FILE *file = cimg::fopen(filenamepar,"r");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:54739: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).
      std::FILE *file2 = cimg::fopen(filenamerec,"rb");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:54866:48:  [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).
      std::FILE *const nfile = file?file:cimg::fopen(filename,"rb");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:55004:29:  [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).
          std::fclose(cimg::fopen(filename,"rb"));  // Check file availability.
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:55096:25:  [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).
      std::fclose(cimg::fopen(filename,"rb"));            // Check if file exists.
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:55153:25:  [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).
      std::fclose(cimg::fopen(filename,"rb"));            // Check if file exists.
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:55233:25:  [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).
      std::fclose(cimg::fopen(filename,"rb"));            // Check if file exists.
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:55259:28:  [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).
        cimg::fclose(cimg::fopen(filename,"r"));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:55389:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char tmp[16] = { 0 };
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:55753:48:  [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).
      std::FILE *const nfile = file?file:cimg::fopen(filename,"wb");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:55796:48:  [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).
      std::FILE *const nfile = file?file:cimg::fopen(filename,"wb");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:55925:48:  [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).
      std::FILE *const nfile = file?file:cimg::fopen(filename,"rb+");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:56005:48:  [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).
      std::FILE *const nfile = file?file:cimg::fopen(filename,"wb");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:56677:15:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    int err = MultiByteToWideChar(CP_UTF8,0,path,-1,0,0);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:56680:11:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    err = MultiByteToWideChar(CP_UTF8,0,path,-1,wpath,err);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:56684:11:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    err = MultiByteToWideChar(CP_UTF8,0,mode,-1,0,0);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:56687:11:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    err = MultiByteToWideChar(CP_UTF8,0,mode,-1,wmode,err);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:56773:19:  [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.
        else std::strcpy(s_path,"C:\\PROGRA~1");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:56776:12:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
      std::strcpy(s_path,"C:\\PROGRA~1");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:56804:14:  [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.
        std::strcpy(s_path,".\\convert.exe");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:56879:29:  [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.
      if (!path_found) std::strcpy(s_path,"convert.exe");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:56882:14:  [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.
        std::strcpy(s_path,"./convert");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:56885:29:  [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.
      if (!path_found) std::strcpy(s_path,"convert");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:56913:14:  [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.
        std::strcpy(s_path,".\\gm.exe");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:56988:29:  [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.
      if (!path_found) std::strcpy(s_path,"gm.exe");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:56991:14:  [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.
        std::strcpy(s_path,"./gm");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:56994:29:  [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.
      if (!path_found) std::strcpy(s_path,"gm");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:57022:14:  [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.
        std::strcpy(s_path,".\\medcon.exe");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:57034:14:  [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.
        std::strcpy(s_path,"C:\\XMedCon\\bin\\medcon.exe");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:57037:29:  [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.
      if (!path_found) std::strcpy(s_path,"medcon.exe");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:57040:14:  [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.
        std::strcpy(s_path,"./medcon");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:57043:29:  [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.
      if (!path_found) std::strcpy(s_path,"medcon");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:57070:14:  [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.
        std::strcpy(s_path,".\\ffmpeg.exe");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:57073:29:  [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.
      if (!path_found) std::strcpy(s_path,"ffmpeg.exe");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:57076:14:  [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.
        std::strcpy(s_path,"./ffmpeg");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:57079:29:  [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.
      if (!path_found) std::strcpy(s_path,"ffmpeg");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:57106:14:  [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.
        std::strcpy(s_path,".\\gzip.exe");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:57109:29:  [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.
      if (!path_found) std::strcpy(s_path,"gzip.exe");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:57112:14:  [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.
        std::strcpy(s_path,"./gzip");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:57115:29:  [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.
      if (!path_found) std::strcpy(s_path,"gzip");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:57142:14:  [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.
        std::strcpy(s_path,".\\gunzip.exe");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:57145:29:  [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.
      if (!path_found) std::strcpy(s_path,"gunzip.exe");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:57148:14:  [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.
        std::strcpy(s_path,"./gunzip");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:57151:29:  [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.
      if (!path_found) std::strcpy(s_path,"gunzip");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:57178:14:  [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.
        std::strcpy(s_path,".\\dcraw.exe");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:57181:29:  [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.
      if (!path_found) std::strcpy(s_path,"dcraw.exe");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:57184:14:  [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.
        std::strcpy(s_path,"./dcraw");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:57187:29:  [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.
      if (!path_found) std::strcpy(s_path,"dcraw");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:57214:14:  [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.
        std::strcpy(s_path,".\\wget.exe");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:57217:29:  [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.
      if (!path_found) std::strcpy(s_path,"wget.exe");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:57220:14:  [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.
        std::strcpy(s_path,"./wget");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:57223:29:  [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.
      if (!path_found) std::strcpy(s_path,"wget");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:57250:14:  [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.
        std::strcpy(s_path,".\\curl.exe");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:57253:29:  [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.
      if (!path_found) std::strcpy(s_path,"curl.exe");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:57256:14:  [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.
        std::strcpy(s_path,"./curl");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:57259:29:  [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.
      if (!path_found) std::strcpy(s_path,"curl");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:57326:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      std::memcpy(pattern,_path,lp);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:57340:28:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            if (lp) { std::memcpy(full_filename,_path,lp); full_filename[lp] = '/'; }
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:57341:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            std::memcpy(full_filename._data + (lp?lp + 1:0),filename,lf + 1);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:57362:24:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          if (lp) std::memcpy(full_filename,_path,lp);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:57364:16:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          std::memcpy(full_filename._data + lp + 1,filename,lf + 1);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:57483:22:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        file = cimg::fopen(filename_local,"wb");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:76:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(ptrd,img._data + 8,3*nbv*sizeof(T));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:109:16:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          std::memcpy(ptrd,ptrs[l],whs*sizeof(T));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:129:16:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          std::memcpy(ptrd,ptrs[l],whs*sizeof(T));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:143:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(tmp,img,img._width*sizeof(T));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:147:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy(ptrd,_data,_width*sizeof(T));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:155:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(tmp,img,img._width*sizeof(T));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:433:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      std::memcpy(res._data,_data,l);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:436:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(res._data + l + 2,ext,_data + _width - ext);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:440:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(res._data,_data,l);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:443:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(res._data + l + 1,ext,_data + _width - ext);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:2219: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).
  std::FILE *const file = std::fopen(filename,"r");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:4665:73:  [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.
          if (command1=='s' && command2=='h' && !is_double_hyphen) std::strcpy(command,"-shared");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:4666:57:  [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.
          else if (command1=='m' && command2=='v') std::strcpy(command,"-move");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:4667:78:  [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.
          else if (command1=='n' && command2=='m' && !is_double_hyphen) std::strcpy(command,"-name");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:4668:57:  [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.
          else if (command1=='r' && command2=='m') std::strcpy(command,"-remove");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:4669:57:  [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.
          else if (command1=='r' && command2=='v') std::strcpy(command,"-reverse");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:4670:57:  [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.
          else if (command1=='<' && command2=='<') std::strcpy(command,"-bsl");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:4671:57:  [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.
          else if (command1=='>' && command2=='>') std::strcpy(command,"-bsr");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:4672:57:  [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.
          else if (command1=='=' && command2=='=') std::strcpy(command,"-eq");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:4673:57:  [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.
          else if (command1=='>' && command2=='=') std::strcpy(command,"-ge");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:4674:57:  [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.
          else if (command1=='<' && command2=='=') std::strcpy(command,"-le");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:4675:57:  [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.
          else if (command1=='/' && command2=='/') std::strcpy(command,"-mdiv");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:4676:57:  [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.
          else if (command1=='*' && command2=='*') std::strcpy(command,"-mmul");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:4677:57:  [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.
          else if (command1=='!' && command2=='=') std::strcpy(command,"-neq");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:4681:50:  [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.
          case 'd' : if (!is_double_hyphen) std::strcpy(command,"-display3d"); break;
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:4682:27:  [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.
          case 'j' : std::strcpy(command,"-object3d"); break;
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:4683:27:  [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.
          case '+' : std::strcpy(command,"-add3d"); break;
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:4684:27:  [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.
          case '/' : std::strcpy(command,"-div3d"); break;
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:4693:27:  [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.
          case '*' : std::strcpy(command,"-mul3d"); break;
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:4694:27:  [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.
          case 'o' : std::strcpy(command,"-opacity3d"); break;
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:4695:27:  [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.
          case 'p' : std::strcpy(command,"-primitives3d"); break;
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:4696:27:  [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.
          case 'r' : std::strcpy(command,"-rotate3d"); break;
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:4697:27:  [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.
          case 's' : std::strcpy(command,"-split3d"); break;
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:4698:27:  [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.
          case '-' : std::strcpy(command,"-sub3d"); break;
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:4699:27:  [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.
          case 't' : std::strcpy(command,"-texturize3d"); break;
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:4707:57:  [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.
          else if (command1=='r' && command2=='v') std::strcpy(command,"-reverse3d");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:5640: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).
          std::FILE *file = std::fopen(arg_command,"rb");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:5653:27:  [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 = std::fopen(cimg::load_network(arg_command,argx),"r");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:6347:89:  [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.
            if (nb_scales) cimg_snprintf(argx,_argx.width(),"%g ",nb_scales); else std::strcpy(argx,"auto-");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:7789:22:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                std::memcpy(&images[uind]._width,&g_list[l]._data,sizeof(void*));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:8633:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char cext[12];
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:8661: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).
                if ((file=std::fopen(filename_tmp,"rb"))!=0) std::fclose(file);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:9232:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            std::memcpy(&p,&img._width,sizeof(void*));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:12589:26:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    std::memcpy(command_code_text.data(),command_code,128);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:12590:26:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    std::memcpy(command_code_text.data() + 128,"(...)",5);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:12591:26:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    std::memcpy(command_code_text.data() + 133,command_code + ls - 130,131);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:12853:26:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    std::memcpy(command_code_text.data(),substituted_command.data(),128);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:12854:26:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    std::memcpy(command_code_text.data() + 128,"(...)",5);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:12855:26:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    std::memcpy(command_code_text.data() + 133,substituted_command.data() + l - 130,131);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:12915:24:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                  std::memcpy(&images[uind]._width,&g_list[l]._data,sizeof(void*));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:13005:53:  [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.
      if (is_input_command) ++position; else { std::strcpy(command,"-input"); argument = item; *restriction = 0; }
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:13118:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            std::memcpy(s_values_text.data(),s_values.data(),32);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:13119:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            std::memcpy(s_values_text.data() + 32,"(...)",5);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:13120:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            std::memcpy(s_values_text.data() + 37,s_values.data() + l - 34,35);  // Last '\0' is included.
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:13188: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 cext[12];
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:13237:30:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
              if ((file=std::fopen(filename_tmp,"rb"))!=0) std::fclose(file);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:13258:49:  [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).
        std::FILE *const file = is_stdin?0:std::fopen(filename,"rb");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:13648:41:  [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).
          std::FILE *const file = cimg::fopen(filename,"rb");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:13734:29:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            if (!(file=std::fopen(filename,"r"))) {
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:14112:25:  [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 = std::fopen(cimg::load_network(filename,filename_tmp),"r");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:14114:26:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        else file = std::fopen(filename,"r");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:14119:25:  [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 = std::fopen(cimg::load_network(filename,filename_tmp),"r");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:14121:26:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        else file = std::fopen(filename,"r");
data/photoflow-0.2.8+git20200114/src/vips/gmic/vips_gmic.cpp:557:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char fname[500]; fname[0] = 0;
data/photoflow-0.2.8+git20200114/src/vips/gmic/vips_gmic.cpp:594:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      t.open(fname);      // open input file
data/photoflow-0.2.8+git20200114/src/vips/layer.cc:482:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tstr[100];
data/photoflow-0.2.8+git20200114/src/vips/layer.cc:483:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tstr2[100];
data/photoflow-0.2.8+git20200114/src/vips/layer.cc:484:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tstr3[100];
data/photoflow-0.2.8+git20200114/src/vips/lensfun.cc:312:7:  [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( q, p, sizeof(T)*line_size );
data/photoflow-0.2.8+git20200114/src/vips/lensfun.cc:324:7:  [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( Tbuf, q, sizeof(T)*line_size );
data/photoflow-0.2.8+git20200114/src/vips/lensfun.cc:328:7:  [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( q, Tbuf, sizeof(T)*line_size );
data/photoflow-0.2.8+git20200114/src/vips/sinkscreen_pf.c:937:4:  [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( q, p, len );
data/photoflow-0.2.8+git20200114/src/base/file_util.cc:80:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t len = strlen( file_name );
data/photoflow-0.2.8+git20200114/src/base/imagepyramid.cc:215:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      ssize_t bread = read( in_fd, buf_in, in_linesz );
data/photoflow-0.2.8+git20200114/src/base/pf_mkstemp.cc:77:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen (tmpl) - suffixlen;
data/photoflow-0.2.8+git20200114/src/base/photoflow_run_batch.cc:105:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int arglen = strlen(arg);
data/photoflow-0.2.8+git20200114/src/base/photoflow_run_batch.cc:106:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int optidx = strlen("--export-opt=");
data/photoflow-0.2.8+git20200114/src/base/photoflow_run_batch.cc:121:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if( !strncmp(arg2,"jpeg_quality=",strlen("jpeg_quality=")) ) {
data/photoflow-0.2.8+git20200114/src/base/photoflow_run_batch.cc:122:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      std::istringstream str( arg+optidx+strlen("jpeg_quality=") );
data/photoflow-0.2.8+git20200114/src/base/photoflow_run_batch.cc:127:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    } else if( !strncmp(arg2,"jpeg_chroma_subsampling=",strlen("jpeg_chroma_subsampling=")) ) {
data/photoflow-0.2.8+git20200114/src/base/photoflow_run_batch.cc:128:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      std::istringstream str( arg+optidx+strlen("jpeg_chroma_subsampling=") );
data/photoflow-0.2.8+git20200114/src/base/photoflow_run_batch.cc:133:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    } else if( !strncmp(arg2,"jpeg_quant_table=",strlen("jpeg_quant_table=")) ) {
data/photoflow-0.2.8+git20200114/src/base/photoflow_run_batch.cc:134:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      std::string str( arg+optidx+strlen("jpeg_quant_table=") );
data/photoflow-0.2.8+git20200114/src/base/photoflow_run_batch.cc:139: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).
    } else if( !strncmp(arg2,"tiff_compress=",strlen("tiff_compress=")) ) {
data/photoflow-0.2.8+git20200114/src/base/photoflow_run_batch.cc:140:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      std::istringstream str( arg+optidx+strlen("tiff_compress=") );
data/photoflow-0.2.8+git20200114/src/base/photoflow_run_batch.cc:145: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).
    } else if( !strncmp(arg2,"tiff_depth=",strlen("tiff_depth=")) ) {
data/photoflow-0.2.8+git20200114/src/base/photoflow_run_batch.cc:146:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      std::istringstream sdepth( arg+optidx+strlen("tiff_depth=") );
data/photoflow-0.2.8+git20200114/src/base/photoflow_run_batch.cc:156:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    } else if( !strncmp(arg2,"width=",strlen("width=")) ) {
data/photoflow-0.2.8+git20200114/src/base/photoflow_run_batch.cc:157:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      std::istringstream str( arg+optidx+strlen("width=") );
data/photoflow-0.2.8+git20200114/src/base/photoflow_run_batch.cc:162: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).
    } else if( !strncmp(arg2,"height=",strlen("height=")) ) {
data/photoflow-0.2.8+git20200114/src/base/photoflow_run_batch.cc:163:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      std::istringstream str( arg+optidx+strlen("height=") );
data/photoflow-0.2.8+git20200114/src/base/photoflow_run_batch.cc:168:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    } else if( !strncmp(arg2,"interpolator=",strlen("interpolator=")) ) {
data/photoflow-0.2.8+git20200114/src/base/photoflow_run_batch.cc:169:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      std::string str( arg+optidx+strlen("interpolator=") );
data/photoflow-0.2.8+git20200114/src/base/photoflow_run_batch.cc:176:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    } else if( !strncmp(arg2,"sharpen_enabled=",strlen("sharpen_enabled=")) ) {
data/photoflow-0.2.8+git20200114/src/base/photoflow_run_batch.cc:177:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      std::istringstream str( arg+optidx+strlen("sharpen_enabled=") );
data/photoflow-0.2.8+git20200114/src/base/photoflow_run_batch.cc:182:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    } else if( !strncmp(arg2,"sharpen_radius=",strlen("sharpen_radius=")) ) {
data/photoflow-0.2.8+git20200114/src/base/photoflow_run_batch.cc:183:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      std::istringstream str( arg+optidx+strlen("sharpen_radius=") );
data/photoflow-0.2.8+git20200114/src/base/photoflow_run_batch.cc:187:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    } else if( !strncmp(arg2,"profile_type=",strlen("profile_type=")) ) {
data/photoflow-0.2.8+git20200114/src/base/photoflow_run_batch.cc:188:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      std::string str( arg+optidx+strlen("profile_type=") );
data/photoflow-0.2.8+git20200114/src/base/photoflow_run_batch.cc:198:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    } else if( !strncmp(arg2,"trc_type=",strlen("trc_type=")) ) {
data/photoflow-0.2.8+git20200114/src/base/photoflow_run_batch.cc:199:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      std::string str( arg+optidx+strlen("trc_type=") );
data/photoflow-0.2.8+git20200114/src/base/photoflow_run_batch.cc:205: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).
    } else if( !strncmp(arg2,"intent=",strlen("intent=")) ) {
data/photoflow-0.2.8+git20200114/src/base/photoflow_run_batch.cc:206:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      std::string str( arg+optidx+strlen("intent=") );
data/photoflow-0.2.8+git20200114/src/base/photoflow_run_batch.cc:212:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    } else if( !strncmp(arg2,"bpc=",strlen("bpc=")) ) {
data/photoflow-0.2.8+git20200114/src/base/photoflow_run_batch.cc:213:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      std::istringstream str( arg+optidx+strlen("bpc=") );
data/photoflow-0.2.8+git20200114/src/base/photoflow_run_batch.cc:218:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    } else if( !strncmp(arg2,"profile_name=",strlen("profile_name=")) ) {
data/photoflow-0.2.8+git20200114/src/base/photoflow_run_batch.cc:219:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      std::string str( arg+optidx+strlen("profile_name=") );
data/photoflow-0.2.8+git20200114/src/base/photoflow_run_batch.cc:302: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).
  if( argc > 1 && !strncmp(argv[1], "--help", strlen("--help")) ) {
data/photoflow-0.2.8+git20200114/src/base/photoflow_run_batch.cc:440: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).
      if( !strncmp(par,"--config=",strlen("--config=")) ) {
data/photoflow-0.2.8+git20200114/src/base/photoflow_run_batch.cc:441:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        fullpath = resolve_filename( argv[i]+strlen("--config=") );
data/photoflow-0.2.8+git20200114/src/base/photoflow_run_batch.cc:446: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).
      } else if( !strncmp(par,"--export-opt=",strlen("--export-opt=")) ) {
data/photoflow-0.2.8+git20200114/src/base/rawbuffer.cc:265:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      ssize_t bread = read( fd, buf, sizeof(TYPE)*bands*(endcol-startcol+1) );						\
data/photoflow-0.2.8+git20200114/src/external/darktable/src/common/colorspaces.c:1033: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).
  while(*c != ' ' && c < maker + strlen(maker)) if(*(c++) != *(d++))
data/photoflow-0.2.8+git20200114/src/external/darktable/src/common/colorspaces.c:1047: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).
    for(e=makermodel; c<maker+strlen(maker) && *c != ' '; c++,e++) *e = *c;
data/photoflow-0.2.8+git20200114/src/external/darktable/src/common/colorspaces.c:1060: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).
  e = makermodel + strlen(makermodel) - 1;
data/photoflow-0.2.8+git20200114/src/external/darktable/src/common/colorspaces.c:1070:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  for(; **modelo != ' ' && *modelo < makermodel + strlen(makermodel); (*modelo)++);
data/photoflow-0.2.8+git20200114/src/external/darktable/src/develop/masks.h:329:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(a->tag, tag, sizeof(a->tag)); //only for debugging purposes
data/photoflow-0.2.8+git20200114/src/external/darktable/src/iop/clipping.c:1342: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 char *end = text + strlen(text);
data/photoflow-0.2.8+git20200114/src/external/rawspeed/src/utilities/rstest/MD5Test.cpp:78: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).
    rawspeed::md5::md5_hash(message, strlen((const char*)message), &hash);
data/photoflow-0.2.8+git20200114/src/external/rawspeed/test/librawspeed/common/CommonTest.cpp:351:20:  [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.
  ASSERT_TRUE(std::equal(split.begin(), split.end(), out.begin()));
data/photoflow-0.2.8+git20200114/src/gui/imageeditor.cc:834: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(dp->d_name);
data/photoflow-0.2.8+git20200114/src/operations/Filmic/Core/CoreHelpers.cpp:27:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ch = fgetc(fin);
data/photoflow-0.2.8+git20200114/src/operations/Filmic/Core/CoreHelpers.cpp:33:18:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				int nextCh = fgetc(fin);
data/photoflow-0.2.8+git20200114/src/operations/gmic/emulate_film_user_defined.cc:111: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( fname ) > 0 ) {
data/photoflow-0.2.8+git20200114/src/operations/gmic/emulate_film_user_defined.cc:119:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    t.read(custom_gmic_commands, length);       // read the whole file into the buffer
data/photoflow-0.2.8+git20200114/src/operations/gmic/gmic_untiled_op.cc:92: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( fname ) > 0 ) {
data/photoflow-0.2.8+git20200114/src/operations/gmic/gmic_untiled_op.cc:100:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    t.read(custom_gmic_commands, length);       // read the whole file into the buffer
data/photoflow-0.2.8+git20200114/src/operations/gmic/obsolete/extract_foreground.cc:183: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( fname ) > 0 ) {
data/photoflow-0.2.8+git20200114/src/operations/gmic/obsolete/extract_foreground.cc:191:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    t.read(custom_gmic_commands, length);       // read the whole file into the buffer
data/photoflow-0.2.8+git20200114/src/operations/raster_image.cc:413: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 maker_len = strlen(exif_data.camera_maker);
data/photoflow-0.2.8+git20200114/src/operations/raw_image.cc:863: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 maker_len = strlen(exif_data.camera_maker);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/cJSON.c:72: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).
      len = strlen(str) + 1;
data/photoflow-0.2.8+git20200114/src/rt/rtengine/cJSON.c:392: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).
		if (ret) len+=strlen(ret)+2+(fmt?1:0); else fail=1;
data/photoflow-0.2.8+git20200114/src/rt/rtengine/cJSON.c:414: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).
		strcpy(ptr,entries[i]);ptr+=strlen(entries[i]);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/cJSON.c:492:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (str && ret) len+=strlen(ret)+strlen(str)+2+(fmt?2+depth:0); else fail=1;
data/photoflow-0.2.8+git20200114/src/rt/rtengine/cJSON.c:492: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).
		if (str && ret) len+=strlen(ret)+strlen(str)+2+(fmt?2+depth:0); else fail=1;
data/photoflow-0.2.8+git20200114/src/rt/rtengine/cJSON.c:513: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).
		strcpy(ptr,names[i]);ptr+=strlen(names[i]);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/cJSON.c:515: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).
		strcpy(ptr,entries[i]);ptr+=strlen(entries[i]);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/camconst.cc:607:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(str, ep, sizeof(str));
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:62:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define fgetc getc_unlocked
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:235:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!strncasecmp(c, needle, strlen(needle)))
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:323:17:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	u.c[i ^ rev] = fgetc(ifp);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:325:21:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    default: return fgetc(ifp);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:555:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (getc(ifp) > 15) return 1;
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:570:42:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while (!reset && vbits < nbits && (c = fgetc(ifp)) != EOF &&
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:571:45:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    !(reset = zero_after_ff && c == 0xff && fgetc(ifp))) {
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:763:6:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	c = fgetc(ifp);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:793:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if ((fgetc(ifp),fgetc(ifp)) != 0xd8) return 0;
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:793:19:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if ((fgetc(ifp),fgetc(ifp)) != 0xd8) return 0;
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:810:32:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (len == 9 && !dng_version) getc(ifp);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:871:36:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      do mark = (mark << 8) + (c = fgetc(ifp));
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:1160:25:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  FORC(dep) bit[1][c] = fgetc(ifp);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:1196:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ver0 = fgetc(ifp);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:1197:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ver1 = fgetc(ifp);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:1251:29:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	FORC(6) bitbuf |= (UINT64) fgetc(ifp) << c*8;
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:1272:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    histo[fgetc(ifp)]++;
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:2272:26:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	  bitbuf |= (unsigned) (fgetc(ifp) << i);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:2276:48:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if (load_flags & 1 && (col % 10) == 9 && fgetc(ifp) &&
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:2870:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    c = fgetc(ifp);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:2885:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    bitbuf  = fgetc(ifp) << 8;
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:2886:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    bitbuf += fgetc(ifp);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:2893:20:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	bitbuf += (INT64) fgetc(ifp) << (bits+(j^8));
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:2999:26:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  fseek (ifp, (unsigned) fgetc(ifp)*4 - 1, SEEK_CUR);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:3132:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  opt = fgetc(ifp);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:3300:18:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  nseg = (uchar) fgetc(ifp);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:3305:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  holes = fgetc(ifp);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:3430:33:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	      bitbuf = (bitbuf << 8) + fgetc(ifp);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:3461:33:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	      bitbuf = (bitbuf << 8) + fgetc(ifp);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:3478:12:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    clen = getc(ifp);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:3479:12:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    code = getc(ifp);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:5278:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	c = c << 8 | fgetc(ifp);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:5280:47:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (get4() == 257 && (i=len) && (c = (get4(),fgetc(ifp))) < 3)
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:5313:19:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      while ((c = fgetc(ifp)) && c != EOF)
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:5343:23:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ver97 = ver97 * 10 + fgetc(ifp)-'0';
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:5373:20:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      cj = xlat[1][fgetc(ifp)^fgetc(ifp)^fgetc(ifp)^fgetc(ifp)];
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:5373:31:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      cj = xlat[1][fgetc(ifp)^fgetc(ifp)^fgetc(ifp)^fgetc(ifp)];
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:5373:42:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      cj = xlat[1][fgetc(ifp)^fgetc(ifp)^fgetc(ifp)^fgetc(ifp)];
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:5373:53:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      cj = xlat[1][fgetc(ifp)^fgetc(ifp)^fgetc(ifp)^fgetc(ifp)];
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:5477:32:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    for (i=19; i--; ) str[i] = fgetc(ifp);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:5518:18:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    exif_cfa |= fgetc(ifp) * 0x01010101 << c;
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:5533:22:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	gpsdata[29+tag/2] = getc(ifp);			break;
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:5668:29:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (tag == 64013) wbi = fgetc(ifp);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:5733:19:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (type != 7 || fgetc(ifp) != 0xff || fgetc(ifp) != 0xd8) break;
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:5733:41:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (type != 7 || fgetc(ifp) != 0xff || fgetc(ifp) != 0xd8) break;
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:5905:35:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	  FORC(36) ((char *)xtrans)[c] = fgetc(ifp) & 3;
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6048:43:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	FORC4 dng_version = (dng_version << 8) + fgetc(ifp);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6405:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (fgetc(ifp) || fgetc(ifp)-'M' || fgetc(ifp)-'R') return;
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6405:21:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (fgetc(ifp) || fgetc(ifp)-'M' || fgetc(ifp)-'R') return;
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6405:39:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (fgetc(ifp) || fgetc(ifp)-'M' || fgetc(ifp)-'R') return;
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6406:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  order = fgetc(ifp) * 0x101;
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6410:24:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      tag = tag << 8 | fgetc(ifp);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6450: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).
  if (!ext || strlen(ext) != 4 || ext-file != 8) return;
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6451: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).
  jname = (char *) malloc (strlen(ifname) + 1);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6534: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).
      fseek (ifp, strlen(make) - 63, SEEK_CUR);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6630: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).
      val = line + strlen(line);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6776:21:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      fuji_layout = fgetc(ifp) >> 7;
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6777:22:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      fuji_width = !(fgetc(ifp) & 8);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6780:38:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      FORC(36) xtrans_abs[0][35-c] = fgetc(ifp) & 3;
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6802:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (fgetc(ifp) != 0xff || fgetc(ifp) != 0xd8) return 0;
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6802:29:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (fgetc(ifp) != 0xff || fgetc(ifp) != 0xd8) return 0;
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6804:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while (fgetc(ifp) == 0xff && (mark = fgetc(ifp)) != 0xda) {
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6804:40:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while (fgetc(ifp) == 0xff && (mark = fgetc(ifp)) != 0xda) {
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6809:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      fgetc(ifp);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:6893:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ver = fgetc(ifp);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:7033:6:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (fgetc(ifp) == 0xff && fgetc(ifp) == 0xd8
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:7033:28:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (fgetc(ifp) == 0xff && fgetc(ifp) == 0xd8
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:8138:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!strncmp (name, table[i].prefix, strlen(table[i].prefix))) {
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:8229:26:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	  bitbuf |= (unsigned) (fgetc(ifp) << i);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:8551:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (fgetc(ifp) != 0xff)
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:8725: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).
  cp = make + strlen(make);		/* Remove trailing spaces */
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:8727:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  cp = model + strlen(model);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:8729: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).
  i = strlen(make);			/* Remove make from model */
data/photoflow-0.2.8+git20200114/src/rt/rtengine/dcraw.cc:8795: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).
      if (model[4] == 'K' && strlen(model) == 8)
data/photoflow-0.2.8+git20200114/src/rt/rtengine/myfile.h:79:12:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
inline int fgetc (IMFILE* f)
data/photoflow-0.2.8+git20200114/src/rt/rtengine/myfile.h:94:12:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
inline int getc (IMFILE* f)
data/photoflow-0.2.8+git20200114/src/rt/rtengine/myfile.h:97:12:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return fgetc(f);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/procparams.h:551: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.
    double equal;
data/photoflow-0.2.8+git20200114/src/rt/rtengine/procparams.h:553:108:  [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.
    WBEntry(const Glib::ustring &p, enum WBTypes t, const Glib::ustring &l, int temp, double green, double equal) : ppLabel(p), type(t), GUILabel(l), temperature(temp), green(green), equal(equal) {};
data/photoflow-0.2.8+git20200114/src/rt/rtengine/procparams.h:553:184:  [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.
    WBEntry(const Glib::ustring &p, enum WBTypes t, const Glib::ustring &l, int temp, double green, double equal) : ppLabel(p), type(t), GUILabel(l), temperature(temp), green(green), equal(equal) {};
data/photoflow-0.2.8+git20200114/src/rt/rtengine/procparams.h:553:190:  [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.
    WBEntry(const Glib::ustring &p, enum WBTypes t, const Glib::ustring &l, int temp, double green, double equal) : ppLabel(p), type(t), GUILabel(l), temperature(temp), green(green), equal(equal) {};
data/photoflow-0.2.8+git20200114/src/rt/rtengine/procparams.h:564:21:  [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.
    double          equal;
data/photoflow-0.2.8+git20200114/src/rt/rtengine/rawimage.cc:1062: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).
    char name[strlen(make) + strlen(model) + 32];
data/photoflow-0.2.8+git20200114/src/rt/rtengine/rawimage.cc:1062: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).
    char name[strlen(make) + strlen(model) + 32];
data/photoflow-0.2.8+git20200114/src/rt/rtengine/rtlensfun.cc:356: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).
                size_t sl = strlen (fn);
data/photoflow-0.2.8+git20200114/src/rt/rtengine/xtrans_demosaic_RT.cc:461:17:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                getchar();
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:496:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            char nextChar = *(pos + strlen(name));
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:501: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).
                pos += strlen(name);
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:520:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(value, posTag + 1, pos - posTag - 1);
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:526:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(value, posAttr + 1, pos - posAttr - 1);
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:1321: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).
        valuesize = strlen (v) + 1;
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:1539:5:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
    strcpy (buffer, "");
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:1546: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).
        char* b = buffer + strlen(buffer);
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:1601:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        sprintf (buffer + strlen(buffer) - 1, "[%d]", i);
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:1795: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).
    count = strlen(text) + 1;
data/photoflow-0.2.8+git20200114/src/rt/rtexif/rtexif.cc:1961:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            fseek (f, strlen(buffer) - 63, SEEK_CUR);
data/photoflow-0.2.8+git20200114/src/rt/rtexif/stdattribs.cc:451:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy (buffer, (char*)t->getValue() + 8, t->getCount() - 8);
data/photoflow-0.2.8+git20200114/src/tests/gmic.cc:43: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( fname ) > 0 ) {
data/photoflow-0.2.8+git20200114/src/tests/gmic.cc:51:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    t.read(custom_gmic_commands, length);       // read the whole file into the buffer
data/photoflow-0.2.8+git20200114/src/tests/gmic_test.cc:174:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    t.read(custom_gmic_commands, length);       // read the whole file into the buffer
data/photoflow-0.2.8+git20200114/src/tests/vector.cc:164:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(exname, argv[0], 512);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:2442: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 size_t size = std::strlen(e._message);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:2444:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      std::strncpy(_message,e._message,size);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:2449: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 size_t size = std::strlen(e._message);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:2451:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      std::strncpy(_message,e._message,size);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:2466: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 size_t size = std::strlen(e._message);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:2468:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      std::strncpy(_message,e._message,size);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:2473: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 size_t size = std::strlen(e._message);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:2475:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      std::strncpy(_message,e._message,size);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:4264:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      const unsigned int l = (unsigned int)std::strlen(command);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:4267:14:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        std::strncpy(ncommand,command,l);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:5343: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).
        l1 = (int)std::strlen(str1),
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:5344: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).
        l2 = (int)std::strlen(str2);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:5357:64:  [1] (buffer) strlen:
  Does not handle 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 unsigned int nl = l<5?5:l, ls = (unsigned int)std::strlen(str);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:5378:64:  [1] (buffer) strlen:
  Does not handle 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 unsigned int nl = l<5?5:l, ls = (unsigned int)std::strlen(str);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:5381:14:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        std::strncpy(res,str,nl - 5);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:5385:14:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        std::strncpy(res,str,ll);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:5387:14:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        std::strncpy(res + ll + 5,str + ls - lr,lr);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:5405: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 int l = (int)std::strlen(str);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:5719: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).
        return filename + std::strlen(filename);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:8238:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      const unsigned int s = (unsigned int)std::strlen(nptitle) + 1;
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:8593:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      const unsigned int s = (unsigned int)std::strlen(tmp) + 1;
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:9344:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      const unsigned int s = (unsigned int)std::strlen(nptitle) + 1;
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:9557:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      const unsigned int s = (unsigned int)std::strlen(tmp) + 1;
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:10724:80:  [1] (buffer) strlen:
  Does not handle 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 (cimg_sscanf(s,"%255[^0-9%xyzvwhdcXYZVWHDC]",item._data)>0) s+=std::strlen(item);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:14660:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                      ss_op + std::strlen(ss_op)<&expr.back()?"...":"");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:14819:69:  [1] (buffer) strlen:
  Does not handle 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 unsigned int l_variable_name = (unsigned int)std::strlen(variable_name);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:17942:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            arg1 = (unsigned int)std::strlen(variable_name);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:17975: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).
              arg1 = (unsigned int)std::strlen(variable_name);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:18316:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          l1 = calling_function?(unsigned int)std::strlen(calling_function):0U,
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:18317:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          l2 = user_function?(unsigned int)std::strlen(user_function):0U;
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:23641:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      return CImg<T>(str,(unsigned int)std::strlen(str) + (is_last_zero?1:0),1,1,1,is_shared);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:24575: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).
            nexpression+=std::strlen(item) + (err>1);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:25876: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).
      CImg<T>(s,(unsigned int)std::strlen(s),1,1,1,false).move_to(list); ptrs = p + 1; break
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:33600:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      const unsigned int lmax = (unsigned int)std::strlen(naxes);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:41805:59:  [1] (buffer) strlen:
  Does not handle 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 unsigned int text_length = (unsigned int)std::strlen(text);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:44749:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                char *ctext = text._data + std::strlen(text), *const ltext = text._data + 512;
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:44753:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                  ctext = text._data + std::strlen(text);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:44756: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).
                std::strcpy(text._data + std::strlen(text),"] ");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:45015:68:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              cimg_forC(*this,c) cimg_sprintf(message._data + std::strlen(message),"%g ",(double)(*this)(x,0,0,c));
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:45016:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              cimg_sprintf(message._data + std::strlen(message),")");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:45030: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).
	        cimg_sprintf(message._data + std::strlen(message)," - Range ( %u:%g, %g ) - ( %u:%g, %g )",
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:45033: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).
	        cimg_sprintf(message._data + std::strlen(message)," - Range [ %u:%g - %u:%g ]",
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:46065:100:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      while ((err=std::fscanf(nfile,"%16383[^\n]",item.data()))!=EOF && (*item=='#' || !err)) std::fgetc(nfile);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:46073:101:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      while ((err=std::fscanf(nfile," %16383[^\n]",item.data()))!=EOF && (*item=='#' || !err)) std::fgetc(nfile);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:46083:105:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          while ((err=std::fscanf(nfile," %16383[^\n]",item.data()))!=EOF && (*item=='#' || !err)) std::fgetc(nfile);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:46091:12:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      std::fgetc(nfile);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:46267:100:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      while ((err=std::fscanf(nfile,"%16383[^\n]",item.data()))!=EOF && (*item=='#' || !err)) std::fgetc(nfile);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:46275:101:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      while ((err=std::fscanf(nfile," %16383[^\n]",item.data()))!=EOF && (*item=='#' || !err)) std::fgetc(nfile);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:46284:103:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while ((err=std::fscanf(nfile," %16383[^\n]",item.data()))!=EOF && (*item=='#' || !err)) std::fgetc(nfile);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:46291:12:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      std::fgetc(nfile);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:46847:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          cimg_sprintf(body._data + std::strlen(body),".img");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:46851:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          cimg_sprintf(body._data + std::strlen(body),".hdr");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:47086:21:  [1] (buffer) fscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
      out[0] = std::fscanf(file,"%63s",item._data);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:47106:74:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        case 2 : out[5] = cimg::strncasecmp(tmp1,"unsigned",8)?1:0; std::strncpy(tmp1,tmp2,tmp1._width - 1);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:50737:14:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        std::strncpy(iname,filename,iname._width - 1);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:50738: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).
        cimg_sprintf(iname._data + std::strlen(iname) - 3,"img");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:50742:14:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        std::strncpy(iname,filename,iname._width - 1);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:50743: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).
        cimg_sprintf(hname._data + std::strlen(iname) - 3,"hdr");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:50746:14:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        std::strncpy(hname,filename,hname._width - 1); *iname = 0;
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:50753:12:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
      std::strcpy(header._data + 14," ");
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:54411:33:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          j = 0; while ((i=std::fgetc(nfile))!='\n' && i>=0 && j<255) tmp[j++] = (char)i; tmp[j] = 0; \
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:54453:31:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        j = 0; while ((i=std::fgetc(nfile))!='\n' && i>=0 && j<255) tmp[j++] = (char)i; tmp[j] = 0;
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:54559:33:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          j = 0; while ((i=std::fgetc(nfile))!='\n' && i>=0) tmp[j++] = (char)i; tmp[j] = 0; \
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:54634:29:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      j = 0; while ((i=std::fgetc(nfile))!='\n' && i!=EOF && j<256) tmp[j++] = (char)i; tmp[j] = 0;
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:54697:14:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        std::strncpy(filenamepar,filename,filenamepar._width - 1);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:54701:14:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        std::strncpy(filenamepar,filename,filenamepar._width - 1);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:54705:14:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        std::strncpy(filenamerec,filename,filenamerec._width - 1);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:54709:14:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        std::strncpy(filenamerec,filename,filenamerec._width - 1);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:55549:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        const unsigned int l = (unsigned int)std::strlen(res);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:55861:33:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          j = 0; while ((i=std::fgetc(nfile))!='\n') tmp[j++]=(char)i; tmp[j] = 0; \
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:55931:29:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      j = 0; while ((i=std::fgetc(nfile))!='\n' && i!=EOF && j<256) tmp[j++] = (char)i; tmp[j] = 0;
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:56137:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          if (*ext) cimg_sprintf(nfilename._data + std::strlen(nfilename),".%s",ext);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:56547:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                       (unsigned int)std::strlen(cimg::_data_font90x103[0]),1,1,1,true),
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:56549:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                       (unsigned int)std::strlen(cimg::_data_font90x103[1]) + 1,1,1,1,true))>'x').
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:56714:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      std::strncpy(s_path,user_path,1023);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:56739:14:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        std::strncpy(tmp,filename_tmp,tmp._width - 1);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:56764:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      std::strncpy(s_path,user_path,1023);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:56772:26:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        if (pfPath) std::strncpy(s_path,pfPath,MAX_PATH - 1);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:56796:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      std::strncpy(s_path,user_path,1023);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:56905:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      std::strncpy(s_path,user_path,1023);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:57014:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      std::strncpy(s_path,user_path,1023);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:57063:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      std::strncpy(s_path,user_path,1023);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:57099:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      std::strncpy(s_path,user_path,1023);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:57135:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      std::strncpy(s_path,user_path,1023);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:57171:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      std::strncpy(s_path,user_path,1023);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:57207:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      std::strncpy(s_path,user_path,1023);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:57243:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      std::strncpy(s_path,user_path,1023);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:57299:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    unsigned int lp = (unsigned int)std::strlen(_path);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:57319: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).
      lp = (unsigned int)std::strlen(_path);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:57335:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        const unsigned int lf = (unsigned int)std::strlen(filename);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:57357:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        const unsigned int lf = (unsigned int)std::strlen(filename);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/CImg.h:57508:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    CImg<char> command((unsigned int)std::strlen(url) + 64);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:2206: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 int ls = (int)std::strlen(ns), lt = (int)std::strlen(nt);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:2206: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).
  const int ls = (int)std::strlen(ns), lt = (int)std::strlen(nt);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:2259:45:  [1] (buffer) strlen:
  Does not handle 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 unsigned int l = (unsigned int)std::strlen(str);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:2430: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).
      path_tmp.assign(std::strlen(_path_rc) + 10);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:2514: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).
  CImg<char> item((unsigned int)std::strlen(ptrs0) + 1);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:2800: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).
    char *linee = line.data() + std::strlen(line) - 1;
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:3956:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              CImg<char>(substr.data(),(unsigned int)std::strlen(substr),1,1,1,true).
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:4006:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                std::memmove(substr,basename,std::strlen(basename) + 1);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:4076:61:  [1] (buffer) strlen:
  Does not handle 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 unsigned int l_feature = (unsigned int)std::strlen(feature);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:4154: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).
          CImg<char>(substr.data(),(unsigned int)std::strlen(substr),1,1,1,true).
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:4180: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).
          CImg<char>(substr.data(),(unsigned int)std::strlen(substr),1,1,1,true).
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:4189:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        CImg<char>(substr.data(),(unsigned int)std::strlen(substr),1,1,1,true).
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:4196:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        CImg<char>(substr.data(),(unsigned int)std::strlen(substr),1,1,1,true).
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:4203:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        CImg<char>(substr.data(),(unsigned int)std::strlen(substr),1,1,1,true).
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:4223:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        CImg<char>(substr.data(),(unsigned int)std::strlen(substr),1,1,1,true).
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:4230:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                   !inbraces[std::strlen(substr)]) ||
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:4236:64:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          l_name = is_braces?l_inbraces + 3:(unsigned int)std::strlen(name) + 1;
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:4261:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            CImg<char>(substr.data(),(unsigned int)std::strlen(substr),1,1,1,true).
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:4265:60:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (s_env) CImg<char>(s_env,(unsigned int)std::strlen(s_env),1,1,1,true).
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:4292: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).
          CImg<char>(status.data(),(unsigned int)std::strlen(status),1,1,1,true).
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:4521:66:  [1] (buffer) strlen:
  Does not handle 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 unsigned int l_command = err==1?(unsigned int)std::strlen(command):0;
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:4532:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        } else if (err==2 && sep0=='[' && item[std::strlen(command) + 1]==']') { // Empty selection
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:4552:16:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
          std::strncpy(command,item,_command.width() - 1);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:4557:14:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        std::strncpy(command,item,_command.width() - 1);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:4563:14:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        std::strncpy(current_command,command,_current_command.width() - 1);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:4992:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            _argument+=1 + std::strlen(argx);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:5013: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).
                  *argx?std::strlen(argx)==1?"'-axis,":"'-axes,":"",
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:5038:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            _argument+=1 + std::strlen(argx);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:5058: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).
                  *argx?std::strlen(argx)==1?"'-axis,":"'-axes,":"",
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:5159:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          name.assign(argument,(unsigned int)std::strlen(argument) + 1);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:5625:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          name.assign(argument,(unsigned int)std::strlen(argument) + 1);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:5842: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).
                  std::strlen(argument)>1?'e':'i');
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:6009: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).
                  std::strlen(argx)>1?'e':'i',
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:6017:69:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            unsigned int nb_values = 1, s_argx = (unsigned int)std::strlen(argx) + 1;
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:6024: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).
                  std::strlen(argx)>1?'e':'i',
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:6464:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            name.assign(argument,(unsigned int)std::strlen(argument) + 1);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:6481:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          name.assign(argument,(unsigned int)std::strlen(argument) + 1);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:6498:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          name.assign(argument,(unsigned int)std::strlen(argument) + 1);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:6838:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            name.assign(argument,(unsigned int)std::strlen(argument) + 1);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:8073: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).
                  std::strlen(argument)>1?'e':'i');
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:8643:20:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
              std::strncpy(_filename,argument,_filename.width() - 1);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:8673:18:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            std::strncpy(formula,filename,_formula.width() - 1);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:8778:61:  [1] (buffer) strlen:
  Does not handle 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 unsigned int l_stype = (unsigned int)std::strlen(stype);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:9513:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              *const eargument = argument + std::strlen(argument);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:9526:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                  nargument+=std::strlen(argx) + std::strlen(argy) + 2;
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:9526: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).
                  nargument+=std::strlen(argx) + std::strlen(argy) + 2;
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:9532: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).
              nargument+=std::strlen(color) + 1;
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:9538: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).
              nargument+=std::strlen(color) + 3;
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:9864:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              const unsigned int l = (unsigned int)std::strlen(title);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:10476:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    std::strlen(argx)>1?'e':'i',
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:10483: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).
                      std::strlen(argx)>1?'e':'i');
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:10488: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).
                      std::strlen(argx)>1?'e':'i',
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:10494:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    std::strlen(argx)>1?'e':'i');
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:10531:95:  [1] (buffer) strlen:
  Does not handle 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 (cimg_sscanf(s_values,"%255[xyzc]%c",argx,&end)==2 && end==',') s_values+=std::strlen(argx) + 1;
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:10543: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).
                      std::strlen(argx)>1?'e':'i',
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:11940:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            name.assign(argument,(unsigned int)std::strlen(argument) + 1);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:11970:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          name.assign(argument,(unsigned int)std::strlen(argument) + 1);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:12334:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            name.assign(argument,(unsigned int)std::strlen(argument) + 1);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:12457: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).
                  std::strlen(argument)>1?'e':'i',
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:12587:62:  [1] (buffer) strlen:
  Does not handle 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 unsigned int ls = (unsigned int)std::strlen(command_code);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:12675:67:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                      CImg<char>(substr.data(),(unsigned int)std::strlen(substr),1,1,1,true).
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:12682:62:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                      CImg<char>(argument,(unsigned int)std::strlen(argument),1,1,1,true).
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:12702: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).
                      nsource+=2 + std::strlen(title);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:12705:69:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        CImg<char>(substr.data(),(unsigned int)std::strlen(substr),1,1,1,true).
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:12851:61:  [1] (buffer) strlen:
  Does not handle 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 unsigned int l = (unsigned int)std::strlen(substituted_command.data());
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:12976:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            pattern = (unsigned int)std::strlen(title);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:13016:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      CImg<char> arg_input(argument,(unsigned int)std::strlen(argument) + 1);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:13110:59:  [1] (buffer) strlen:
  Does not handle 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 *_s_values = arg_input.data() + std::strlen(argx) + std::strlen(argy) +
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:13110:79:  [1] (buffer) strlen:
  Does not handle 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 *_s_values = arg_input.data() + std::strlen(argx) + std::strlen(argy) +
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:13111:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            std::strlen(argz) + std::strlen(argc) + 4;
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:13111: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).
            std::strlen(argz) + std::strlen(argc) + 4;
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:13112:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          s_values.assign(_s_values,(unsigned int)std::strlen(_s_values) + 1);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:13116:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          const unsigned int l = (unsigned int)std::strlen(s_values);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:13135:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      } else if (*arg_input=='(' && arg_input[std::strlen(arg_input) - 1]==')') {
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:13157: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).
            nargument+=std::strlen(s_value) + 1;
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:13176: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).
            nargument+=std::strlen(s_value) + (separator?1:0);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:13198:18:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            std::strncpy(_filename,argument,_filename.width() - 1);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:13221:16:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
          std::strncpy(_filename,filename_tmp,_filename.width() - 1);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:13972: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).
    CImg<char> error_message(e_ptr,(unsigned int)std::strlen(e_ptr) + 1);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.cpp:14177: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).
        CImg<char>(argv[l],(unsigned int)std::strlen(argv[l])).move_to(items);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.h:376: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).
      _command_help.assign((unsigned int)std::strlen(command) + 1,1,1,1);
data/photoflow-0.2.8+git20200114/src/vips/gmic/gmic/src/gmic.h:380:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      _message.assign((unsigned int)std::strlen(message) + 1,1,1,1);
data/photoflow-0.2.8+git20200114/src/vips/gmic/vips_gmic.cpp:591: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( fname ) > 0 ) {
data/photoflow-0.2.8+git20200114/src/vips/gmic/vips_gmic.cpp:599:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      t.read(custom_gmic_commands, length);       // read the whole file into the buffer

ANALYSIS SUMMARY:

Hits = 1505
Lines analyzed = 344491 in approximately 13.85 seconds (24872 lines/second)
Physical Source Lines of Code (SLOC) = 261093
Hits@level = [0] 1007 [1] 344 [2] 943 [3]  89 [4] 127 [5]   2
Hits@level+ = [0+] 2512 [1+] 1505 [2+] 1161 [3+] 218 [4+] 129 [5+]   2
Hits/KSLOC@level+ = [0+] 9.62109 [1+] 5.76423 [2+] 4.44669 [3+] 0.834952 [4+] 0.494077 [5+] 0.00766011
Dot directories skipped = 2 (--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.