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/geda-gaf-1.8.2/missing.h
Examining data/geda-gaf-1.8.2/intl/plural-exp.h
Examining data/geda-gaf-1.8.2/intl/gettext.c
Examining data/geda-gaf-1.8.2/intl/dcigettext.c
Examining data/geda-gaf-1.8.2/intl/printf-parse.c
Examining data/geda-gaf-1.8.2/intl/intl-exports.c
Examining data/geda-gaf-1.8.2/intl/vasnwprintf.h
Examining data/geda-gaf-1.8.2/intl/printf.c
Examining data/geda-gaf-1.8.2/intl/gettextP.h
Examining data/geda-gaf-1.8.2/intl/ngettext.c
Examining data/geda-gaf-1.8.2/intl/lock.c
Examining data/geda-gaf-1.8.2/intl/loadinfo.h
Examining data/geda-gaf-1.8.2/intl/localcharset.c
Examining data/geda-gaf-1.8.2/intl/version.c
Examining data/geda-gaf-1.8.2/intl/wprintf-parse.h
Examining data/geda-gaf-1.8.2/intl/finddomain.c
Examining data/geda-gaf-1.8.2/intl/lock.h
Examining data/geda-gaf-1.8.2/intl/langprefs.c
Examining data/geda-gaf-1.8.2/intl/printf-args.h
Examining data/geda-gaf-1.8.2/intl/explodename.c
Examining data/geda-gaf-1.8.2/intl/l10nflist.c
Examining data/geda-gaf-1.8.2/intl/dgettext.c
Examining data/geda-gaf-1.8.2/intl/vasnprintf.h
Examining data/geda-gaf-1.8.2/intl/printf-parse.h
Examining data/geda-gaf-1.8.2/intl/vasnprintf.c
Examining data/geda-gaf-1.8.2/intl/loadmsgcat.c
Examining data/geda-gaf-1.8.2/intl/os2compat.h
Examining data/geda-gaf-1.8.2/intl/eval-plural.h
Examining data/geda-gaf-1.8.2/intl/xsize.h
Examining data/geda-gaf-1.8.2/intl/dcngettext.c
Examining data/geda-gaf-1.8.2/intl/dcgettext.c
Examining data/geda-gaf-1.8.2/intl/hash-string.h
Examining data/geda-gaf-1.8.2/intl/dngettext.c
Examining data/geda-gaf-1.8.2/intl/gmo.h
Examining data/geda-gaf-1.8.2/intl/plural-exp.c
Examining data/geda-gaf-1.8.2/intl/localcharset.h
Examining data/geda-gaf-1.8.2/intl/localealias.c
Examining data/geda-gaf-1.8.2/intl/plural.c
Examining data/geda-gaf-1.8.2/intl/bindtextdom.c
Examining data/geda-gaf-1.8.2/intl/intl-compat.c
Examining data/geda-gaf-1.8.2/intl/log.c
Examining data/geda-gaf-1.8.2/intl/printf-args.c
Examining data/geda-gaf-1.8.2/intl/relocatable.c
Examining data/geda-gaf-1.8.2/intl/os2compat.c
Examining data/geda-gaf-1.8.2/intl/export.h
Examining data/geda-gaf-1.8.2/intl/localename.c
Examining data/geda-gaf-1.8.2/intl/hash-string.c
Examining data/geda-gaf-1.8.2/intl/relocatable.h
Examining data/geda-gaf-1.8.2/intl/textdomain.c
Examining data/geda-gaf-1.8.2/intl/osdep.c
Examining data/geda-gaf-1.8.2/libgeda/src/s_clib.c
Examining data/geda-gaf-1.8.2/libgeda/src/m_line.c
Examining data/geda-gaf-1.8.2/libgeda/src/s_cue.c
Examining data/geda-gaf-1.8.2/libgeda/src/s_weakref.c
Examining data/geda-gaf-1.8.2/libgeda/src/scheme_complex.c
Examining data/geda-gaf-1.8.2/libgeda/src/o_arc_basic.c
Examining data/geda-gaf-1.8.2/libgeda/src/o_picture.c
Examining data/geda-gaf-1.8.2/libgeda/src/g_register.c
Examining data/geda-gaf-1.8.2/libgeda/src/o_selection.c
Examining data/geda-gaf-1.8.2/libgeda/src/s_papersizes.c
Examining data/geda-gaf-1.8.2/libgeda/src/geda_list.c
Examining data/geda-gaf-1.8.2/libgeda/src/o_bus_basic.c
Examining data/geda-gaf-1.8.2/libgeda/src/f_basic.c
Examining data/geda-gaf-1.8.2/libgeda/src/s_slib.c
Examining data/geda-gaf-1.8.2/libgeda/src/s_basic.c
Examining data/geda-gaf-1.8.2/libgeda/src/scheme_os.c
Examining data/geda-gaf-1.8.2/libgeda/src/o_net_basic.c
Examining data/geda-gaf-1.8.2/libgeda/src/o_line_basic.c
Examining data/geda-gaf-1.8.2/libgeda/src/i_vars.c
Examining data/geda-gaf-1.8.2/libgeda/src/s_toplevel.c
Examining data/geda-gaf-1.8.2/libgeda/src/o_path_basic.c
Examining data/geda-gaf-1.8.2/libgeda/src/o_box_basic.c
Examining data/geda-gaf-1.8.2/libgeda/src/scheme_smob.c
Examining data/geda-gaf-1.8.2/libgeda/src/s_tile.c
Examining data/geda-gaf-1.8.2/libgeda/src/scheme_page.c
Examining data/geda-gaf-1.8.2/libgeda/src/m_basic.c
Examining data/geda-gaf-1.8.2/libgeda/src/o_embed.c
Examining data/geda-gaf-1.8.2/libgeda/src/scheme_toplevel.c
Examining data/geda-gaf-1.8.2/libgeda/src/m_circle.c
Examining data/geda-gaf-1.8.2/libgeda/src/s_log.c
Examining data/geda-gaf-1.8.2/libgeda/src/scheme_object.c
Examining data/geda-gaf-1.8.2/libgeda/src/g_basic.c
Examining data/geda-gaf-1.8.2/libgeda/src/m_hatch.c
Examining data/geda-gaf-1.8.2/libgeda/src/g_rc.c
Examining data/geda-gaf-1.8.2/libgeda/src/o_list.c
Examining data/geda-gaf-1.8.2/libgeda/src/m_bounds.c
Examining data/geda-gaf-1.8.2/libgeda/src/s_slot.c
Examining data/geda-gaf-1.8.2/libgeda/src/s_conn.c
Examining data/geda-gaf-1.8.2/libgeda/src/edaerrors.c
Examining data/geda-gaf-1.8.2/libgeda/src/o_circle_basic.c
Examining data/geda-gaf-1.8.2/libgeda/src/s_attrib.c
Examining data/geda-gaf-1.8.2/libgeda/src/scheme_init.c
Examining data/geda-gaf-1.8.2/libgeda/src/s_page.c
Examining data/geda-gaf-1.8.2/libgeda/src/o_complex_basic.c
Examining data/geda-gaf-1.8.2/libgeda/src/scheme_attrib.c
Examining data/geda-gaf-1.8.2/libgeda/src/o_attrib.c
Examining data/geda-gaf-1.8.2/libgeda/src/f_print.c
Examining data/geda-gaf-1.8.2/libgeda/src/s_encoding.c
Examining data/geda-gaf-1.8.2/libgeda/src/o_pin_basic.c
Examining data/geda-gaf-1.8.2/libgeda/src/m_polygon.c
Examining data/geda-gaf-1.8.2/libgeda/src/o_basic.c
Examining data/geda-gaf-1.8.2/libgeda/src/u_basic.c
Examining data/geda-gaf-1.8.2/libgeda/src/s_textbuffer.c
Examining data/geda-gaf-1.8.2/libgeda/src/s_menu.c
Examining data/geda-gaf-1.8.2/libgeda/src/libgeda.c
Examining data/geda-gaf-1.8.2/libgeda/src/m_box.c
Examining data/geda-gaf-1.8.2/libgeda/src/o_text_basic.c
Examining data/geda-gaf-1.8.2/libgeda/src/s_path.c
Examining data/geda-gaf-1.8.2/libgeda/src/m_transform.c
Examining data/geda-gaf-1.8.2/libgeda/src/s_undo.c
Examining data/geda-gaf-1.8.2/libgeda/src/s_color.c
Examining data/geda-gaf-1.8.2/libgeda/src/a_basic.c
Examining data/geda-gaf-1.8.2/libgeda/src/scheme_deprecated.c
Examining data/geda-gaf-1.8.2/libgeda/src/s_hierarchy.c
Examining data/geda-gaf-1.8.2/libgeda/include/libgedaguile_priv.h
Examining data/geda-gaf-1.8.2/libgeda/include/libgeda/libgeda.h
Examining data/geda-gaf-1.8.2/libgeda/include/libgeda/funcs.h
Examining data/geda-gaf-1.8.2/libgeda/include/libgeda/struct.h
Examining data/geda-gaf-1.8.2/libgeda/include/libgeda/papersizes.h
Examining data/geda-gaf-1.8.2/libgeda/include/libgeda/edaerrors.h
Examining data/geda-gaf-1.8.2/libgeda/include/libgeda/defines.h
Examining data/geda-gaf-1.8.2/libgeda/include/libgeda/globals.h
Examining data/geda-gaf-1.8.2/libgeda/include/libgeda/colors.h
Examining data/geda-gaf-1.8.2/libgeda/include/libgeda/libgedaguile.h
Examining data/geda-gaf-1.8.2/libgeda/include/libgeda/prototype.h
Examining data/geda-gaf-1.8.2/libgeda/include/libgeda/o_types.h
Examining data/geda-gaf-1.8.2/libgeda/include/libgeda/geda_list.h
Examining data/geda-gaf-1.8.2/libgeda/include/i_vars_priv.h
Examining data/geda-gaf-1.8.2/libgeda/include/libgeda_priv.h
Examining data/geda-gaf-1.8.2/libgeda/include/prototype_priv.h
Examining data/geda-gaf-1.8.2/libgeda/include/gettext_priv.h
Examining data/geda-gaf-1.8.2/libgeda/include/struct_priv.h
Examining data/geda-gaf-1.8.2/libgeda/shell/shell.c
Examining data/geda-gaf-1.8.2/version.h
Examining data/geda-gaf-1.8.2/utils/src/gsch2pcb.c
Examining data/geda-gaf-1.8.2/utils/src/char_width.c
Examining data/geda-gaf-1.8.2/utils/src/grenum.h
Examining data/geda-gaf-1.8.2/utils/src/convert_sym.c
Examining data/geda-gaf-1.8.2/utils/src/gmk_sym.c
Examining data/geda-gaf-1.8.2/utils/src/smash_megafile.c
Examining data/geda-gaf-1.8.2/utils/src/olib.c
Examining data/geda-gaf-1.8.2/utils/src/geda_sym_format.h
Examining data/geda-gaf-1.8.2/utils/src/grenum.c
Examining data/geda-gaf-1.8.2/utils/src/sarlacc_schem.c
Examining data/geda-gaf-1.8.2/utils/include/i_vars.h
Examining data/geda-gaf-1.8.2/utils/include/papersizes.h
Examining data/geda-gaf-1.8.2/utils/include/globals.h
Examining data/geda-gaf-1.8.2/utils/include/prototype.h
Examining data/geda-gaf-1.8.2/utils/gschlas/gschlas.c
Examining data/geda-gaf-1.8.2/utils/gschlas/g_register.c
Examining data/geda-gaf-1.8.2/utils/gschlas/i_vars.c
Examining data/geda-gaf-1.8.2/utils/gschlas/g_rc.c
Examining data/geda-gaf-1.8.2/utils/gschlas/s_util.c
Examining data/geda-gaf-1.8.2/utils/gschlas/parsecmd.c
Examining data/geda-gaf-1.8.2/utils/gschlas/globals.c
Examining data/geda-gaf-1.8.2/gattrib/src/gattrib.c
Examining data/geda-gaf-1.8.2/gattrib/src/gtksheet_2_2.c
Examining data/geda-gaf-1.8.2/gattrib/src/s_object.c
Examining data/geda-gaf-1.8.2/gattrib/src/listsort.c
Examining data/geda-gaf-1.8.2/gattrib/src/f_export.c
Examining data/geda-gaf-1.8.2/gattrib/src/i_basic.c
Examining data/geda-gaf-1.8.2/gattrib/src/g_register.c
Examining data/geda-gaf-1.8.2/gattrib/src/i_vars.c
Examining data/geda-gaf-1.8.2/gattrib/src/s_toplevel.c
Examining data/geda-gaf-1.8.2/gattrib/src/x_gtksheet.c
Examining data/geda-gaf-1.8.2/gattrib/src/s_misc.c
Examining data/geda-gaf-1.8.2/gattrib/src/s_table.c
Examining data/geda-gaf-1.8.2/gattrib/src/g_rc.c
Examining data/geda-gaf-1.8.2/gattrib/src/x_fileselect.c
Examining data/geda-gaf-1.8.2/gattrib/src/s_rename.c
Examining data/geda-gaf-1.8.2/gattrib/src/x_dialog.c
Examining data/geda-gaf-1.8.2/gattrib/src/s_attrib.c
Examining data/geda-gaf-1.8.2/gattrib/src/s_sheet_data.c
Examining data/geda-gaf-1.8.2/gattrib/src/s_visibility.c
Examining data/geda-gaf-1.8.2/gattrib/src/s_string_list.c
Examining data/geda-gaf-1.8.2/gattrib/src/gtkextra-marshal.c
Examining data/geda-gaf-1.8.2/gattrib/src/parsecmd.c
Examining data/geda-gaf-1.8.2/gattrib/src/globals.c
Examining data/geda-gaf-1.8.2/gattrib/src/x_window.c
Examining data/geda-gaf-1.8.2/gattrib/include/x_states.h
Examining data/geda-gaf-1.8.2/gattrib/include/i_vars.h
Examining data/geda-gaf-1.8.2/gattrib/include/struct.h
Examining data/geda-gaf-1.8.2/gattrib/include/globals.h
Examining data/geda-gaf-1.8.2/gattrib/include/prototype.h
Examining data/geda-gaf-1.8.2/gattrib/include/gtkextra-marshal.h
Examining data/geda-gaf-1.8.2/gattrib/include/gtksheet_2_2.h
Examining data/geda-gaf-1.8.2/gschem/src/o_move.c
Examining data/geda-gaf-1.8.2/gschem/src/g_funcs.c
Examining data/geda-gaf-1.8.2/gschem/src/o_circle.c
Examining data/geda-gaf-1.8.2/gschem/src/x_preview.c
Examining data/geda-gaf-1.8.2/gschem/src/o_line.c
Examining data/geda-gaf-1.8.2/gschem/src/x_rc.c
Examining data/geda-gaf-1.8.2/gschem/src/g_keys.c
Examining data/geda-gaf-1.8.2/gschem/src/g_select.c
Examining data/geda-gaf-1.8.2/gschem/src/o_text.c
Examining data/geda-gaf-1.8.2/gschem/src/o_picture.c
Examining data/geda-gaf-1.8.2/gschem/src/i_basic.c
Examining data/geda-gaf-1.8.2/gschem/src/g_register.c
Examining data/geda-gaf-1.8.2/gschem/src/gschem_toplevel.c
Examining data/geda-gaf-1.8.2/gschem/src/x_autonumber.c
Examining data/geda-gaf-1.8.2/gschem/src/o_slot.c
Examining data/geda-gaf-1.8.2/gschem/src/s_stretch.c
Examining data/geda-gaf-1.8.2/gschem/src/o_copy.c
Examining data/geda-gaf-1.8.2/gschem/src/o_undo.c
Examining data/geda-gaf-1.8.2/gschem/src/i_callbacks.c
Examining data/geda-gaf-1.8.2/gschem/src/i_vars.c
Examining data/geda-gaf-1.8.2/gschem/src/x_grid.c
Examining data/geda-gaf-1.8.2/gschem/src/x_print.c
Examining data/geda-gaf-1.8.2/gschem/src/x_multiattrib.c
Examining data/geda-gaf-1.8.2/gschem/src/o_pin.c
Examining data/geda-gaf-1.8.2/gschem/src/m_basic.c
Examining data/geda-gaf-1.8.2/gschem/src/gschem_cairo.c
Examining data/geda-gaf-1.8.2/gschem/src/o_place.c
Examining data/geda-gaf-1.8.2/gschem/src/g_rc.c
Examining data/geda-gaf-1.8.2/gschem/src/gschem_accel_label.c
Examining data/geda-gaf-1.8.2/gschem/src/o_misc.c
Examining data/geda-gaf-1.8.2/gschem/src/x_misc.c
Examining data/geda-gaf-1.8.2/gschem/src/x_attribedit.c
Examining data/geda-gaf-1.8.2/gschem/src/x_stroke.c
Examining data/geda-gaf-1.8.2/gschem/src/g_util.c
Examining data/geda-gaf-1.8.2/gschem/src/x_fileselect.c
Examining data/geda-gaf-1.8.2/gschem/src/x_image.c
Examining data/geda-gaf-1.8.2/gschem/src/gschem_action.c
Examining data/geda-gaf-1.8.2/gschem/src/a_pan.c
Examining data/geda-gaf-1.8.2/gschem/src/g_window.c
Examining data/geda-gaf-1.8.2/gschem/src/x_dialog.c
Examining data/geda-gaf-1.8.2/gschem/src/o_find.c
Examining data/geda-gaf-1.8.2/gschem/src/o_delete.c
Examining data/geda-gaf-1.8.2/gschem/src/gschem.c
Examining data/geda-gaf-1.8.2/gschem/src/o_grips.c
Examining data/geda-gaf-1.8.2/gschem/src/x_compselect.c
Examining data/geda-gaf-1.8.2/gschem/src/g_hook.c
Examining data/geda-gaf-1.8.2/gschem/src/x_color.c
Examining data/geda-gaf-1.8.2/gschem/src/gschem_pango.c
Examining data/geda-gaf-1.8.2/gschem/src/o_path.c
Examining data/geda-gaf-1.8.2/gschem/src/x_clipboard.c
Examining data/geda-gaf-1.8.2/gschem/src/o_attrib.c
Examining data/geda-gaf-1.8.2/gschem/src/gschem_dialog.c
Examining data/geda-gaf-1.8.2/gschem/src/o_bus.c
Examining data/geda-gaf-1.8.2/gschem/src/o_arc.c
Examining data/geda-gaf-1.8.2/gschem/src/x_menus.c
Examining data/geda-gaf-1.8.2/gschem/src/x_script.c
Examining data/geda-gaf-1.8.2/gschem/src/o_basic.c
Examining data/geda-gaf-1.8.2/gschem/src/x_basic.c
Examining data/geda-gaf-1.8.2/gschem/src/o_complex.c
Examining data/geda-gaf-1.8.2/gschem/src/parsecmd.c
Examining data/geda-gaf-1.8.2/gschem/src/o_select.c
Examining data/geda-gaf-1.8.2/gschem/src/globals.c
Examining data/geda-gaf-1.8.2/gschem/src/x_window.c
Examining data/geda-gaf-1.8.2/gschem/src/x_pagesel.c
Examining data/geda-gaf-1.8.2/gschem/src/x_event.c
Examining data/geda-gaf-1.8.2/gschem/src/a_zoom.c
Examining data/geda-gaf-1.8.2/gschem/src/o_net.c
Examining data/geda-gaf-1.8.2/gschem/src/x_log.c
Examining data/geda-gaf-1.8.2/gschem/src/g_attrib.c
Examining data/geda-gaf-1.8.2/gschem/src/o_box.c
Examining data/geda-gaf-1.8.2/gschem/src/o_cue.c
Examining data/geda-gaf-1.8.2/gschem/src/o_buffer.c
Examining data/geda-gaf-1.8.2/gschem/include/x_pagesel.h
Examining data/geda-gaf-1.8.2/gschem/include/x_states.h
Examining data/geda-gaf-1.8.2/gschem/include/gschem_pango.h
Examining data/geda-gaf-1.8.2/gschem/include/i_vars.h
Examining data/geda-gaf-1.8.2/gschem/include/gschem_action.h
Examining data/geda-gaf-1.8.2/gschem/include/x_print.h
Examining data/geda-gaf-1.8.2/gschem/include/x_multiattrib.h
Examining data/geda-gaf-1.8.2/gschem/include/gschem_defines.h
Examining data/geda-gaf-1.8.2/gschem/include/x_preview.h
Examining data/geda-gaf-1.8.2/gschem/include/globals.h
Examining data/geda-gaf-1.8.2/gschem/include/gschem_dialog.h
Examining data/geda-gaf-1.8.2/gschem/include/gschem_struct.h
Examining data/geda-gaf-1.8.2/gschem/include/x_dialog.h
Examining data/geda-gaf-1.8.2/gschem/include/prototype.h
Examining data/geda-gaf-1.8.2/gschem/include/x_log.h
Examining data/geda-gaf-1.8.2/gschem/include/gschem.h
Examining data/geda-gaf-1.8.2/gschem/include/gschem_accel_label.h
Examining data/geda-gaf-1.8.2/gschem/include/x_compselect.h
Examining data/geda-gaf-1.8.2/gschem/include/gettext.h
Examining data/geda-gaf-1.8.2/gsymcheck/src/g_register.c
Examining data/geda-gaf-1.8.2/gsymcheck/src/i_vars.c
Examining data/geda-gaf-1.8.2/gsymcheck/src/s_symstruct.c
Examining data/geda-gaf-1.8.2/gsymcheck/src/s_log.c
Examining data/geda-gaf-1.8.2/gsymcheck/src/g_rc.c
Examining data/geda-gaf-1.8.2/gsymcheck/src/s_check.c
Examining data/geda-gaf-1.8.2/gsymcheck/src/parsecmd.c
Examining data/geda-gaf-1.8.2/gsymcheck/src/globals.c
Examining data/geda-gaf-1.8.2/gsymcheck/src/gsymcheck.c
Examining data/geda-gaf-1.8.2/gsymcheck/include/i_vars.h
Examining data/geda-gaf-1.8.2/gsymcheck/include/struct.h
Examining data/geda-gaf-1.8.2/gsymcheck/include/papersizes.h
Examining data/geda-gaf-1.8.2/gsymcheck/include/globals.h
Examining data/geda-gaf-1.8.2/gsymcheck/include/prototype.h
Examining data/geda-gaf-1.8.2/gnetlist/src/g_register.c
Examining data/geda-gaf-1.8.2/gnetlist/src/g_netlist.c
Examining data/geda-gaf-1.8.2/gnetlist/src/i_vars.c
Examining data/geda-gaf-1.8.2/gnetlist/src/gnetlist.c
Examining data/geda-gaf-1.8.2/gnetlist/src/s_cpinlist.c
Examining data/geda-gaf-1.8.2/gnetlist/src/s_misc.c
Examining data/geda-gaf-1.8.2/gnetlist/src/s_net.c
Examining data/geda-gaf-1.8.2/gnetlist/src/g_rc.c
Examining data/geda-gaf-1.8.2/gnetlist/src/s_netlist.c
Examining data/geda-gaf-1.8.2/gnetlist/src/s_rename.c
Examining data/geda-gaf-1.8.2/gnetlist/src/parsecmd.c
Examining data/geda-gaf-1.8.2/gnetlist/src/s_netattrib.c
Examining data/geda-gaf-1.8.2/gnetlist/src/globals.c
Examining data/geda-gaf-1.8.2/gnetlist/src/vams_misc.c
Examining data/geda-gaf-1.8.2/gnetlist/src/s_hierarchy.c
Examining data/geda-gaf-1.8.2/gnetlist/src/s_traverse.c
Examining data/geda-gaf-1.8.2/gnetlist/include/i_vars.h
Examining data/geda-gaf-1.8.2/gnetlist/include/papersizes.h
Examining data/geda-gaf-1.8.2/gnetlist/include/globals.h
Examining data/geda-gaf-1.8.2/gnetlist/include/prototype.h
Examining data/geda-gaf-1.8.2/gnetlist/utils/mk_verilog_syms.c

