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/geeqie-1.5.1+git20200808-2a27c9ab/src/image_load_dds.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/exif.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/typedefs.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/cache.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/image_load_psd.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/image_load_heif.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/search.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/dnd.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/dupe.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/slideshow.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_menu.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/cache_maint.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/secure_save.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/gq-marshal.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/image-load.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/format_nikon.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/image_load_tiff.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_pathsel.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_help.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/bar_exif.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/view_file.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/desktop_file.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/uri_utils.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/collect-table.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/jpeg_parser.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/zonedetect.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/view_dir.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/image-overlay.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/color-man.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/image-overlay.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/layout_image.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/bar_keywords.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/exiv2.cc
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/view_dir.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/thumb_standard.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/history_list.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/keymap_template.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/exif-int.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/cache-loader.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/image_load_pdf.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/layout_image.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/collect-io.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_bookmark.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/main.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/image_load_tiff.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/img-view.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_tabcomp.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/bar_histogram.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/logwindow.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/renderer-clutter.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/img-view.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/dupe.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_tabcomp.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/collect-table.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/layout_config.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/image.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_utildlg.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/md5-util.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/fullscreen.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/view_dir_list.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/bar_comment.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/utilops.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/image_load_svgz.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_menu.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/view_file/view_file_icon.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/view_file/view_file.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/view_file/view_file_list.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/view_file/view_file_icon.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/view_file/view_file_list.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/image_load_dds.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/remote.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/options.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/filefilter.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/dnd.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/format_olympus.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/debug.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/lua.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/image_load_cr3.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/bar_exif.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_spinner.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/collect.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/osd.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/main.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/pan-view/pan-view.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/pan-view/pan-view-search.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/pan-view/pan-item.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/pan-view/pan-timeline.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/pan-view/pan-view-filter.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/pan-view/pan-folder.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/pan-view/pan-view-filter.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/pan-view/pan-util.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/pan-view/pan-util.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/pan-view/pan-calendar.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/pan-view/pan-folder.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/pan-view/pan-view-search.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/pan-view/pan-grid.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/pan-view/pan-calendar.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/pan-view/pan-grid.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/pan-view/pan-timeline.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/pan-view/pan-item.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/pan-view/pan-view.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/pan-view/pan-types.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_pathsel.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/glua.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/zonedetect.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/image_load_gdk.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/compat.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/compat.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/trash.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/utilops.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/cache-loader.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/cache.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/layout_util.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/bar_keywords.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_tree_edit.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/collect-dlg.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/lirc.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/image.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/format_fuji.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/print.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/osd.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/layout_config.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/format_raw.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/advanced_exif.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/jpeg_parser.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/renderer-tiles.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/rcfile.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/history_list.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/advanced_exif.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/collect-io.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/logwindow.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/metadata.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/similar.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/layout.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/bar_gps.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/view_dir_tree.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/slideshow.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_bookmark.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/bar.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/bar.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/format_nikon.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/color-man.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/layout.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/intl.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/image_load_cr3.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/editors.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/desktop_file.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/pixbuf_util.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/remote.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/image_load_j2k.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/image_load_jpeg.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/search_and_run.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/filedata.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/toolbar.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/renderer-clutter.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/collect.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/editors.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/pixbuf-renderer.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/ClayRGB1998_icc.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_fileops.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/bar_sort.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/bar_gps.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/md5-util.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/gq-marshal.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/image_load_heif.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/preferences.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/bar_sort.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/shortcuts.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/image_load_psd.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/filedata.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/image_load_webp.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/image_load_svgz.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/image_load_djvu.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/filecache.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/thumb.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/bar_comment.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/misc.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/image_load_ffmpegthumbnailer.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/uri_utils.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/window.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/cache_maint.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/image_load_webp.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/fullscreen.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_help.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/search.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/toolbar.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/misc.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/similar.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/cellrenderericon.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/print.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/renderer-tiles.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/menu.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/collect-dlg.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/debug.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/options.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/exif-common.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/thumb.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_spinner.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/histogram.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/format_raw.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/metadata.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/image_load_ffmpegthumbnailer.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/image_load_pdf.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/format_fuji.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_fileops.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_misc.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/image_load_collection.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/image_load_j2k.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/rcfile.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/filefilter.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/image_load_jpeg.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_utildlg.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/shortcuts.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/preferences.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/image_load_djvu.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/histogram.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/menu.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/thumb_standard.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_misc.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/filecache.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/exif.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/pan-view.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_tree_edit.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/pixbuf-renderer.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/format_canon.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/format_olympus.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/bar_histogram.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/lirc.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/secure_save.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/search_and_run.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/format_canon.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/image-load.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/image_load_collection.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/trash.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/cellrenderericon.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/view_dir_tree.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/pixbuf_util.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/window.h
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/image_load_gdk.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/view_dir_list.c
Examining data/geeqie-1.5.1+git20200808-2a27c9ab/src/layout_util.c