FINAL RESULTS:

data/geda-gaf-1.8.2/gschem/src/o_misc.c:725:15:  [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(backup_filename, (S_IWRITE|S_IWGRP|S_IWOTH) &
data/geda-gaf-1.8.2/gschem/src/o_misc.c:746:15:  [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(backup_filename,mask) != 0) {
data/geda-gaf-1.8.2/libgeda/src/f_basic.c:404:6:  [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(backup_filename, S_IREAD|S_IWRITE) != 0) {
data/geda-gaf-1.8.2/libgeda/src/f_basic.c:420:6:  [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(backup_filename, mask) != 0) {
data/geda-gaf-1.8.2/libgeda/src/f_basic.c:467:5:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    chmod (real_filename, st.st_mode);
data/geda-gaf-1.8.2/libgeda/src/f_basic.c:469: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 (real_filename, st.st_uid, st.st_gid)) {
data/geda-gaf-1.8.2/gnetlist/src/g_netlist.c:289:8:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
			    sscanf(n_current->connected_to,
data/geda-gaf-1.8.2/gnetlist/src/g_netlist.c:388:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
        sscanf(n_current->connected_to,
data/geda-gaf-1.8.2/gnetlist/src/s_hierarchy.c:315:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		    sscanf(n_current->connected_to, "%s %s", uref, pin);
data/geda-gaf-1.8.2/gnetlist/src/s_hierarchy.c:569:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		    sscanf(n_current->connected_to, "%s %s", uref, pin);
data/geda-gaf-1.8.2/gnetlist/utils/mk_verilog_syms.c:111:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(name, "sym/%s%u-%u.sym",
data/geda-gaf-1.8.2/gschem/src/x_misc.c:63:11:  [4] (shell) ShellExecute:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    (int) ShellExecute (NULL, /* window handle */
data/geda-gaf-1.8.2/intl/dcigettext.c:800:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		      strcpy (new_localename, localename);
data/geda-gaf-1.8.2/intl/langprefs.c:107:8:  [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 (p, buf);
data/geda-gaf-1.8.2/intl/localcharset.c:197:8:  [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 (res_ptr + res_size - (l2 + 1) - (l1 + 1), buf1);
data/geda-gaf-1.8.2/intl/localcharset.c:198:8:  [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 (res_ptr + res_size - (l2 + 1), buf2);
data/geda-gaf-1.8.2/intl/localename.c:910: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 (name, legacy_table[i1].unixy);
data/geda-gaf-1.8.2/intl/localename.c:934: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 (name, langtag_table[i1].unixy);
data/geda-gaf-1.8.2/intl/localename.c:954: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 (name + 3, script_table[i1].unixy);
data/geda-gaf-1.8.2/intl/log.c:86:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy (last_logfilename, logfilename);
data/geda-gaf-1.8.2/intl/os2compat.c:97:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (libintl_nl_default_dirname, _nlos2_localedir);
data/geda-gaf-1.8.2/intl/plural.c:527:21:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define YYFPRINTF fprintf
data/geda-gaf-1.8.2/intl/printf.c:98:12:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    return vfprintf (stream, format, args);
data/geda-gaf-1.8.2/intl/printf.c:158:12:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
    return vsprintf (resultbuf, format, args);
data/geda-gaf-1.8.2/intl/printf.c:198:28:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#  define system_vsnprintf vsnprintf
data/geda-gaf-1.8.2/intl/printf.c:304:28:  [4] (buffer) vswprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#  define system_vswprintf vswprintf
data/geda-gaf-1.8.2/intl/printf.c:312:12:  [4] (format) vfwprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    return vfwprintf (stream, format, args);
data/geda-gaf-1.8.2/intl/relocatable.c:459:8:  [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 (result + curr_prefix_len, pathname_tail);
data/geda-gaf-1.8.2/intl/vasnprintf.c:89:20:  [4] (buffer) swprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#  define SNPRINTF swprintf
data/geda-gaf-1.8.2/intl/vasnprintf.c:100:20:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#  define SNPRINTF _snprintf
data/geda-gaf-1.8.2/intl/vasnprintf.c:103:20:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#  define SNPRINTF snprintf
data/geda-gaf-1.8.2/intl/vasnprintf.c:621:12:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			count = sprintf (tmp, buf, arg);		    \
data/geda-gaf-1.8.2/intl/vasnprintf.c:624:12:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			count = sprintf (tmp, buf, prefixes[0], arg);	    \
data/geda-gaf-1.8.2/intl/vasnprintf.c:627:12:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			count = sprintf (tmp, buf, prefixes[0], prefixes[1],\
data/geda-gaf-1.8.2/intl/vasnprintf.h:37:22:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define __printf__ printf
data/geda-gaf-1.8.2/libgeda/src/f_print.c:147:4:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
	  getlogin(),
data/geda-gaf-1.8.2/libgeda/src/f_print.c:404:8:  [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.
  fp = popen (command, "w");
data/geda-gaf-1.8.2/libgeda/src/o_complex_basic.c:652:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  if (sscanf(buf, "%c %d %d %d %d %d %s\n",
data/geda-gaf-1.8.2/utils/src/convert_sym.c:851:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(text, "pinnumber=%s", &text2[2]);
data/geda-gaf-1.8.2/utils/src/convert_sym.c:1354:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(text, "netname=%s", text2);
data/geda-gaf-1.8.2/utils/src/convert_sym.c:1364:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(text, "refdes=%s", text2);
data/geda-gaf-1.8.2/utils/src/convert_sym.c:1373:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(text, "pinlabel=%s", text2);
data/geda-gaf-1.8.2/utils/src/convert_sym.c:1378:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(text,text2);     /* don't need to do anything, just copy */
data/geda-gaf-1.8.2/utils/src/convert_sym.c:1527:12:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  result = fscanf(fp,"%*d %s %u %d %d %d %g %*s\n",
data/geda-gaf-1.8.2/utils/src/convert_sym.c:1534:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(lib, text);
data/geda-gaf-1.8.2/utils/src/convert_sym.c:1535:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(name, &text[index+1]);
data/geda-gaf-1.8.2/utils/src/convert_sym.c:1538:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(name, text);
data/geda-gaf-1.8.2/utils/src/convert_sym.c:1570:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(symName, "%s-%d.sym",name,extension);
data/geda-gaf-1.8.2/utils/src/convert_sym.c:1850:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(text2, tmpValue);
data/geda-gaf-1.8.2/utils/src/convert_sym.c:1901:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(text, "%s=%s", tmpName, tmpValue);
data/geda-gaf-1.8.2/utils/src/gmk_sym.c:257:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(pField[fld_cnt++], temp);
data/geda-gaf-1.8.2/utils/src/gmk_sym.c:415: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(device,pFields[0]);
data/geda-gaf-1.8.2/utils/src/gmk_sym.c:416: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(name,pFields[1]);
data/geda-gaf-1.8.2/utils/src/gmk_sym.c:417: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(name_pos,pFields[2]);
data/geda-gaf-1.8.2/utils/src/gmk_sym.c:428: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(uref,pFields[5]);
data/geda-gaf-1.8.2/utils/src/gmk_sym.c:435:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(footprint,pFields[6]);
data/geda-gaf-1.8.2/utils/src/gmk_sym.c:536: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(pin_name,pFields[0]);
data/geda-gaf-1.8.2/utils/src/gmk_sym.c:537: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(pin,pFields[1]); 	      /* get pin number */
data/geda-gaf-1.8.2/utils/src/grenum.c:115: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(&infilename[0],argv[optind]);	/*Copy the filename to the buffer*/
data/geda-gaf-1.8.2/utils/src/grenum.c:121: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(&outfilename[0],&infilename[0]);
data/geda-gaf-1.8.2/utils/src/grenum.c:150:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
					strcpy(&refdes_db[refdes.prefixes].prefix[0],&refdes.prefix[0]);	/*Register the prefix to the database*/
data/geda-gaf-1.8.2/utils/src/grenum.c:187:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
					strcpy(&refdes_db[refdes.prefixes].prefix[0],&refdes.prefix[0]);
data/geda-gaf-1.8.2/utils/src/grenum.c:206:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(buff, "refdes=%s%d\n", &refdes.prefix[0], refdes.value);
data/geda-gaf-1.8.2/utils/src/grenum.c:224: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(&buff[0],&infilename[0]); /*buff has the original infilename*/
data/geda-gaf-1.8.2/utils/src/grenum.c:344:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(&refdes->prefix[0],&buff[0]);	/*Copy to refdes structure*/
data/geda-gaf-1.8.2/utils/src/gsch2pcb.c:585:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      fprintf (f_out, fmt,
data/geda-gaf-1.8.2/utils/src/gsch2pcb.c:955:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      fprintf (f_out, fmt,
data/geda-gaf-1.8.2/utils/src/gsch2pcb.c:1036:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      fprintf (f_out, fmt,
data/geda-gaf-1.8.2/utils/src/olib.c:1235: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(part_aliases[0],strip_invalid(yytext));
data/geda-gaf-1.8.2/utils/src/olib.c:1260: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(ref_str,strip_quotes(yytext));
data/geda-gaf-1.8.2/utils/src/olib.c:1272: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(part_aliases[aliascount], strip_invalid(yytext));
data/geda-gaf-1.8.2/utils/src/olib.c:1695: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(part_aliases[0],strip_invalid(yytext));
data/geda-gaf-1.8.2/utils/src/olib.c:2941: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(sym_version,EDA_VERSION_NEW);	  /* handle new gEDA version by default */
data/geda-gaf-1.8.2/utils/src/olib.c:2954:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(sym_version,EDA_VERSION_OLD);
data/geda-gaf-1.8.2/utils/src/olib.c:2978: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(fnlib,argv[optind]);
data/geda-gaf-1.8.2/utils/src/olib.c:2984: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(sym_prefix,argv[optind+1]);
data/geda-gaf-1.8.2/utils/src/sarlacc_schem.c:396:8:  [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(attribsav, attrib);
data/geda-gaf-1.8.2/utils/src/smash_megafile.c:66: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(name,argv[1]);
data/geda-gaf-1.8.2/utils/src/smash_megafile.c:92:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
      sscanf(buffer,"%s %d",name,&len);
data/geda-gaf-1.8.2/utils/src/smash_megafile.c:106:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(output_name, argv[1]);
data/geda-gaf-1.8.2/utils/src/smash_megafile.c:108:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(output_name, name);
data/geda-gaf-1.8.2/gattrib/src/gattrib.c:310:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if(getenv("GUILE_WARN_DEPRECATED")==NULL)
data/geda-gaf-1.8.2/gattrib/src/parsecmd.c:134:12:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      ch = getopt_long(argc, argv, "hqv", long_options, &option_index);
data/geda-gaf-1.8.2/gattrib/src/parsecmd.c:139:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, OPTIONS)) != -1) {
data/geda-gaf-1.8.2/gnetlist/src/gnetlist.c:331:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if(getenv("GUILE_WARN_DEPRECATED")==NULL)
data/geda-gaf-1.8.2/gnetlist/src/parsecmd.c:141:16:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while ((ch = getopt_long(argc, argv, OPTIONS, long_options, NULL /* &option_index */)) != -1) {
data/geda-gaf-1.8.2/gnetlist/src/parsecmd.c:143:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while ((ch = getopt(argc, argv, OPTIONS)) != -1) {
data/geda-gaf-1.8.2/gschem/src/gschem.c:352:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if(getenv("GUILE_WARN_DEPRECATED") == NULL)
data/geda-gaf-1.8.2/gschem/src/o_undo.c:56:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  tmp_path = g_strdup (getenv("TMP"));
data/geda-gaf-1.8.2/gschem/src/parsecmd.c:147:16:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while ((ch = getopt_long (argc, argv, GETOPT_OPTIONS, long_options, NULL)) != -1) {
data/geda-gaf-1.8.2/gschem/src/parsecmd.c:149:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while ((ch = getopt (argc, argv, GETOPT_OPTIONS)) != -1) {
data/geda-gaf-1.8.2/gsymcheck/src/gsymcheck.c:146:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if(getenv("GUILE_WARN_DEPRECATED")==NULL)
data/geda-gaf-1.8.2/gsymcheck/src/parsecmd.c:60:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while ((ch = getopt (argc, argv, OPTIONS)) != -1) {
data/geda-gaf-1.8.2/intl/dcigettext.c:156:7:  [3] (buffer) getwd:
  This does not protect against buffer overflows by itself, so use with
  caution (CWE-120, CWE-20). Use getcwd instead.
char *getwd ();
data/geda-gaf-1.8.2/intl/dcigettext.c:157:28:  [3] (buffer) getwd:
  This does not protect against buffer overflows by itself, so use with
  caution (CWE-120, CWE-20). Use getcwd instead.
#  define getcwd(buf, max) getwd (buf)
data/geda-gaf-1.8.2/intl/dcigettext.c:861:33:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      const char *logfilename = getenv ("GETTEXT_LOG_UNTRANSLATED");
data/geda-gaf-1.8.2/intl/dcigettext.c:1525:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  language = getenv ("LANGUAGE");
data/geda-gaf-1.8.2/intl/dcigettext.c:1565:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	  const char *value = getenv ("OUTPUT_CHARSET");
data/geda-gaf-1.8.2/intl/localcharset.c:122:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      dir = getenv ("CHARSETALIASDIR");
data/geda-gaf-1.8.2/intl/localcharset.c:309:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      locale = getenv ("LC_ALL");
data/geda-gaf-1.8.2/intl/localcharset.c:312:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	  locale = getenv ("LC_CTYPE");
data/geda-gaf-1.8.2/intl/localcharset.c:314: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.
	    locale = getenv ("LANG");
data/geda-gaf-1.8.2/intl/localcharset.c:360:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      locale = getenv ("LC_ALL");
data/geda-gaf-1.8.2/intl/localcharset.c:363:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	  locale = getenv ("LC_CTYPE");
data/geda-gaf-1.8.2/intl/localcharset.c:365: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.
	    locale = getenv ("LANG");
data/geda-gaf-1.8.2/intl/localcharset.c:393:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  locale = getenv ("LC_ALL");
data/geda-gaf-1.8.2/intl/localcharset.c:396:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      locale = getenv ("LC_CTYPE");
data/geda-gaf-1.8.2/intl/localcharset.c:398:11:  [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.
	locale = getenv ("LANG");
data/geda-gaf-1.8.2/intl/localename.c:997:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  retval = getenv ("LC_ALL");
data/geda-gaf-1.8.2/intl/localename.c:1001:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  retval = getenv (categoryname);
data/geda-gaf-1.8.2/intl/localename.c:1005:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  retval = getenv ("LANG");
data/geda-gaf-1.8.2/intl/lock.c:525:3:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
  InitializeCriticalSection (&lock->lock);
data/geda-gaf-1.8.2/intl/lock.c:543:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  EnterCriticalSection (&lock->lock);
data/geda-gaf-1.8.2/intl/lock.c:654:3:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
  InitializeCriticalSection (&lock->lock);
data/geda-gaf-1.8.2/intl/lock.c:675:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  EnterCriticalSection (&lock->lock);
data/geda-gaf-1.8.2/intl/lock.c:705:8:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	      EnterCriticalSection (&lock->lock);
data/geda-gaf-1.8.2/intl/lock.c:728:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  EnterCriticalSection (&lock->lock);
data/geda-gaf-1.8.2/intl/lock.c:757:8:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	      EnterCriticalSection (&lock->lock);
data/geda-gaf-1.8.2/intl/lock.c:771:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  EnterCriticalSection (&lock->lock);
data/geda-gaf-1.8.2/intl/lock.c:828:3:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
  InitializeCriticalSection (&lock->lock);
data/geda-gaf-1.8.2/intl/lock.c:850:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection (&lock->lock);
data/geda-gaf-1.8.2/intl/lock.c:891:4:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
	  InitializeCriticalSection (&once_control->lock);
data/geda-gaf-1.8.2/intl/lock.c:892:4:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	  EnterCriticalSection (&once_control->lock);
data/geda-gaf-1.8.2/intl/lock.c:911:8:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	      EnterCriticalSection (&once_control->lock);
data/geda-gaf-1.8.2/intl/os2compat.c:51:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  char *root = getenv ("UNIXROOT");
data/geda-gaf-1.8.2/intl/os2compat.c:52:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  char *gnulocaledir = getenv ("GNULOCALEDIR");
data/geda-gaf-1.8.2/intl/os2compat.h:43:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
#define getenv _nl_getenv
data/geda-gaf-1.8.2/libgeda/shell/shell.c:109:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while ((c = getopt (argc, argv, GETOPT_OPTIONS)) != -1) {
data/geda-gaf-1.8.2/libgeda/src/s_basic.c:686:30:  [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.
    if (home == NULL) home = g_get_home_dir ();
data/geda-gaf-1.8.2/utils/gschlas/gschlas.c:152:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if(getenv("GUILE_WARN_DEPRECATED")==NULL)
data/geda-gaf-1.8.2/utils/gschlas/parsecmd.c:64:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, OPTIONS)) != -1) {
data/geda-gaf-1.8.2/utils/src/convert_sym.c:385:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while ((ch = getopt (argc, argv, "?h")) != -1) {
data/geda-gaf-1.8.2/utils/src/gmk_sym.c:179:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while ((c = getopt(argc, argv, "?hd:")) != EOF)
data/geda-gaf-1.8.2/utils/src/grenum.c:77:7:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		c = getopt_long(argc, argv, opt_options, long_opts, &opt_idx);
data/geda-gaf-1.8.2/utils/src/grenum.c:79:7:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		c = getopt(argc, argv, opt_options);
data/geda-gaf-1.8.2/utils/src/gsch2pcb.c:1081:37:  [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.
    s = g_build_filename ((gchar *) g_get_home_dir (), dir + 1, NULL);
data/geda-gaf-1.8.2/utils/src/gsch2pcb.c:1092:38:  [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.
  path = g_build_filename ((gchar *) g_get_home_dir (),
data/geda-gaf-1.8.2/utils/src/gsch2pcb.c:1235:38:  [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.
  path = g_build_filename ((gchar *) g_get_home_dir (), ".gEDA",
data/geda-gaf-1.8.2/utils/src/olib.c:2947:9:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    i = getopt(argc,argv,"hon");
data/geda-gaf-1.8.2/utils/src/sarlacc_schem.c:785:17:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((c = getopt(argc, argv, "d:hs:v")) > 0) {
data/geda-gaf-1.8.2/gattrib/src/f_export.c:83: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(filename, "wb");
data/geda-gaf-1.8.2/gattrib/src/gtksheet_2_2.c:6562:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
           sprintf(label,"%d",index);
data/geda-gaf-1.8.2/gattrib/src/listsort.c:98:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	  int ia = atoi (a);
data/geda-gaf-1.8.2/gattrib/src/listsort.c:99:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	  int ib = atoi (b);
data/geda-gaf-1.8.2/gnetlist/src/s_hierarchy.c:306:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char uref[80], pin[10];
data/geda-gaf-1.8.2/gnetlist/src/s_hierarchy.c:545:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char uref[80], pin[10];
data/geda-gaf-1.8.2/gnetlist/utils/mk_verilog_syms.c:101:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[127];
data/geda-gaf-1.8.2/gnetlist/utils/mk_verilog_syms.c:114: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(name, "wb");
data/geda-gaf-1.8.2/gnetlist/utils/mk_verilog_syms.c:164:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char pinName[20];       /* temp for pinnname */
data/geda-gaf-1.8.2/gnetlist/utils/mk_verilog_syms.c:246:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(pinName,"IN%u",i);
data/geda-gaf-1.8.2/gschem/src/o_slot.c:95: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).
  numslots = atoi (numslots_value);
data/geda-gaf-1.8.2/gschem/src/o_slot.c:98:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  new_slot_number = atoi (value);
data/geda-gaf-1.8.2/gschem/src/x_dialog.c:87:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char generic_textstring[256] = "refdes=R";
data/geda-gaf-1.8.2/gschem/src/x_dialog.c:371:17:  [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).
    text_size = atoi(text_size_string);
data/geda-gaf-1.8.2/gschem/src/x_dialog.c:811:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    ? atoi (width_str)  : -1;
data/geda-gaf-1.8.2/gschem/src/x_dialog.c:814:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    ? atoi (length_str) : -1;
data/geda-gaf-1.8.2/gschem/src/x_dialog.c:817:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    ? atoi (space_str)  : -1;
data/geda-gaf-1.8.2/gschem/src/x_dialog.c:1296:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    ? atoi (width_str)  : -1;
data/geda-gaf-1.8.2/gschem/src/x_dialog.c:1299:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    ? atoi (angle1_str) : -1;
data/geda-gaf-1.8.2/gschem/src/x_dialog.c:1302:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    ? atoi (pitch1_str) : -1;
data/geda-gaf-1.8.2/gschem/src/x_dialog.c:1305:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    ? atoi (angle2_str) : -1;
data/geda-gaf-1.8.2/gschem/src/x_dialog.c:1308:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    ? atoi (pitch2_str) : -1;
data/geda-gaf-1.8.2/gschem/src/x_dialog.c:1721:42:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      o_complex_translate_all(w_current, atoi(string));
data/geda-gaf-1.8.2/gschem/src/x_image.c:635:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(&new_w_current, w_current, sizeof(GSCHEM_TOPLEVEL));
data/geda-gaf-1.8.2/gschem/src/x_image.c:637: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(&toplevel, w_current->toplevel, sizeof(TOPLEVEL));
data/geda-gaf-1.8.2/gsymcheck/src/s_check.c:778:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char numslots_str[10];
data/geda-gaf-1.8.2/gsymcheck/src/s_check.c:782:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tempstr1[10];
data/geda-gaf-1.8.2/gsymcheck/src/s_check.c:807:23:  [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).
  s_current->numslots=atoi(value);
data/geda-gaf-1.8.2/gsymcheck/src/s_check.c:808: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(numslots_str, "%d", s_current->numslots);
data/geda-gaf-1.8.2/gsymcheck/src/s_check.c:833:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(tempstr1, "%d", i+1); /* i starts at zero */
data/geda-gaf-1.8.2/gsymcheck/src/s_check.c:871:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    slot = atoi(slotnum);
data/geda-gaf-1.8.2/gsymcheck/src/s_check.c:876:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(tempstr1, "%d", slot);
data/geda-gaf-1.8.2/intl/bindtextdom.c:155: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 (result, dirname, len);
data/geda-gaf-1.8.2/intl/bindtextdom.c:193:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		    memcpy (result, codeset, len);
data/geda-gaf-1.8.2/intl/bindtextdom.c:228:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (new_binding->domainname, domainname, len);
data/geda-gaf-1.8.2/intl/bindtextdom.c:253: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 (result, dirname, len);
data/geda-gaf-1.8.2/intl/bindtextdom.c:282: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 (result, codeset, len);
data/geda-gaf-1.8.2/intl/dcigettext.c:263:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char msgid[ZERO];
data/geda-gaf-1.8.2/intl/dcigettext.c:421:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char data[ZERO];
data/geda-gaf-1.8.2/intl/dcigettext.c:548: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 (search->msgid, msgid1, msgid_len);
data/geda-gaf-1.8.2/intl/dcigettext.c:797: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 (new_domainname, domainname, domainname_len + 1);
data/geda-gaf-1.8.2/intl/dcigettext.c:1098:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		    memcpy (charset, charsetstr, len);
data/geda-gaf-1.8.2/intl/dcigettext.c:1132: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 (tmp, outcharset, len);
data/geda-gaf-1.8.2/intl/dcigettext.c:1133: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 (tmp + len, "//TRANSLIT", 10 + 1);
data/geda-gaf-1.8.2/intl/dcigettext.c:1573: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 (value_copy, value, len);
data/geda-gaf-1.8.2/intl/dcigettext.c:1616:29:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  return (void *) ((char *) memcpy (dest, src, n) + n);
data/geda-gaf-1.8.2/intl/finddomain.c:139:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (locale, alias_value, len);
data/geda-gaf-1.8.2/intl/gettextP.h:204:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char domainname[ZERO];
data/geda-gaf-1.8.2/intl/l10nflist.c:215:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (cp, dirlist, dirlist_len);
data/geda-gaf-1.8.2/intl/langprefs.c:62:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    char buf[256];
data/geda-gaf-1.8.2/intl/loadmsgcat.c:468: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).
# define open(name, flags)	open_not_cancel_2 (name, flags)
data/geda-gaf-1.8.2/intl/loadmsgcat.c:828: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 (domain_file->filename, O_RDONLY | O_BINARY);
data/geda-gaf-1.8.2/intl/loadmsgcat.c:1179:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					    memcpy (mem, static_segments, segsize);
data/geda-gaf-1.8.2/intl/loadmsgcat.c:1188:6:  [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 (mem, sysdep_segment_values[sysdepref], n);
data/geda-gaf-1.8.2/intl/localcharset.c:134:6:  [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 (file_name, dir, dir_len);
data/geda-gaf-1.8.2/intl/localcharset.c:137:6:  [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 (file_name + dir_len + add_slash, base, base_len + 1);
data/geda-gaf-1.8.2/intl/localcharset.c:141:38:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      if (file_name == NULL || (fp = fopen (file_name, "r")) == NULL)
data/geda-gaf-1.8.2/intl/localcharset.c:153:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	      char buf1[50+1];
data/geda-gaf-1.8.2/intl/localcharset.c:154:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	      char buf2[50+1];
data/geda-gaf-1.8.2/intl/localcharset.c:307:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      static char buf[2 + 10 + 1];
data/geda-gaf-1.8.2/intl/localcharset.c:333:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		  memcpy (buf, dot, modifier - dot);
data/geda-gaf-1.8.2/intl/localcharset.c:341:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf (buf, "CP%u", GetACP ());
data/geda-gaf-1.8.2/intl/localcharset.c:378:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buf[2 + 10 + 1];
data/geda-gaf-1.8.2/intl/localcharset.c:381: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 (buf, "CP%u", GetACP ());
data/geda-gaf-1.8.2/intl/localcharset.c:387:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buf[2 + 10 + 1];
data/geda-gaf-1.8.2/intl/localcharset.c:416: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 (buf, dot, modifier - dot);
data/geda-gaf-1.8.2/intl/localcharset.c:432:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	  sprintf (buf, "CP%u", cp[0]);
data/geda-gaf-1.8.2/intl/localealias.c:230: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 (full_fname, fname, fname_len);
data/geda-gaf-1.8.2/intl/localealias.c:231: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 (&full_fname[fname_len], aliasfile, sizeof aliasfile);
data/geda-gaf-1.8.2/intl/localealias.c:237: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 (relocate (full_fname), "rc");
data/geda-gaf-1.8.2/intl/localealias.c:239: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 (relocate (full_fname), "r");
data/geda-gaf-1.8.2/intl/localealias.c:260:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[400];
data/geda-gaf-1.8.2/intl/localealias.c:352:23:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		  map[nmap].alias = memcpy (&string_space[string_space_act],
data/geda-gaf-1.8.2/intl/localealias.c:356:23:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		  map[nmap].value = memcpy (&string_space[string_space_act],
data/geda-gaf-1.8.2/intl/localename.c:715:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  typedef struct { const char legacy[21+1]; const char unixy[5+1]; }
data/geda-gaf-1.8.2/intl/localename.c:715:51:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  typedef struct { const char legacy[21+1]; const char unixy[5+1]; }
data/geda-gaf-1.8.2/intl/localename.c:853:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  typedef struct { const char langtag[7+1]; const char unixy[12+1]; }
data/geda-gaf-1.8.2/intl/localename.c:853:51:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  typedef struct { const char langtag[7+1]; const char unixy[12+1]; }
data/geda-gaf-1.8.2/intl/localename.c:883:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  typedef struct { const char script[4+1]; const char unixy[9+1]; }
data/geda-gaf-1.8.2/intl/localename.c:883:50:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  typedef struct { const char script[4+1]; const char unixy[9+1]; }
data/geda-gaf-1.8.2/intl/localename.c:1046: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 namebuf[256];
data/geda-gaf-1.8.2/intl/log.c:87:22:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      last_logfile = fopen (logfilename, "a");
data/geda-gaf-1.8.2/intl/os2compat.c:42:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char libintl_nl_default_dirname[MAXPATHLEN+1];
data/geda-gaf-1.8.2/intl/os2compat.c:61:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (_nlos2_libdir, root, sl);
data/geda-gaf-1.8.2/intl/os2compat.c:62:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (_nlos2_libdir + sl, LIBDIR, strlen (LIBDIR) + 1);
data/geda-gaf-1.8.2/intl/os2compat.c:75:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (_nlos2_localealiaspath, root, sl);
data/geda-gaf-1.8.2/intl/os2compat.c:76:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (_nlos2_localealiaspath + sl, LOCALE_ALIAS_PATH, strlen (LOCALE_ALIAS_PATH) + 1);
data/geda-gaf-1.8.2/intl/os2compat.c:89:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (_nlos2_localedir, root, sl);
data/geda-gaf-1.8.2/intl/os2compat.c:90:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (_nlos2_localedir + sl, LOCALEDIR, strlen (LOCALEDIR) + 1);
data/geda-gaf-1.8.2/intl/printf.c:217: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 (resultbuf, result, pruned_length);
data/geda-gaf-1.8.2/intl/printf.c:386: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 (resultbuf, result, pruned_length * sizeof (wchar_t));
data/geda-gaf-1.8.2/intl/relocatable.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 (memory, orig_prefix_arg, orig_prefix_len + 1);
data/geda-gaf-1.8.2/intl/relocatable.c:125: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 (memory, curr_prefix_arg, curr_prefix_len + 1);
data/geda-gaf-1.8.2/intl/relocatable.c:206: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 (q, curr_pathname, p - curr_pathname);
data/geda-gaf-1.8.2/intl/relocatable.c:269:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (curr_prefix, curr_installdir, curr_prefix_len);
data/geda-gaf-1.8.2/intl/relocatable.c:296:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      static char location[MAX_PATH];
data/geda-gaf-1.8.2/intl/relocatable.c:310: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.
	static char location_as_posix_path[2 * MAX_PATH];
data/geda-gaf-1.8.2/intl/relocatable.c:340: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 ("/proc/self/maps", "r");
data/geda-gaf-1.8.2/intl/relocatable.c:458: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 (result, curr_prefix, curr_prefix_len);
data/geda-gaf-1.8.2/intl/textdomain.c:115: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 (new_domain, domainname, len);
data/geda-gaf-1.8.2/intl/vasnprintf.c:201: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 (memory, result, length * sizeof (CHAR_T));		     \
data/geda-gaf-1.8.2/intl/vasnprintf.c:213:6:  [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 (result + length, cp, n * sizeof (CHAR_T));
data/geda-gaf-1.8.2/intl/vasnprintf.c:519:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		    memcpy (p, dp->width_start, n * sizeof (CHAR_T));
data/geda-gaf-1.8.2/intl/vasnprintf.c:525:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		    memcpy (p, dp->precision_start, n * sizeof (CHAR_T));
data/geda-gaf-1.8.2/intl/vasnprintf.c:836:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		    memcpy (result + length, tmp, count * sizeof (CHAR_T));
data/geda-gaf-1.8.2/libgeda/src/f_basic.c:513:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[MAX_PATH];
data/geda-gaf-1.8.2/libgeda/src/f_print.c:163:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  prolog = fopen(toplevel->postscript_prolog,"r");
data/geda-gaf-1.8.2/libgeda/src/f_print.c:371: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(filename, "wb"); /* Use "wb" for safety on e.g. Win32 */
data/geda-gaf-1.8.2/libgeda/src/f_print.c:710:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *glyph_map[256];     /* To contain the postscript remapping */
data/geda-gaf-1.8.2/libgeda/src/s_log.c:145:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    logfile_fd = open (filename, O_RDWR|O_CREAT|O_EXCL, 0600);
data/geda-gaf-1.8.2/libgeda/src/s_path.c:77: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 (path->sections, sections, i * sizeof (PATH_SECTION));
data/geda-gaf-1.8.2/libgeda/src/s_slib.c:433:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char *whole_dir[256]; /* make this dynamic hack */
data/geda-gaf-1.8.2/libgeda/src/s_slot.c:152:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    slot = atoi (string);
data/geda-gaf-1.8.2/utils/src/convert_sym.c:407:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  infile=fopen(infileName,"r");
data/geda-gaf-1.8.2/utils/src/convert_sym.c:429:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[MAX_TEXTLEN];
data/geda-gaf-1.8.2/utils/src/convert_sym.c:544:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char text[MAX_TEXTLEN];
data/geda-gaf-1.8.2/utils/src/convert_sym.c:592:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char text[MAX_TEXTLEN], *name, *value;
data/geda-gaf-1.8.2/utils/src/convert_sym.c:680:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char text[MAX_TEXTLEN],text2[MAX_TEXTLEN],*name,*value;
data/geda-gaf-1.8.2/utils/src/convert_sym.c:750:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(text, "pintype=pas");
data/geda-gaf-1.8.2/utils/src/convert_sym.c:758:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(text, "pintype=io");
data/geda-gaf-1.8.2/utils/src/convert_sym.c:766:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(text, "pintype=in");
data/geda-gaf-1.8.2/utils/src/convert_sym.c:774:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(text, "pintype=oc");
data/geda-gaf-1.8.2/utils/src/convert_sym.c:782:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(text, "pintype=oe");
data/geda-gaf-1.8.2/utils/src/convert_sym.c:790:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(text, "pintype=out");
data/geda-gaf-1.8.2/utils/src/convert_sym.c:798:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(text, "pintype=tri");
data/geda-gaf-1.8.2/utils/src/convert_sym.c:806:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(text, "pintype=pwr");
data/geda-gaf-1.8.2/utils/src/convert_sym.c:834:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(text, "pinseq=%d",pin_count);
data/geda-gaf-1.8.2/utils/src/convert_sym.c:892:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char text[MAX_TEXTLEN];
data/geda-gaf-1.8.2/utils/src/convert_sym.c:1304:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char text[MAX_TEXTLEN];
data/geda-gaf-1.8.2/utils/src/convert_sym.c:1305:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char text2[MAX_TEXTLEN];
data/geda-gaf-1.8.2/utils/src/convert_sym.c:1504:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char text[MAX_TEXTLEN];
data/geda-gaf-1.8.2/utils/src/convert_sym.c:1505:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char lib[MAX_TEXTLEN], name[MAX_TEXTLEN], symName[MAX_TEXTLEN];
data/geda-gaf-1.8.2/utils/src/convert_sym.c:1779:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char text[MAX_TEXTLEN], text2[MAX_TEXTLEN];
data/geda-gaf-1.8.2/utils/src/convert_sym.c:1780:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tmpName[MAX_TEXTLEN], tmpValue[MAX_TEXTLEN];
data/geda-gaf-1.8.2/utils/src/convert_sym.c:1868:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
          sprintf(&tmpValue[j], "-1.sch,");
data/geda-gaf-1.8.2/utils/src/convert_sym.c:1880:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(&tmpValue[j], "-1.sch");
data/geda-gaf-1.8.2/utils/src/convert_sym.c:1891:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(tmpName, "netname");
data/geda-gaf-1.8.2/utils/src/convert_sym.c:1892:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(tmpValue, "NC");
data/geda-gaf-1.8.2/utils/src/convert_sym.c:2110:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(fillstyle, &fillmap[vdfillstyle], sizeof(struct FillStyle));
data/geda-gaf-1.8.2/utils/src/convert_sym.c:2120:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(linestyle, &linemap[vdlinestyle], sizeof(struct LineStyle));
data/geda-gaf-1.8.2/utils/src/geda_sym_format.h:151:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(fnsym,".part");
data/geda-gaf-1.8.2/utils/src/geda_sym_format.h:152:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if (!(fsym = fopen(fnsym,"wb")))
data/geda-gaf-1.8.2/utils/src/gmk_sym.c:166:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char pin_used[300][5];       /* keep track of pin number used. Assume 300 pins max */
data/geda-gaf-1.8.2/utils/src/gmk_sym.c:174:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char LineBuf[256];
data/geda-gaf-1.8.2/utils/src/gmk_sym.c:176:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *pFields[MAX_FIELDS];
data/geda-gaf-1.8.2/utils/src/gmk_sym.c:199:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      if ((stream = fopen(argv[1],"r")) == NULL)
data/geda-gaf-1.8.2/utils/src/gmk_sym.c:245:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
{ char *p,temp[100];
data/geda-gaf-1.8.2/utils/src/gmk_sym.c:408:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[100],device[100],name_pos[100];
data/geda-gaf-1.8.2/utils/src/gmk_sym.c:409:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char uref[100],class[100];
data/geda-gaf-1.8.2/utils/src/gmk_sym.c:413:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char footprint[100];
data/geda-gaf-1.8.2/utils/src/gmk_sym.c:418:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  pin_width  = atoi(pFields[3]);
data/geda-gaf-1.8.2/utils/src/gmk_sym.c:419:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  pin_height = atoi(pFields[4]);
data/geda-gaf-1.8.2/utils/src/gmk_sym.c:430:36:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  	if(uref[0]=='U' || uref[0]=='u')strcpy(class,"IC");
data/geda-gaf-1.8.2/utils/src/gmk_sym.c:431:36:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  	if(uref[0]=='J' || uref[0]=='j')strcpy(class,"IO");
data/geda-gaf-1.8.2/utils/src/gmk_sym.c:432:36:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  	if(uref[0]=='C' || uref[0]=='c')strcpy(class,"IO");
data/geda-gaf-1.8.2/utils/src/gmk_sym.c:436:13:  [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).
	pincount = atoi(pFields[7]);
data/geda-gaf-1.8.2/utils/src/gmk_sym.c:444:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(class,"IC");
data/geda-gaf-1.8.2/utils/src/gmk_sym.c:445:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(uref,"U?");
data/geda-gaf-1.8.2/utils/src/gmk_sym.c:525:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char pin_name[40];
data/geda-gaf-1.8.2/utils/src/gmk_sym.c:526:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char pin[40];
data/geda-gaf-1.8.2/utils/src/gmk_sym.c:563:13:  [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).
  pin_pos = atoi(pFields[4]);
data/geda-gaf-1.8.2/utils/src/grenum.c:55:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buff[BUFFSIZE], infilename[FILENAMESIZE], outfilename[FILENAMESIZE];
data/geda-gaf-1.8.2/utils/src/grenum.c:116: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).
		if((infile=fopen(infilename, "r")) == NULL)	/*Open file, use r+ for read and write*/
data/geda-gaf-1.8.2/utils/src/grenum.c:122:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if((outfile=fopen(strcat(&outfilename[0],".tmp"),"wb"))==NULL)
data/geda-gaf-1.8.2/utils/src/grenum.c:122:21:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		if((outfile=fopen(strcat(&outfilename[0],".tmp"),"wb"))==NULL)
data/geda-gaf-1.8.2/utils/src/grenum.c:227:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		outfile=fopen(strcat(&buff[0],".save"),"wb");
data/geda-gaf-1.8.2/utils/src/grenum.c:227:17:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		outfile=fopen(strcat(&buff[0],".save"),"wb");
data/geda-gaf-1.8.2/utils/src/grenum.c:277: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 buff[BUFFSIZE];
data/geda-gaf-1.8.2/utils/src/grenum.c:296: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 buff[BUFFSIZE],*cpr,*cp;
data/geda-gaf-1.8.2/utils/src/grenum.c:351: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).
	refdes->value=abs(atoi(&buff[0]));
data/geda-gaf-1.8.2/utils/src/grenum.h:57:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char prefix[MAX_PREFIX_SIZE];
data/geda-gaf-1.8.2/utils/src/gsch2pcb.c:96: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).
  f = fopen (m4_override_file, "wb");
data/geda-gaf-1.8.2/utils/src/gsch2pcb.c:482:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((f = fopen (pcb_file, "r")) == NULL)
data/geda-gaf-1.8.2/utils/src/gsch2pcb.c:554:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((f_in = fopen (element_file, "r")) == NULL) {
data/geda-gaf-1.8.2/utils/src/gsch2pcb.c:831:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((f_in = fopen (pcb_file, "r")) == NULL)
data/geda-gaf-1.8.2/utils/src/gsch2pcb.c:834:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((f_out = fopen (tmp_file, "wb")) == NULL) {
data/geda-gaf-1.8.2/utils/src/gsch2pcb.c:940:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((f_in = fopen (pcb_file, "r")) == NULL)
data/geda-gaf-1.8.2/utils/src/gsch2pcb.c:943:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((f_out = fopen (tmp, "wb")) == NULL) {
data/geda-gaf-1.8.2/utils/src/gsch2pcb.c:1005:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((f_in = fopen (pcb_file, "r")) == NULL)
data/geda-gaf-1.8.2/utils/src/gsch2pcb.c:1008:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((f_out = fopen (tmp, "wb")) == NULL) {
data/geda-gaf-1.8.2/utils/src/gsch2pcb.c:1207: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).
  f = fopen (path, "r");
data/geda-gaf-1.8.2/utils/src/olib.c:744:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char fnsym[512];	    /* gEDA symbol file name */
data/geda-gaf-1.8.2/utils/src/olib.c:747:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char part_aliases[200][50];     /* store for aliases of part */
data/geda-gaf-1.8.2/utils/src/olib.c:748:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char sym_prefix[50];	/* prefix for .sym file */
data/geda-gaf-1.8.2/utils/src/olib.c:751:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char sym_version[10];
data/geda-gaf-1.8.2/utils/src/olib.c:757:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char buff[512];
data/geda-gaf-1.8.2/utils/src/olib.c:769:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char  name[50]; /* simbolic name of pin */
data/geda-gaf-1.8.2/utils/src/olib.c:774:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char ref_str[20];
data/geda-gaf-1.8.2/utils/src/olib.c:1287:11:  [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).
  sizex = atoi(yytext);
data/geda-gaf-1.8.2/utils/src/olib.c:1297:11:  [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).
  sizey = atoi(yytext);
data/geda-gaf-1.8.2/utils/src/olib.c:1317:13:  [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).
  partspp = atoi(yytext);
data/geda-gaf-1.8.2/utils/src/olib.c:1666:27:  [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).
  pinlist[pincount].num = atoi(yytext+1);	/* gets pin number */
data/geda-gaf-1.8.2/utils/src/olib.c:1707:27:  [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).
  pinlist[pincount].pin = atoi(yytext);
data/geda-gaf-1.8.2/utils/src/olib.c:2938:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char	fnlib[PATH_MAX];
data/geda-gaf-1.8.2/utils/src/olib.c:2979:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if (!(flib = fopen(fnlib,"r")))
data/geda-gaf-1.8.2/utils/src/sarlacc_schem.c:107:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char sizebuf[2];
data/geda-gaf-1.8.2/utils/src/sarlacc_schem.c:131:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned size = ((unsigned char *)src)[0];
data/geda-gaf-1.8.2/utils/src/sarlacc_schem.c:170:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char localbuf[32];
data/geda-gaf-1.8.2/utils/src/sarlacc_schem.c:190:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char localbuf[1000];
data/geda-gaf-1.8.2/utils/src/sarlacc_schem.c:191:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char data[100];
data/geda-gaf-1.8.2/utils/src/sarlacc_schem.c:221:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char localbuf[1000];
data/geda-gaf-1.8.2/utils/src/sarlacc_schem.c:222:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char partname[256];
data/geda-gaf-1.8.2/utils/src/sarlacc_schem.c:223:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char filename[512];
data/geda-gaf-1.8.2/utils/src/sarlacc_schem.c:224:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char full_filename[1024];
data/geda-gaf-1.8.2/utils/src/sarlacc_schem.c:236:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char refdes[32];
data/geda-gaf-1.8.2/utils/src/sarlacc_schem.c:238:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char value[64];
data/geda-gaf-1.8.2/utils/src/sarlacc_schem.c:239:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char attrib[64];
data/geda-gaf-1.8.2/utils/src/sarlacc_schem.c:240:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char attribsav[64];
data/geda-gaf-1.8.2/utils/src/sarlacc_schem.c:247:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buff[128];
data/geda-gaf-1.8.2/utils/src/sarlacc_schem.c:296:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    cfp = fopen(full_filename, "r");
data/geda-gaf-1.8.2/utils/src/sarlacc_schem.c:412:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char localbuf[1000];
data/geda-gaf-1.8.2/utils/src/sarlacc_schem.c:413:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char filename[1000];
data/geda-gaf-1.8.2/utils/src/sarlacc_schem.c:414:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char filetext[1000];
data/geda-gaf-1.8.2/utils/src/sarlacc_schem.c:458:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char netlabel[256];
data/geda-gaf-1.8.2/utils/src/sarlacc_schem.c:464:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char localbuf[32];
data/geda-gaf-1.8.2/utils/src/sarlacc_schem.c:505:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char localbuf[32];
data/geda-gaf-1.8.2/utils/src/sarlacc_schem.c:522:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char localbuf[1024];
data/geda-gaf-1.8.2/utils/src/sarlacc_schem.c:523:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char textbuf[1024];
data/geda-gaf-1.8.2/utils/src/sarlacc_schem.c:562:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char localbuf[1000];
data/geda-gaf-1.8.2/utils/src/sarlacc_schem.c:563:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char textbuf[1000];
data/geda-gaf-1.8.2/utils/src/sarlacc_schem.c:596:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char localbuf[32];
data/geda-gaf-1.8.2/utils/src/sarlacc_schem.c:613:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char localbuf[32];
data/geda-gaf-1.8.2/utils/src/sarlacc_schem.c:630:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char localbuf[256];
data/geda-gaf-1.8.2/utils/src/sarlacc_schem.c:631:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char textbuf[256];
data/geda-gaf-1.8.2/utils/src/sarlacc_schem.c:683:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char localbuf[1024];
data/geda-gaf-1.8.2/utils/src/sarlacc_schem.c:684:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char textbuf[1024];
data/geda-gaf-1.8.2/utils/src/sarlacc_schem.c:712:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char localbuf[1024];
data/geda-gaf-1.8.2/utils/src/sarlacc_schem.c:791: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).
	    scale = atoi(optarg);
data/geda-gaf-1.8.2/utils/src/sarlacc_schem.c:822:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd1 = open(argv[optind],O_RDONLY);
data/geda-gaf-1.8.2/utils/src/sarlacc_schem.c:828:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd2 = open(argv[optind],O_RDONLY);
data/geda-gaf-1.8.2/utils/src/smash_megafile.c:47:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[127];
data/geda-gaf-1.8.2/utils/src/smash_megafile.c:48:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[127];         /* buffer for megafile index entries */
data/geda-gaf-1.8.2/utils/src/smash_megafile.c:49:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char output_name[127];
data/geda-gaf-1.8.2/utils/src/smash_megafile.c:67:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcat(name,".lib");
data/geda-gaf-1.8.2/utils/src/smash_megafile.c:68: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).
  megafile = fopen(name, "r");
data/geda-gaf-1.8.2/utils/src/smash_megafile.c:109:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      output = fopen(output_name,"wb");
data/geda-gaf-1.8.2/gattrib/src/gtksheet_2_2.c:3130:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (!sheet->data[row][col]->text || strlen(sheet->data[row][col]->text)==0)
data/geda-gaf-1.8.2/gattrib/src/gtksheet_2_2.c:3589:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if((*cell)->text && strlen((*cell)->text) > 0) {
data/geda-gaf-1.8.2/gattrib/src/gtksheet_2_2.c:3754: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(sheet->data[row][col]->text) == 0) return NULL;
data/geda-gaf-1.8.2/gattrib/src/gtksheet_2_2.c:3970: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(text && strlen(text)!=0){
data/geda-gaf-1.8.2/gattrib/src/gtksheet_2_2.c:4048: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(text && strlen(text)!=0){
data/geda-gaf-1.8.2/gattrib/src/gtksheet_2_2.c:5815:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if(strlen(gtk_entry_get_text(GTK_ENTRY(gtk_sheet_get_entry(sheet)))) == 0 
data/geda-gaf-1.8.2/gattrib/src/gtksheet_2_2.c:5850: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).
    if(strlen(gtk_entry_get_text(GTK_ENTRY(gtk_sheet_get_entry(sheet)))) == 0
data/geda-gaf-1.8.2/gattrib/src/gtksheet_2_2.c:6219: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(text && strlen(text) > 0){ 
data/geda-gaf-1.8.2/gattrib/src/gtksheet_2_2.c:6515: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).
    if(button->label && strlen(button->label)>0){
data/geda-gaf-1.8.2/gattrib/src/gtksheet_2_2.c:6523: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).
                len=strlen(line);
data/geda-gaf-1.8.2/gattrib/src/gtksheet_2_2.c:6811: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(!text || strlen(text)==0) 
data/geda-gaf-1.8.2/gattrib/src/gtksheet_2_2.c:6916: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(!text || strlen(text)==0) 
data/geda-gaf-1.8.2/gattrib/src/gtksheet_2_2.c:8393: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(gtk_sheet_autoresize(sheet) && button->label && strlen(button->label) > 0){
data/geda-gaf-1.8.2/gattrib/src/s_object.c:92:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(new_attrib_value) != 0) {
data/geda-gaf-1.8.2/gattrib/src/s_object.c:147: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(new_attrib_value) != 0) {
data/geda-gaf-1.8.2/gattrib/src/s_table.c:709: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(attrib_value) == 0) {
data/geda-gaf-1.8.2/gattrib/src/s_toplevel.c:763: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).
    if ( (old_attrib_value != NULL) && (new_attrib_value != NULL) && (strlen(new_attrib_value) != 0) ) {
data/geda-gaf-1.8.2/gattrib/src/s_toplevel.c:990: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(new_attrib_value) == 0) {
data/geda-gaf-1.8.2/gattrib/src/s_toplevel.c:997: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).
    if ( (old_attrib_value != NULL) && (new_attrib_value != NULL) && (strlen(new_attrib_value) != 0) ) {
data/geda-gaf-1.8.2/gattrib/src/x_gtksheet.c:188: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).
    new_width = char_width * strlen(text);  
data/geda-gaf-1.8.2/gnetlist/src/g_netlist.c:282: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(n_current->
data/geda-gaf-1.8.2/gnetlist/src/g_netlist.c:286: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).
						strlen(n_current->
data/geda-gaf-1.8.2/gnetlist/src/g_netlist.c:380: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).
                                strlen
data/geda-gaf-1.8.2/gnetlist/src/g_netlist.c:385: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).
                            strlen(n_current->
data/geda-gaf-1.8.2/gnetlist/src/gnetlist.c:117: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).
      name[strlen(name)-4] = '\0';
data/geda-gaf-1.8.2/gnetlist/src/i_vars.c:84:6:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	    strcpy(pr_current->hierarchy_uref_separator, "/");
data/geda-gaf-1.8.2/gschem/src/i_callbacks.c:285: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).
    base = g_strndup(filename, strlen(filename) - strlen(".sch"));
data/geda-gaf-1.8.2/gschem/src/i_callbacks.c:285:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    base = g_strndup(filename, strlen(filename) - strlen(".sch"));
data/geda-gaf-1.8.2/gschem/src/o_misc.c:483:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (!strncmp (stext, str, strlen (stext))) {
data/geda-gaf-1.8.2/gschem/src/o_misc.c:517:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (!strncmp (stext, str, strlen (stext))) {
data/geda-gaf-1.8.2/gschem/src/o_misc.c:703:27:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
            saved_umask = umask(0);
data/geda-gaf-1.8.2/gschem/src/o_misc.c:705:13:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
            umask(saved_umask);
data/geda-gaf-1.8.2/gschem/src/o_misc.c:724:25:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
          saved_umask = umask(0);
data/geda-gaf-1.8.2/gschem/src/o_misc.c:730:11:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
          umask(saved_umask);
data/geda-gaf-1.8.2/gschem/src/o_misc.c:742:25:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
          saved_umask = umask(0);
data/geda-gaf-1.8.2/gschem/src/o_misc.c:750:11:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
          umask(saved_umask);
data/geda-gaf-1.8.2/gschem/src/o_text.c:57: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).
  sp = strip_text = g_malloc (strlen (text) + 1);
data/geda-gaf-1.8.2/gschem/src/x_attribedit.c:526:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(val);
data/geda-gaf-1.8.2/gschem/src/x_autonumber.c:333: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(autotext->current_searchtext);
data/geda-gaf-1.8.2/gschem/src/x_autonumber.c:340: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(str) - len > 0)
data/geda-gaf-1.8.2/gschem/src/x_autonumber.c:349: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(str) != len+1)
data/geda-gaf-1.8.2/gschem/src/x_autonumber.c:671: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(scope_text) == 0) {
data/geda-gaf-1.8.2/gschem/src/x_autonumber.c:677:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    searchtext = g_strndup(scope_text, strlen(scope_text)-1);
data/geda-gaf-1.8.2/gschem/src/x_autonumber.c:682:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    searchtext = g_strndup(scope_text, strlen(scope_text)-1);
data/geda-gaf-1.8.2/gschem/src/x_autonumber.c:699: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).
	      for (i = strlen (str)-1;
data/geda-gaf-1.8.2/gschem/src/x_autonumber.c:700: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).
		   (i >= strlen(searchtext))
data/geda-gaf-1.8.2/gschem/src/x_clipboard.c:67: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).
                          (gint) strlen(buf));
data/geda-gaf-1.8.2/gschem/src/x_dialog.c:367:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(text_string);
data/geda-gaf-1.8.2/gschem/src/x_dialog.c:696: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).
                           0, strlen (text));
data/geda-gaf-1.8.2/gschem/src/x_dialog.c:705: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).
                           0, strlen (text));
data/geda-gaf-1.8.2/gschem/src/x_dialog.c:714: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).
                           0, strlen (text));
data/geda-gaf-1.8.2/gschem/src/x_dialog.c:1151: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).
                           0, strlen (text));
data/geda-gaf-1.8.2/gschem/src/x_dialog.c:1160: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).
                           0, strlen (text));
data/geda-gaf-1.8.2/gschem/src/x_dialog.c:1169: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).
                           0, strlen (text));
data/geda-gaf-1.8.2/gschem/src/x_dialog.c:1178: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).
                           0, strlen (text));
data/geda-gaf-1.8.2/gschem/src/x_dialog.c:1187: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).
                           0, strlen (text));
data/geda-gaf-1.8.2/gschem/src/x_dialog.c:1720: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(string) != 0) {
data/geda-gaf-1.8.2/gschem/src/x_dialog.c:2029:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(string);
data/geda-gaf-1.8.2/gschem/src/x_dialog.c:2923:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(generic_textstring, string, sizeof(generic_textstring)-1);
data/geda-gaf-1.8.2/gschem/src/x_dialog.c:2969:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy (generic_textstring,
data/geda-gaf-1.8.2/gschem/src/x_dialog.c:3057:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(generic_textstring, string, sizeof(generic_textstring)-1);
data/geda-gaf-1.8.2/gschem/src/x_dialog.c:3158:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(generic_textstring, string, sizeof(generic_textstring)-1);
data/geda-gaf-1.8.2/gschem/src/x_grid.c:393: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).
                     strlen(tempstring));
data/geda-gaf-1.8.2/gschem/src/x_multiattrib.c:497: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).
                            strlen (cell_text->text));
data/geda-gaf-1.8.2/intl/bindtextdom.c:152: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).
		      size_t len = strlen (dirname) + 1;
data/geda-gaf-1.8.2/intl/bindtextdom.c:190: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).
		  size_t len = strlen (codeset) + 1;
data/geda-gaf-1.8.2/intl/bindtextdom.c:221:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t len = strlen (domainname) + 1;
data/geda-gaf-1.8.2/intl/bindtextdom.c:249: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).
		  size_t len = strlen (dirname) + 1;
data/geda-gaf-1.8.2/intl/bindtextdom.c:278:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      size_t len = strlen (codeset) + 1;
data/geda-gaf-1.8.2/intl/dcigettext.c:542: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).
  msgid_len = strlen (msgid1) + 1;
data/geda-gaf-1.8.2/intl/dcigettext.c:639: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).
	  size_t dirname_len = strlen (dirname) + 1;
data/geda-gaf-1.8.2/intl/dcigettext.c:681:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  domainname_len = strlen (domainname);
data/geda-gaf-1.8.2/intl/dcigettext.c:682: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).
  xdomainname = (char *) alloca (strlen (categoryname)
data/geda-gaf-1.8.2/intl/dcigettext.c:691: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).
  single_locale = (char *) alloca (strlen (categoryvalue) + 1);
data/geda-gaf-1.8.2/intl/dcigettext.c:786: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).
		  size += strlen (localename) + 1;
data/geda-gaf-1.8.2/intl/dcigettext.c:914:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      nls_uint32 len = strlen (msgid);
data/geda-gaf-1.8.2/intl/dcigettext.c:1091: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).
		    charsetstr += strlen ("charset=");
data/geda-gaf-1.8.2/intl/dcigettext.c:1130: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 (outcharset);
data/geda-gaf-1.8.2/intl/dcigettext.c:1569:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      size_t len = strlen (value) + 1;
data/geda-gaf-1.8.2/intl/eval-plural.h:88: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.
	      case equal:
data/geda-gaf-1.8.2/intl/finddomain.c:94: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).
			       strlen (dirname) + 1, 0, locale, NULL, NULL,
data/geda-gaf-1.8.2/intl/finddomain.c:134:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t len = strlen (alias_value) + 1;
data/geda-gaf-1.8.2/intl/finddomain.c:154: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).
			       strlen (dirname) + 1, mask, language, territory,
data/geda-gaf-1.8.2/intl/l10nflist.c:98: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).
      size_t part_len = strlen (argz);
data/geda-gaf-1.8.2/intl/l10nflist.c:123: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).
      size_t part_len = strlen (argz);
data/geda-gaf-1.8.2/intl/l10nflist.c:197: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 (language)
data/geda-gaf-1.8.2/intl/l10nflist.c:199:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				     ? strlen (territory) + 1 : 0)
data/geda-gaf-1.8.2/intl/l10nflist.c:201:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				     ? strlen (codeset) + 1 : 0)
data/geda-gaf-1.8.2/intl/l10nflist.c:203:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				     ? strlen (normalized_codeset) + 1 : 0)
data/geda-gaf-1.8.2/intl/l10nflist.c:205:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				     ? strlen (modifier) + 1 : 0)
data/geda-gaf-1.8.2/intl/l10nflist.c:206: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).
				  + 1 + strlen (filename) + 1);
data/geda-gaf-1.8.2/intl/l10nflist.c:326: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).
		= _nl_make_l10nflist (l10nfile_list, dir, strlen (dir) + 1,
data/geda-gaf-1.8.2/intl/langprefs.c:76: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).
		    size += strlen (buf) + 1;
data/geda-gaf-1.8.2/intl/langprefs.c:108: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).
			    p += strlen (buf);
data/geda-gaf-1.8.2/intl/loadmsgcat.c:470:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
# define read(fd, buf, n)	read_not_cancel (fd, buf, n)
data/geda-gaf-1.8.2/intl/loadmsgcat.c:874:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	  long int nb = (long int) read (fd, read_ptr, to_read);
data/geda-gaf-1.8.2/intl/loadmsgcat.c:1052: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).
			      need += strlen (sysdep_segment_values[sysdepref]);
data/geda-gaf-1.8.2/intl/loadmsgcat.c:1187: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).
					n = strlen (sysdep_segment_values[sysdepref]);
data/geda-gaf-1.8.2/intl/localcharset.c:87:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
# undef getc
data/geda-gaf-1.8.2/intl/localcharset.c:88:10:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
# define getc getc_unlocked
data/geda-gaf-1.8.2/intl/localcharset.c:128: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).
	size_t dir_len = strlen (dir);