FINAL RESULTS:

data/geeqie-1.5.1+git20200808-2a27c9ab/src/misc.c:360: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.
		l = readlink(sl, buf, st.st_size);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/pan-view/pan-util.c:169: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.
		l = readlink(sl, buf, st.st_size);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/secure_save.c:288:9:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
				if (chown(ssi->tmp_file_name, st.st_uid, st.st_gid) != 0) log_printf("chown('%s', %d, %d) failed", ssi->tmp_file_name, st.st_uid, st.st_gid);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/secure_save.c:289:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
				if (chmod(ssi->tmp_file_name, st.st_mode) != 0) log_printf("chmod('%s', %o) failed", ssi->tmp_file_name, st.st_mode);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/thumb_standard.c:360:4:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
			chmod(pathl, (tl->cache_local) ? tl->source_mode : THUMB_PERMS_THUMB);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_fileops.c:513:10:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
			ret = chown(tl, st.st_uid, st.st_gid);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_fileops.c:517:8:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
			if (chmod(tl, st.st_mode) < 0) {
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_fileops.c:581: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.
		i = readlink(sl, link_target, st.st_size);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/collect-io.c:727: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(*path_ptr, action->newpath);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/editors.c:1051:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			ok = (access(options->shell.path, X_OK) == 0);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/lua.c:276:7:  [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.
	ok = access(g_build_filename(get_rc_dir(), "lua", file, NULL), R_OK);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/lua.c:284:8:  [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.
		ok = access(g_build_filename("/usr/local/lib", GQ_APPNAME_LC, file, NULL), R_OK);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/main.c:746:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access(pathl, R_OK) == 0)
data/geeqie-1.5.1+git20200808-2a27c9ab/src/misc.c:147:13:  [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.
		if ((fp = popen(cmd, "r")) == NULL)
data/geeqie-1.5.1+git20200808-2a27c9ab/src/misc.c:197: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.
	return system(cmd);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/misc.c:206:7:  [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.
	in = popen(cmd, "r");
data/geeqie-1.5.1+git20200808-2a27c9ab/src/secure_save.c:125:8:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			if (access(ssi->file_name, R_OK | W_OK) < 0) {
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_fileops.c:426:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	ret = (access(sl, mode) == 0);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_fileops.c:598: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(absolute + len, link_target);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/window.c:108:6:  [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.
	f = popen(command, "r");
data/geeqie-1.5.1+git20200808-2a27c9ab/src/zonedetect.c:1183:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat(output + strlen(output), strings[i]);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/collect.c:217:8:  [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.
	guint random, length, i;
data/geeqie-1.5.1+git20200808-2a27c9ab/src/collect.c:224:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand((unsigned int)time(NULL)); // Initialize random generator (hasn't to be that much strong)
data/geeqie-1.5.1+git20200808-2a27c9ab/src/collect.c:230: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.
		nlist = g_list_nth(list, random);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/editors.c:454: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.
	xdg_data_dirs = getenv("XDG_DATA_DIRS");
data/geeqie-1.5.1+git20200808-2a27c9ab/src/exif-common.c:794: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.
		time_zone_org = g_strconcat("TZ=", getenv("TZ"), NULL);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/main.c:918:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand(time(NULL));
data/geeqie-1.5.1+git20200808-2a27c9ab/src/misc.c:100:10:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
		home = g_get_home_dir();
data/geeqie-1.5.1+git20200808-2a27c9ab/src/options.h:190:12:  [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.
		gboolean random;
data/geeqie-1.5.1+git20200808-2a27c9ab/src/preferences.c:315:51:  [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.
	options->slideshow.random = c_options->slideshow.random;
data/geeqie-1.5.1+git20200808-2a27c9ab/src/preferences.c:2065:63:  [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.
	pref_checkbox_new_int(group, _("Random"), options->slideshow.random, &c_options->slideshow.random);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/preferences.c:2065:93:  [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.
	pref_checkbox_new_int(group, _("Random"), options->slideshow.random, &c_options->slideshow.random);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/print.c:909:9:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
		dir = g_get_home_dir();
data/geeqie-1.5.1+git20200808-2a27c9ab/src/rcfile.c:441:45:  [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.
	WRITE_NL(); WRITE_BOOL(*options, slideshow.random);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/rcfile.c:867:37:  [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.
		if (READ_BOOL(*options, slideshow.random)) continue;
data/geeqie-1.5.1+git20200808-2a27c9ab/src/slideshow.c:141:25:  [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.
	if (options->slideshow.random)
data/geeqie-1.5.1+git20200808-2a27c9ab/src/slideshow.c:393:27:  [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.
		if (!options->slideshow.random && start_info)
data/geeqie-1.5.1+git20200808-2a27c9ab/src/slideshow.c:407: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.
			if (!options->slideshow.random && start_point >= 0 && (guint) start_point < ss->slide_count)
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_fileops.c:86: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.
	lc = getenv("LANG");
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_fileops.c:87: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.
	bf = getenv("G_BROKEN_FILENAMES");
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_fileops.c:194:23:  [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.
		home = path_to_utf8(getenv("HOME"));
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_fileops.c:197:23:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
		home = path_to_utf8(g_get_home_dir());
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_fileops.c:206:15:  [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.
	gchar *dir = getenv(key);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_fileops.c:603:15:  [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.
			realPath = realpath(link_target, NULL);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_fileops.c:922: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 = g_strdup(getenv("PATH"));
data/geeqie-1.5.1+git20200808-2a27c9ab/src/view_dir_list.c:253:12:  [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.
				link = realpath(fd->path, NULL);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/view_dir_tree.c:423:10:  [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.
		link = realpath(fd->path, NULL);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/view_dir_tree.c:582: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.
					link = realpath(fd->path, NULL);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/bar_keywords.c:1850:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(pathl, "r");
data/geeqie-1.5.1+git20200808-2a27c9ab/src/cache.c:410:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(pathl, "r");
data/geeqie-1.5.1+git20200808-2a27c9ab/src/cache.c:514: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(cd->sim->avg_r, sd->avg_r, 1024);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/cache.c:515: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(cd->sim->avg_g, sd->avg_g, 1024);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/cache.c:516: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(cd->sim->avg_b, sd->avg_b, 1024);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/collect-io.c:111:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(pathl, "r");
data/geeqie-1.5.1+git20200808-2a27c9ab/src/collect.c:579: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).
	collection_number = atoi(ptr);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/collect.c:594: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).
		item_number = (guint) atoi(ptr);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/collect.c:658: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, text, len);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/color-man.c:443:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char buffer[20];
data/geeqie-1.5.1+git20200808-2a27c9ab/src/dupe.c:3456: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).
				rank_int_a = atoi(rank_str_a);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/dupe.c:3457: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).
				rank_int_b = atoi(rank_str_b);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/exif-common.c:1134: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(cp_data, data + chunk_offset[i], chunk_length[i]);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/exif.c:676: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(&align_buf, f, sizeof(guint16));
data/geeqie-1.5.1+git20200808-2a27c9ab/src/exif.c:688: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(&align_buf, f, sizeof(guint32));
data/geeqie-1.5.1+git20200808-2a27c9ab/src/exif.c:709: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(f, &align_buf, sizeof(guint16));
data/geeqie-1.5.1+git20200808-2a27c9ab/src/exif.c:725: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(f, &align_buf, sizeof(guint32));
data/geeqie-1.5.1+git20200808-2a27c9ab/src/exif.c:786: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(dest, src, len);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/exif.c:789: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(dest, src, len);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/exif.c:1155:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(path, O_RDONLY);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/exif.c:1654:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(path, O_RDONLY);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/exiv2.cc:192: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).
			image_ = Exiv2::ImageFactory::open(pathl_);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/exiv2.cc:211: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).
				if (!open) io.open();
data/geeqie-1.5.1+git20200808-2a27c9ab/src/exiv2.cc:211: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).
				if (!open) io.open();
data/geeqie-1.5.1+git20200808-2a27c9ab/src/exiv2.cc:218: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).
				if (!open) io.close();
data/geeqie-1.5.1+git20200808-2a27c9ab/src/exiv2.cc:1301: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(path.c_str(), O_RDONLY);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/exiv2.cc:1372: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).
        if (io.open() != 0) {
data/geeqie-1.5.1+git20200808-2a27c9ab/src/filedata.c:583: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).
		file->rating = atoi(rating_str);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/filedata.c:625: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).
			file->rating = atoi(rating_str);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/filedata.c:3343:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(pathl, "r");
data/geeqie-1.5.1+git20200808-2a27c9ab/src/filedata.c:3368:10:  [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 (atoi(marks_value) & mark_no)
data/geeqie-1.5.1+git20200808-2a27c9ab/src/format_nikon.c:400: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(item->data, text, l);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/format_nikon.c:415: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(shadow->data, item->data + 2, 2);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/format_nikon.c:428: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(shadow->data, item->data, item->data_len);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/format_olympus.c:343: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(item->data, text, l);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/format_olympus.c:373: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(item->data, text, l);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/history_list.c:226:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(pathl, "r");
data/geeqie-1.5.1+git20200808-2a27c9ab/src/image-load.c:966: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).
		load_fd = open(pathl, O_RDONLY | O_NONBLOCK);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/image_load_collection.c:62:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fp = fopen(pathl, "r");
data/geeqie-1.5.1+git20200808-2a27c9ab/src/image_load_cr3.c:144: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[JMSG_LENGTH_MAX];
data/geeqie-1.5.1+git20200808-2a27c9ab/src/image_load_cr3.c:272: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(&align_buf, &buf[0xf2], sizeof(guint64));
data/geeqie-1.5.1+git20200808-2a27c9ab/src/image_load_j2k.c:63: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 (pdst, psrc->cur, n);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/image_load_j2k.c:98: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 (pbuf, p_source_buffer->buf, dist);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/image_load_j2k.c:107: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 (p_source_buffer->cur, p_buffer, p_nb_bytes);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/image_load_j2k.c:192: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_copy, buf, count);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/image_load_jpeg.c:147: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[JMSG_LENGTH_MAX];
data/geeqie-1.5.1+git20200808-2a27c9ab/src/image_load_psd.c:164: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(hd.signature, str, 4);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/image_load_psd.c:192: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(buffer + *bytes_read, *data, how_many);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/image_load_psd.c:446: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.
							memcpy(ctx->ch_bufs[ctx->curr_ch] + ctx->pos,
data/geeqie-1.5.1+git20200808-2a27c9ab/src/image_load_tiff.c:71: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, context->buffer + context->pos, size);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/image_load_tiff.c:285: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(wrk_line, top_line, line_bytes);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/image_load_tiff.c:286: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(top_line, bottom_line, line_bytes);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/image_load_tiff.c:287: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(bottom_line, wrk_line, line_bytes);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/jpeg_parser.c:80: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(&align_buf, f, sizeof(guint16));
data/geeqie-1.5.1+git20200808-2a27c9ab/src/jpeg_parser.c:92: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(&align_buf, f, sizeof(guint32));
data/geeqie-1.5.1+git20200808-2a27c9ab/src/jpeg_parser.c:113: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(f, &align_buf, sizeof(guint16));
data/geeqie-1.5.1+git20200808-2a27c9ab/src/jpeg_parser.c:129: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(f, &align_buf, sizeof(guint32));
data/geeqie-1.5.1+git20200808-2a27c9ab/src/layout.c:155: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 id[10];
data/geeqie-1.5.1+git20200808-2a27c9ab/src/layout.c:172: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 id[10];
data/geeqie-1.5.1+git20200808-2a27c9ab/src/layout_util.c:3686: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(action_name, "ColorProfile%d", i);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/lirc.c:85:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				i_parm = atoi(ptr);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/lirc.c:94:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				i_parm = atoi(ptr);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/lirc.c:103:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				i_parm = atoi(ptr);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/lirc.c:112:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				i_parm = atoi(ptr);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/lirc.c:129:15:  [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).
				fl_parm = atoi(ptr) / 10.0;
data/geeqie-1.5.1+git20200808-2a27c9ab/src/lirc.c:138:15:  [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).
				fl_parm = atoi(ptr) / 10.0;
data/geeqie-1.5.1+git20200808-2a27c9ab/src/lirc.c:155:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				i_parm = atoi(ptr);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/lirc.c:164:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				i_parm = atoi(ptr);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/logwindow.c:229: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(&logwin->colors[i], &logwin->colors[LOG_NORMAL], sizeof(GdkColor));
data/geeqie-1.5.1+git20200808-2a27c9ab/src/main.c:536:15:  [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).
					gint n = atoi(cmd_line + len + 1);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/md5-util.c:122: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(p, buf, len);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/md5-util.c:125: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(p, buf, t);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/md5-util.c:135: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(ctx->in, buf, 64);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/md5-util.c:145: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(ctx->in, buf, len);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/md5-util.c:201: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(digest, ctx->buf, 16);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/md5-util.c:350:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(path, "r");
data/geeqie-1.5.1+git20200808-2a27c9ab/src/metadata.c:506:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(path, "r");
data/geeqie-1.5.1+git20200808-2a27c9ab/src/metadata.c:1904: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).
			gint i = (gint)atoi(mark_str);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/misc.c:381:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *cpuinfo = fopen("/proc/cpuinfo", "rb");
data/geeqie-1.5.1+git20200808-2a27c9ab/src/osd.c:298: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).
			limit = (guint) atoi(limpos);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/pixbuf-renderer.c:2330: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(pr_dubois_matrix, pr_dubois_matrix_RC, sizeof pr_dubois_matrix);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/pixbuf-renderer.c:2333: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(pr_dubois_matrix, pr_dubois_matrix_GM, sizeof pr_dubois_matrix);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/pixbuf-renderer.c:2336: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(pr_dubois_matrix, pr_dubois_matrix_YB, sizeof pr_dubois_matrix);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/pixbuf_util.c:405: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(dp, sp, w * bytes_per_pixel);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/preferences.c:3751:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(path, "r");
data/geeqie-1.5.1+git20200808-2a27c9ab/src/rcfile.c:291:48:  [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 (g_ascii_strcasecmp(value, "true") == 0 || atoi(value) != 0)
data/geeqie-1.5.1+git20200808-2a27c9ab/src/remote.c:959:48:  [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).
		gtk_window_resize(GTK_WINDOW(lw_id->window), atoi(geometry[0]), atoi(geometry[1]));
data/geeqie-1.5.1+git20200808-2a27c9ab/src/remote.c:959:67:  [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).
		gtk_window_resize(GTK_WINDOW(lw_id->window), atoi(geometry[0]), atoi(geometry[1]));
data/geeqie-1.5.1+git20200808-2a27c9ab/src/remote.c:960:46:  [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).
		gtk_window_move(GTK_WINDOW(lw_id->window), atoi(geometry[2]), atoi(geometry[3]));
data/geeqie-1.5.1+git20200808-2a27c9ab/src/remote.c:960:65:  [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).
		gtk_window_move(GTK_WINDOW(lw_id->window), atoi(geometry[2]), atoi(geometry[3]));
data/geeqie-1.5.1+git20200808-2a27c9ab/src/renderer-tiles.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(dp, sp, COLOR_BYTES);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/renderer-tiles.c:973: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(dp, sp, COLOR_BYTES);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/renderer-tiles.c:1009: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(dp, sp, COLOR_BYTES);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/renderer-tiles.c:1045: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(dp, sp, COLOR_BYTES);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/renderer-tiles.c:1079: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(dp, sp, w * COLOR_BYTES);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/secure_save.c:136: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).
			f1 = fopen(ssi->file_name, "rb+");
data/geeqie-1.5.1+git20200808-2a27c9ab/src/secure_save.c:180:13:  [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).
		ssi->fp = fopen(ssi->file_name, "wb");
data/geeqie-1.5.1+git20200808-2a27c9ab/src/thumb.c:75: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 *f = fopen(pathl, "w"); ;
data/geeqie-1.5.1+git20200808-2a27c9ab/src/thumb.c:523: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).
	file = fopen(filename, "rt");
data/geeqie-1.5.1+git20200808-2a27c9ab/src/typedefs.h:1053: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).
	GdkPixbuf *open;
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_fileops.c:631:7:  [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).
	fi = fopen(sl, "rb");
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_help.c:114:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(pathl, "r");
data/geeqie-1.5.1+git20200808-2a27c9ab/src/view_dir.c:71:21:  [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).
	g_object_unref(pf->open);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/view_dir_list.c:206: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).
				pixbuf = vd->pf->open;
data/geeqie-1.5.1+git20200808-2a27c9ab/src/view_dir_tree.c:109: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(iter, &found, sizeof(found));
data/geeqie-1.5.1+git20200808-2a27c9ab/src/view_dir_tree.c:157: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).
			vdtree_icon_set_by_iter(vd, iter, vd->pf->open);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/view_dir_tree.c:841: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).
					vdtree_icon_set_by_iter(vd, &iter, vd->pf->open);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/view_dir_tree.c:914: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).
					vdtree_icon_set_by_iter(vd, &iter, vd->pf->open);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/view_dir_tree.c:960: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).
		vdtree_icon_set_by_iter(vd, iter, vd->pf->open);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/zonedetect.c:869: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).
        library->fd = open(path, O_RDONLY | O_CLOEXEC);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/bar.c:300: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).
	if (config) load_config_from_buf(config, strlen(config), FALSE);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/bar.c:622: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).
		if (config) load_config_from_buf(config, strlen(config), FALSE);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/bar_exif.c:519: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 (!title || strlen(title) == 0)