data/geda-gaf-1.8.2/intl/localcharset.c:129:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t base_len = strlen (base);
data/geda-gaf-1.8.2/intl/localcharset.c:158:12:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	      c = getc (fp);
data/geda-gaf-1.8.2/intl/localcharset.c:167:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		    c = getc (fp);
data/geda-gaf-1.8.2/intl/localcharset.c:174:12:  [1] (buffer) fscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
	      if (fscanf (fp, "%50s %50s", buf1, buf2) < 2)
data/geda-gaf-1.8.2/intl/localcharset.c:176: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).
	      l1 = strlen (buf1);
data/geda-gaf-1.8.2/intl/localcharset.c:177: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).
	      l2 = strlen (buf2);
data/geda-gaf-1.8.2/intl/localcharset.c:446: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).
       aliases += strlen (aliases) + 1, aliases += strlen (aliases) + 1)
data/geda-gaf-1.8.2/intl/localcharset.c:446:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
       aliases += strlen (aliases) + 1, aliases += strlen (aliases) + 1)
data/geda-gaf-1.8.2/intl/localcharset.c:450: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).
	codeset = aliases + strlen (aliases) + 1;
data/geda-gaf-1.8.2/intl/localealias.c:324: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).
		  alias_len = strlen (alias) + 1;