data/geeqie-1.5.1+git20200808-2a27c9ab/src/bar_keywords.c:1872: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(s_buf);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/cache_maint.c:153: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).
	base_length = strlen(cache_folder);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/cache_maint.c:196:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				    (strlen(path_buf) > base_length && !isfile(path_buf + base_length)) )
data/geeqie-1.5.1+git20200808-2a27c9ab/src/cache_maint.c:247: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(fd->path) > base_length)
data/geeqie-1.5.1+git20200808-2a27c9ab/src/collect-io.c:134:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if (g_ascii_strncasecmp(p, GQ_COLLECTION_MARKER, strlen(GQ_COLLECTION_MARKER)) == 0)
data/geeqie-1.5.1+git20200808-2a27c9ab/src/collect-io.c:151: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).
				else if (g_ascii_strncasecmp(p, "#GQview collection", strlen("#GQview collection")) == 0)
data/geeqie-1.5.1+git20200808-2a27c9ab/src/collect-io.c:202: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(extended_filename_buffer->str) > 0)
data/geeqie-1.5.1+git20200808-2a27c9ab/src/collect.c:627: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).
	*length += strlen(text);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/collect.c:641:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		*length += strlen(text);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/collect.c:657: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(text);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/dupe.c:4231:71:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	g_output_stream_write(G_OUTPUT_STREAM(gfstream), output_string->str, strlen(output_string->str), NULL, &error);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/editors.c:305:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (ext && strlen(ext) == 4 &&
data/geeqie-1.5.1+git20200808-2a27c9ab/src/editors.c:1107: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).
			editor_verbose_window_fill(ed->vd, buf, strlen(buf));