data/geda-gaf-1.8.2/intl/localealias.c:325: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).
		  value_len = strlen (value) + 1;
data/geda-gaf-1.8.2/intl/localename.c:916: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 (name) == 7 && name[2] == '-')
data/geda-gaf-1.8.2/intl/log.c:83: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).
      last_logfilename = (char *) malloc (strlen (logfilename) + 1);
data/geda-gaf-1.8.2/intl/os2compat.c:59:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          size_t sl = strlen (root);
data/geda-gaf-1.8.2/intl/os2compat.c:60: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).
          _nlos2_libdir = (char *) malloc (sl + strlen (LIBDIR) + 1);
data/geda-gaf-1.8.2/intl/os2compat.c:62:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          memcpy (_nlos2_libdir + sl, LIBDIR, strlen (LIBDIR) + 1);
data/geda-gaf-1.8.2/intl/os2compat.c:73:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          size_t sl = strlen (root);
data/geda-gaf-1.8.2/intl/os2compat.c:74: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).
          _nlos2_localealiaspath = (char *) malloc (sl + strlen (LOCALE_ALIAS_PATH) + 1);
data/geda-gaf-1.8.2/intl/os2compat.c:76:67:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          memcpy (_nlos2_localealiaspath + sl, LOCALE_ALIAS_PATH, strlen (LOCALE_ALIAS_PATH) + 1);
data/geda-gaf-1.8.2/intl/os2compat.c:87:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          size_t sl = strlen (root);
data/geda-gaf-1.8.2/intl/os2compat.c:88:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          _nlos2_localedir = (char *) malloc (sl + strlen (LOCALEDIR) + 1);
data/geda-gaf-1.8.2/intl/os2compat.c:90: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).
          memcpy (_nlos2_localedir + sl, LOCALEDIR, strlen (LOCALEDIR) + 1);