data/geeqie-1.5.1+git20200808-2a27c9ab/src/editors.c:1165: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).
				editor_verbose_window_fill(ed->vd, fd->path, strlen(fd->path));
data/geeqie-1.5.1+git20200808-2a27c9ab/src/exif-common.c:142: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).
	gint str_len = strlen(str);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/exif-common.c:144:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (suffix_len < 0) suffix_len = strlen(suffix);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/exiv2.cc:1411:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			parseTree->read(map_data, map_len);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/exiv2.cc:1432:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (!tiffHeader->read(map_data, map_len)) throw Error(3, "TIFF");
data/geeqie-1.5.1+git20200808-2a27c9ab/src/filedata.c:79:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	l = strlen(a);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/filedata.c:359: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).
		fd->extension = fd->name + strlen(fd->name);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/filefilter.c:363: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).
	gint len_a = strlen(sa);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/filefilter.c:364: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).
	gint len_b = strlen(sb);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/filefilter.c:443: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).
	ln = strlen(name);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/filefilter.c:448:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		guint lf = strlen(filter);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/format_nikon.c:397: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).
		l = strlen(text) + 1;
data/geeqie-1.5.1+git20200808-2a27c9ab/src/format_olympus.c:341: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).
		l = strlen(text) + 1;
data/geeqie-1.5.1+git20200808-2a27c9ab/src/format_olympus.c:371: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).
		l = strlen(text) + 1;