data/geda-gaf-1.8.2/intl/os2compat.c:96: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 (_nlos2_localedir) <= MAXPATHLEN)
data/geda-gaf-1.8.2/intl/plural-exp.h:54:5:  [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.
    equal,			/* Comparison for equality.  */
data/geda-gaf-1.8.2/intl/plural.c:566:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#   define yystrlen strlen
data/geda-gaf-1.8.2/intl/plural.c:1387:15:  [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.
	  lval->op = equal;
data/geda-gaf-1.8.2/intl/relocatable.c:115: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).
      orig_prefix_len = strlen (orig_prefix_arg);
data/geda-gaf-1.8.2/intl/relocatable.c:116: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).
      curr_prefix_len = strlen (curr_prefix_arg);
data/geda-gaf-1.8.2/intl/relocatable.c:182: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).
  if (strncmp (orig_installprefix, orig_installdir, strlen (orig_installprefix))
data/geda-gaf-1.8.2/intl/relocatable.c:186:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  rel_installdir = orig_installdir + strlen (orig_installprefix);
data/geda-gaf-1.8.2/intl/relocatable.c:191: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).
    const char *p = curr_pathname + strlen (curr_pathname);
data/geda-gaf-1.8.2/intl/relocatable.c:214:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    const char *rp = rel_installdir + strlen (rel_installdir);
data/geda-gaf-1.8.2/intl/relocatable.c:215:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    const char *cp = curr_installdir + strlen (curr_installdir);
data/geda-gaf-1.8.2/intl/relocatable.c:317: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 (location_as_posix_path) >= MAX_PATH - 1)
data/geda-gaf-1.8.2/intl/relocatable.c:354:19:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	      while (c = getc (fp), c != EOF && c != '\n' && c != '/')
data/geda-gaf-1.8.2/intl/relocatable.c:373:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	  while (c = getc (fp), c != EOF && c != '\n')
data/geda-gaf-1.8.2/intl/relocatable.c:452:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (char *) xmalloc (curr_prefix_len + strlen (pathname_tail) + 1);
data/geda-gaf-1.8.2/intl/textdomain.c:112:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t len = strlen (domainname) + 1;
data/geda-gaf-1.8.2/intl/vasnprintf.c:55:24:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#  define local_wcslen wcslen
data/geda-gaf-1.8.2/intl/vasnprintf.c:462: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).
			tmp_length = strlen (a.arg[dp->arg_index].a.a_string);
data/geda-gaf-1.8.2/libgeda/src/a_basic.c:243:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (!g_file_set_contents (filename, buffer, strlen(buffer), err)) {
data/geda-gaf-1.8.2/libgeda/src/f_basic.c:416:16:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	saved_umask = umask(0);
data/geda-gaf-1.8.2/libgeda/src/f_basic.c:424:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(saved_umask);
data/geda-gaf-1.8.2/libgeda/src/f_basic.c:440:19:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    saved_umask = umask(0);
data/geda-gaf-1.8.2/libgeda/src/f_basic.c:442:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask(saved_umask);
data/geda-gaf-1.8.2/libgeda/src/f_basic.c:568: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).
  rpath = g_string_sized_new (strlen (name));
data/geda-gaf-1.8.2/libgeda/src/f_basic.c:662: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 (filename) + 1 > MAXPATHLEN) {
data/geda-gaf-1.8.2/libgeda/src/g_rc.c:987: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(attr2[i]) > 0) {
data/geda-gaf-1.8.2/libgeda/src/o_complex_basic.c:647: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).
  char *basename = g_malloc (1 + strlen (buf));
data/geda-gaf-1.8.2/libgeda/src/o_picture.c:115: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 (filename) == 0) {
data/geda-gaf-1.8.2/libgeda/src/o_text_basic.c:269: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).
  text->length = strlen(string);