data/geeqie-1.5.1+git20200808-2a27c9ab/src/history_list.c:195:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	gint l = strlen(text);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/layout.c:259: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).
						  strlen(gtk_entry_get_text(GTK_ENTRY(lw->path_entry))));
data/geeqie-1.5.1+git20200808-2a27c9ab/src/layout_config.c:399: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 (!text || strlen(text) < 3)
data/geeqie-1.5.1+git20200808-2a27c9ab/src/layout_util.c:2037: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).
			gchar *name_base = g_strndup(name_utf8, strlen(name_utf8) - 4);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/lua.c:322: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).
	tmp = g_locale_to_utf8(data, strlen(data), NULL, NULL, &error);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/main.c:518: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).
	gint len = strlen(debug_option);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/main.c:529: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).
				gint cmd_line_len = strlen(cmd_line);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/main.c:551: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).
	gint len = strlen(clutter_option);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/metadata.c:307: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).
	lf = strlen(GQ_CACHE_EXT_METADATA);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/metadata.c:309: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).
	    g_ascii_strncasecmp(fd->change->dest + strlen(fd->change->dest) - lf, GQ_CACHE_EXT_METADATA, lf) == 0)
data/geeqie-1.5.1+git20200808-2a27c9ab/src/metadata.c:540: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(s_buf) > 0)
data/geeqie-1.5.1+git20200808-2a27c9ab/src/metadata.c:575:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			len = strlen(ptr);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/metadata.c:942:13:  [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.
			gboolean equal;
data/geeqie-1.5.1+git20200808-2a27c9ab/src/metadata.c:948:8:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
			if (equal)
data/geeqie-1.5.1+git20200808-2a27c9ab/src/misc.c:39:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(text);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/osd.c:341: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).
		if (data && *data && limit > 0 && strlen(data) > limit + 3)
data/geeqie-1.5.1+git20200808-2a27c9ab/src/osd.c:381: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).
				guint len = strlen(extra);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/osd.c:417:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				pos += strlen(sep);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/osd.c:422:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			pos += strlen(data);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/pan-view/pan-util.c:175:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			l = strlen(buf);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/preferences.c:216:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (buf && strlen(buf) > 0)
data/geeqie-1.5.1+git20200808-2a27c9ab/src/preferences.c:1074: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).
	if (!new_text || strlen(new_text) < 1) return;
data/geeqie-1.5.1+git20200808-2a27c9ab/src/preferences.c:3757: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).
			line[strlen(line) - 1] = '\0';
data/geeqie-1.5.1+git20200808-2a27c9ab/src/remote.c:138: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(buffer) > 0)
data/geeqie-1.5.1+git20200808-2a27c9ab/src/remote.c:262: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).
	sun_path_len = MIN(strlen(path) + 1, UNIX_PATH_MAX);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/remote.c:263:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(addr.sun_path, path, sun_path_len);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/remote.c:311: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).
	sun_path_len = MIN(strlen(path) + 1, UNIX_PATH_MAX);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/remote.c:312:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(addr.sun_path, path, sun_path_len);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/remote.c:1372: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).
			    strncmp(remote_commands[i].opt_s, text, strlen(remote_commands[i].opt_s)) == 0)