data/geda-gaf-1.8.2/libgeda/src/o_text_basic.c:454: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).
    gchar *tmp = g_convert (string, strlen (string),
data/geda-gaf-1.8.2/libgeda/src/o_text_basic.c:769: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(output_string)+1;
data/geda-gaf-1.8.2/libgeda/src/s_basic.c:449: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(string);
data/geda-gaf-1.8.2/libgeda/src/s_basic.c:484: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).
  gstring = g_string_sized_new (strlen (string));
data/geda-gaf-1.8.2/libgeda/src/s_color.c:146: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 (rgba);
data/geda-gaf-1.8.2/libgeda/src/s_encoding.c:200: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).
    srclen = strlen(src);
data/geda-gaf-1.8.2/libgeda/src/s_log.c:106: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).
  full_prefix_len = strlen (full_prefix);
data/geda-gaf-1.8.2/libgeda/src/s_log.c:227:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while ((len = read (logfile_fd, &buf, BUFSIZE)) != 0) {
data/geda-gaf-1.8.2/libgeda/src/s_log.c:263:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  status = write (logfile_fd, message, strlen (message));
data/geda-gaf-1.8.2/libgeda/src/s_slib.c:213: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(rawname)+1;
data/geda-gaf-1.8.2/libgeda/src/s_slot.c:99:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        strncmp (slotdef, search_for, strlen (search_for)) == 0)
data/geda-gaf-1.8.2/libgeda/src/s_textbuffer.c:71: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).
    realsize = strlen(data);
data/geda-gaf-1.8.2/libgeda/src/u_basic.c:60: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).
  return_value = g_malloc(sizeof(char)*(strlen(string) + 1));
data/geda-gaf-1.8.2/libgeda/src/u_basic.c:66: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 (i > strlen(string)) {
data/geda-gaf-1.8.2/utils/src/char_width.c:41: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(str);
data/geda-gaf-1.8.2/utils/src/convert_sym.c:436:13:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while((c =fgetc(fp)) != EOF) /* fetch record type */
data/geda-gaf-1.8.2/utils/src/convert_sym.c:523: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).
	  text_len=strlen(buf);
data/geda-gaf-1.8.2/utils/src/convert_sym.c:830:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(text2, text, MAX_TEXTLEN);
data/geda-gaf-1.8.2/utils/src/convert_sym.c:972:7:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (getc(fp) == '\r')
data/geda-gaf-1.8.2/utils/src/convert_sym.c:973:5:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getc(fp);
data/geda-gaf-1.8.2/utils/src/convert_sym.c:1337: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(text2);
data/geda-gaf-1.8.2/utils/src/convert_sym.c:1562: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).
  for (i = strlen(name) - 1; i >= 0; i--)
data/geda-gaf-1.8.2/utils/src/convert_sym.c:1784:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(tmpName, name, MAX_TEXTLEN-1);
data/geda-gaf-1.8.2/utils/src/convert_sym.c:1790:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(tmpValue, value, MAX_TEXTLEN-1);
data/geda-gaf-1.8.2/utils/src/convert_sym.c:1810:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(tmpName, translations[i].newName, MAX_TEXTLEN-1);
data/geda-gaf-1.8.2/utils/src/convert_sym.c:1853: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(text2);
data/geda-gaf-1.8.2/utils/src/convert_sym.c:2037:20:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while(isspace((c=fgetc(fp))));
data/geda-gaf-1.8.2/utils/src/convert_sym.c:2044: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).
  text_len=strlen(buf);
data/geda-gaf-1.8.2/utils/src/convert_sym.c:2052:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while((c = getc(fp)) == '+')
data/geda-gaf-1.8.2/utils/src/convert_sym.c:2054:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = getc(fp);                         /* suck in space */
data/geda-gaf-1.8.2/utils/src/convert_sym.c:2057: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).
      text_len=strlen(buf);                 /* update text length */
data/geda-gaf-1.8.2/utils/src/convert_sym.c:2082:7:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  c = getc(fp);
data/geda-gaf-1.8.2/utils/src/gmk_sym.c:256:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    pField[fld_cnt] = (char *) malloc(strlen(temp) + 1);
data/geda-gaf-1.8.2/utils/src/gmk_sym.c:377: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(name))
data/geda-gaf-1.8.2/utils/src/gmk_sym.c:429:4:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
  	strcat(uref,"?");
data/geda-gaf-1.8.2/utils/src/gmk_sym.c:469: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(name))
data/geda-gaf-1.8.2/utils/src/gmk_sym.c:544:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(pin_used[pin_counter++],pin,5);    /* save the current pin, the first 5 char */
data/geda-gaf-1.8.2/utils/src/gmk_sym.c:651: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).
  while (isspace((int) *(wrk + strlen(wrk) - 1)))     /* Clear any trailing spaces */
data/geda-gaf-1.8.2/utils/src/gmk_sym.c:652: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).
    *(wrk + strlen(wrk) - 1) = 0;
data/geda-gaf-1.8.2/utils/src/gmk_sym.c:667: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).
  while (isspace((int) *(pBuf + strlen(pBuf) - 1)))     /* Clear any trailing spaces */
data/geda-gaf-1.8.2/utils/src/gmk_sym.c:668: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).
    *(pBuf + strlen(pBuf) - 1) = 0;
data/geda-gaf-1.8.2/utils/src/grenum.c:329:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(&refdes->prefix[0],cpr+1,cp-cpr-1);	/*Copy the prefix to the refdes structure*/
data/geda-gaf-1.8.2/utils/src/gsch2pcb.c:654: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).
      n1 = strlen (el->description);
data/geda-gaf-1.8.2/utils/src/gsch2pcb.c:655: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).
      n2 = strlen (el->pkg_name_fix);
data/geda-gaf-1.8.2/utils/src/gsch2pcb.c:1108: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 (!sch_basename && (s = g_strrstr (sch, ".sch")) != NULL && strlen(s) == 4)
data/geda-gaf-1.8.2/utils/src/gsch2pcb.c:1141: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).
  if ((arg != NULL) && (strlen (arg) >= 1)) {
data/geda-gaf-1.8.2/utils/src/gsch2pcb.c:1142:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    s = arg + strlen (arg) - 1;
data/geda-gaf-1.8.2/utils/src/gsch2pcb.c:1217:5:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    sscanf (s, "%31s %767[^\n]", config, arg);
data/geda-gaf-1.8.2/utils/src/olib.c:1004:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
data/geda-gaf-1.8.2/utils/src/olib.c:2659: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).
	return yy_scan_bytes(yystr,strlen(yystr) );
data/geda-gaf-1.8.2/utils/src/sarlacc_schem.c:110:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(fd,sizebuf,2);
data/geda-gaf-1.8.2/utils/src/sarlacc_schem.c:122:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read(fd,block,size) != size) {
data/geda-gaf-1.8.2/utils/src/sarlacc_schem.c:138:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(dest,src+1,size);
data/geda-gaf-1.8.2/utils/src/sarlacc_schem.c:147:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read(fd,&len,1) != 1) {
data/geda-gaf-1.8.2/utils/src/sarlacc_schem.c:157:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd,dest,len) != len) {
data/geda-gaf-1.8.2/utils/src/sarlacc_schem.c:173:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(fd1,localbuf,32);
data/geda-gaf-1.8.2/utils/src/sarlacc_schem.c:586:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(netlabel, textbuf, 256);
data/geda-gaf-1.8.2/utils/src/sarlacc_schem.c:724:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(fd1,&tag,1);
data/geda-gaf-1.8.2/utils/src/smash_megafile.c:107:7:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
      strcat(output_name, "/");
data/geda-gaf-1.8.2/utils/src/smash_megafile.c:124:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      fgetc(megafile);

ANALYSIS SUMMARY:

Hits = 588
Lines analyzed = 134367 in approximately 5.25 seconds (25579 lines/second)
Physical Source Lines of Code (SLOC) = 83447
Hits@level = [0] 1305 [1] 212 [2] 236 [3]  59 [4]  75 [5]   6
Hits@level+ = [0+] 1893 [1+] 588 [2+] 376 [3+] 140 [4+]  81 [5+]   6
Hits/KSLOC@level+ = [0+] 22.6851 [1+] 7.04639 [2+] 4.50585 [3+] 1.67771 [4+] 0.970676 [5+] 0.0719019
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.