data/geeqie-1.5.1+git20200808-2a27c9ab/src/remote.c:1374: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).
				if (offset) *offset = text + strlen(remote_commands[i].opt_s);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/remote.c:1378: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).
				 strncmp(remote_commands[i].opt_l, text, strlen(remote_commands[i].opt_l)) == 0)
data/geeqie-1.5.1+git20200808-2a27c9ab/src/remote.c:1380: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).
				if (offset) *offset = text + strlen(remote_commands[i].opt_l);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/remote.c:1534:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
			usleep((retry_count > 10) ? 500000 : 1000000);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/search.c:2157:65:  [1] (buffer) strlen:
  Does not handle 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 (match && sd->match_comment_enable && sd->search_comment && strlen(sd->search_comment))
data/geeqie-1.5.1+git20200808-2a27c9ab/src/search.c:2476:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			 strlen(fd->path) >= strlen(sd->search_dir_fd->path))
data/geeqie-1.5.1+git20200808-2a27c9ab/src/search.c:2476: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).
			 strlen(fd->path) >= strlen(sd->search_dir_fd->path))
data/geeqie-1.5.1+git20200808-2a27c9ab/src/search.c:2480:22:  [1] (buffer) strlen:
  Does not handle 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 = fd->path + strlen(sd->search_dir_fd->path);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/secure_save.c:214:15:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	saved_mask = umask(mask);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/secure_save.c:216:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(saved_mask);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/thumb_standard.c:144: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).
	md5_get_digest((guchar *)uri, strlen(uri), digest);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/thumb_standard.c:684: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).
	if (strncmp(tl->fd->path, thumb_cache, strlen(thumb_cache)) != 0)
data/geeqie-1.5.1+git20200808-2a27c9ab/src/thumb_standard.c:820: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 (strncmp(uri, "file:", strlen("file:")) == 0)
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_bookmark.c:162: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).
		path_ptr += strlen(MARKER_PATH);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_bookmark.c:181: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).
		icon_ptr += strlen(MARKER_ICON);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_bookmark.c:259:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (path && strlen(path) > 0) tab_completion_append_to_history(p->path_entry, path);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_bookmark.c:260:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (icon && strlen(icon) > 0) tab_completion_append_to_history(p->icon_entry, icon);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_bookmark.c:1004: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).
	if (new_text && strlen(new_text) > 0)
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_fileops.c:597:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(absolute, sl, len);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_fileops.c:842: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 (base) return g_strndup(path, (strlen(path)-strlen(base)) == 0 ? 1 : (strlen(path)-strlen(base)));
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_fileops.c:842: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).
	if (base) return g_strndup(path, (strlen(path)-strlen(base)) == 0 ? 1 : (strlen(path)-strlen(base)));
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_fileops.c:842:75:  [1] (buffer) strlen:
  Does not handle 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 (base) return g_strndup(path, (strlen(path)-strlen(base)) == 0 ? 1 : (strlen(path)-strlen(base)));
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_fileops.c:842:88:  [1] (buffer) strlen:
  Does not handle 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 (base) return g_strndup(path, (strlen(path)-strlen(base)) == 0 ? 1 : (strlen(path)-strlen(base)));
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_fileops.c:855:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	p = strlen(path);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_fileops.c:856:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	e = strlen(ext);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_fileops.c:870: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).
	return g_strndup(path, strlen(path) - (reg_ext == NULL ? 0 : strlen(reg_ext)));
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_fileops.c:870:63:  [1] (buffer) strlen:
  Does not handle 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 g_strndup(path, strlen(path) - (reg_ext == NULL ? 0 : strlen(reg_ext)));
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_fileops.c:927:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	l = strlen(path);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_help.c:130:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			l = strlen(s_buf);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_misc.c:1052:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(date_format) == 8)
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_misc.c:1506:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	l = strlen(token);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_misc.c:1538: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).
		*result = (const gchar *)work->data + strlen(token);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_misc.c:1539: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(*result) == 0) *result = NULL;
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_pathsel.c:134:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	l = strlen(file);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_pathsel.c:137: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).
	while (f_ptr < filter + strlen(filter))
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_pathsel.c:314: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).
		gtk_editable_select_region(GTK_EDITABLE(dd->entry), strlen(full_path) - strlen(basename), strlen(full_path));
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_pathsel.c:314:75:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		gtk_editable_select_region(GTK_EDITABLE(dd->entry), strlen(full_path) - strlen(basename), strlen(full_path));
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_pathsel.c:314:93:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		gtk_editable_select_region(GTK_EDITABLE(dd->entry), strlen(full_path) - strlen(basename), strlen(full_path));
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_pathsel.c:995:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(buf) > 0) dd->filter = g_strdup(buf);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_tabcomp.c:231:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		guint prefix_len = strlen(prefix);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_tabcomp.c:233: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(text) < prefix_len || strncmp(text, prefix, prefix_len))
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_tabcomp.c:292: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).
	gtk_editable_set_position(GTK_EDITABLE(td->entry), strlen(buf));
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_tabcomp.c:321:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	length = strlen(gtk_entry_get_text(GTK_ENTRY(td->entry)));
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_tabcomp.c:434:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		gtk_editable_set_position(GTK_EDITABLE(td->entry), strlen(entry_dir));
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_tabcomp.c:455: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).
			gtk_editable_set_position(GTK_EDITABLE(td->entry), strlen(entry_dir));
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_tabcomp.c:465: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).
		ptr = entry_dir + strlen(entry_dir) - 1;
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_tabcomp.c:471: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).
				gtk_editable_set_position(GTK_EDITABLE(td->entry), strlen(entry_dir));
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_tabcomp.c:490: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).
				gtk_editable_set_position(GTK_EDITABLE(td->entry), strlen(buf));
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_tabcomp.c:509: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).
			gtk_editable_set_position(GTK_EDITABLE(td->entry), strlen(buf));
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_tabcomp.c:520:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(entry_dir) == 0)
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_tabcomp.c:530:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		gint l = strlen(entry_file);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_tabcomp.c:557: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).
				gtk_editable_set_position(GTK_EDITABLE(td->entry), strlen(buf));
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_tabcomp.c:565: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).
				gsize c = strlen(entry_file);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_tabcomp.c:576:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						if (strlen(file) < c || strncmp(test_file, file, c) != 0)
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_tabcomp.c:593: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).
					gtk_editable_set_position(GTK_EDITABLE(td->entry), strlen(buf));
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_tabcomp.c:904:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	l = strlen(path);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_tabcomp.c:968:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(path) == 0) path = NULL;
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_tree_edit.c:247:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	gtk_editable_select_region(GTK_EDITABLE(ted->entry), 0, strlen(ted->old_name));
data/geeqie-1.5.1+git20200808-2a27c9ab/src/ui_utildlg.c:614: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).
		gtk_editable_set_position(GTK_EDITABLE(fdlg->entry), strlen(fdlg->dest_path));
data/geeqie-1.5.1+git20200808-2a27c9ab/src/utilops.c:222:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	n = strlen(name);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/utilops.c:229: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 (ext) n -= strlen(ext);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/utilops.c:2787: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).
	gint orig_len = strlen(ud->dir_fd->path);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/view_dir_tree.c:509: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).
	    strncmp(nd->fd->path, target_fd->path, strlen(nd->fd->path)) == 0)
data/geeqie-1.5.1+git20200808-2a27c9ab/src/view_dir_tree.c:513: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).
		n = strlen(nd->fd->path);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/view_dir_tree.c:530: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).
		n = strlen(nd->fd->path) + 1;
data/geeqie-1.5.1+git20200808-2a27c9ab/src/zonedetect.c:1165: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).
            size_t partLength = strlen(strings[i]);
data/geeqie-1.5.1+git20200808-2a27c9ab/src/zonedetect.c:1183: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).
            strcat(output + strlen(output), strings[i]);

ANALYSIS SUMMARY:

Hits = 284
Lines analyzed = 136556 in approximately 3.18 seconds (42876 lines/second)
Physical Source Lines of Code (SLOC) = 104444
Hits@level = [0]  29 [1] 126 [2] 110 [3]  27 [4]  13 [5]   8
Hits@level+ = [0+] 313 [1+] 284 [2+] 158 [3+]  48 [4+]  21 [5+]   8
Hits/KSLOC@level+ = [0+] 2.99682 [1+] 2.71916 [2+] 1.51277 [3+] 0.459576 [4+] 0.201065 [5+] 0.0765961
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.