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/lepton-eda-1.9.11/libleptonattrib/include/globals.h
Examining data/lepton-eda-1.9.11/libleptonattrib/include/struct.h
Examining data/lepton-eda-1.9.11/libleptonattrib/include/gtkextra-marshal.h
Examining data/lepton-eda-1.9.11/libleptonattrib/include/prototype.h
Examining data/lepton-eda-1.9.11/libleptonattrib/include/gtksheet_2_2.h
Examining data/lepton-eda-1.9.11/libleptonattrib/include/gettext.h
Examining data/lepton-eda-1.9.11/libleptonattrib/include/i_vars.h
Examining data/lepton-eda-1.9.11/libleptonattrib/src/s_sheet_data.c
Examining data/lepton-eda-1.9.11/libleptonattrib/src/gtkextra-marshal.c
Examining data/lepton-eda-1.9.11/libleptonattrib/src/s_visibility.c
Examining data/lepton-eda-1.9.11/libleptonattrib/src/listsort.c
Examining data/lepton-eda-1.9.11/libleptonattrib/src/x_window.c
Examining data/lepton-eda-1.9.11/libleptonattrib/src/x_dialog.c
Examining data/lepton-eda-1.9.11/libleptonattrib/src/s_attrib.c
Examining data/lepton-eda-1.9.11/libleptonattrib/src/s_misc.c
Examining data/lepton-eda-1.9.11/libleptonattrib/src/x_gtksheet.c
Examining data/lepton-eda-1.9.11/libleptonattrib/src/f_export.c
Examining data/lepton-eda-1.9.11/libleptonattrib/src/s_toplevel.c
Examining data/lepton-eda-1.9.11/libleptonattrib/src/globals.c
Examining data/lepton-eda-1.9.11/libleptonattrib/src/s_object.c
Examining data/lepton-eda-1.9.11/libleptonattrib/src/gtksheet_2_2.c
Examining data/lepton-eda-1.9.11/libleptonattrib/src/s_string_list.c
Examining data/lepton-eda-1.9.11/libleptonattrib/src/x_fileselect.c
Examining data/lepton-eda-1.9.11/libleptonattrib/src/s_table.c
Examining data/lepton-eda-1.9.11/libleptonattrib/src/attrib.c
Examining data/lepton-eda-1.9.11/libleptonrenderer/edacairo.h
Examining data/lepton-eda-1.9.11/libleptonrenderer/edarenderer.c
Examining data/lepton-eda-1.9.11/libleptonrenderer/edapangorenderer.c
Examining data/lepton-eda-1.9.11/libleptonrenderer/edapangorenderer.h
Examining data/lepton-eda-1.9.11/libleptonrenderer/libleptonrenderer.h
Examining data/lepton-eda-1.9.11/libleptonrenderer/edacairo.c
Examining data/lepton-eda-1.9.11/libleptonrenderer/edarenderer.h
Examining data/lepton-eda-1.9.11/utils/src/lepton-renum.h
Examining data/lepton-eda-1.9.11/utils/src/lepton-sch2pcb.c
Examining data/lepton-eda-1.9.11/utils/src/lepton-renum.c
Examining data/lepton-eda-1.9.11/schematic/include/gschem_bin.h
Examining data/lepton-eda-1.9.11/schematic/include/globals.h
Examining data/lepton-eda-1.9.11/schematic/include/x_dialog.h
Examining data/lepton-eda-1.9.11/schematic/include/gschem_binding_integer.h
Examining data/lepton-eda-1.9.11/schematic/include/gschem_selection_adapter.h
Examining data/lepton-eda-1.9.11/schematic/include/gschem_dialog.h
Examining data/lepton-eda-1.9.11/schematic/include/gschem_options.h
Examining data/lepton-eda-1.9.11/schematic/include/gschem_swatch_column_renderer.h
Examining data/lepton-eda-1.9.11/schematic/include/gschem_page_geometry.h
Examining data/lepton-eda-1.9.11/schematic/include/gschem_binding.h
Examining data/lepton-eda-1.9.11/schematic/include/gschem_dialog_misc.h
Examining data/lepton-eda-1.9.11/schematic/include/gschemhotkeystore.h
Examining data/lepton-eda-1.9.11/schematic/include/gschem_preview.h
Examining data/lepton-eda-1.9.11/schematic/include/prototype.h
Examining data/lepton-eda-1.9.11/schematic/include/page_select_widget.h
Examining data/lepton-eda-1.9.11/schematic/include/gschem.h
Examining data/lepton-eda-1.9.11/schematic/include/gschem_macro_widget.h
Examining data/lepton-eda-1.9.11/schematic/include/gschem_page_view.h
Examining data/lepton-eda-1.9.11/schematic/include/gschem_log_widget.h
Examining data/lepton-eda-1.9.11/schematic/include/gschem_object_properties_widget.h
Examining data/lepton-eda-1.9.11/schematic/include/font_select_widget.h
Examining data/lepton-eda-1.9.11/schematic/include/gschem_integer_combo_box.h
Examining data/lepton-eda-1.9.11/schematic/include/gschem_pin_type_combo.h
Examining data/lepton-eda-1.9.11/schematic/include/gschem_struct.h
Examining data/lepton-eda-1.9.11/schematic/include/gschem_action.h
Examining data/lepton-eda-1.9.11/schematic/include/x_compselect.h
Examining data/lepton-eda-1.9.11/schematic/include/gschem_accel_label.h
Examining data/lepton-eda-1.9.11/schematic/include/gschem_show_hide_text_widget.h
Examining data/lepton-eda-1.9.11/schematic/include/color_edit_widget.h
Examining data/lepton-eda-1.9.11/schematic/include/gschem_fill_swatch_cell_renderer.h
Examining data/lepton-eda-1.9.11/schematic/include/gschem_translate_widget.h
Examining data/lepton-eda-1.9.11/schematic/include/gettext.h
Examining data/lepton-eda-1.9.11/schematic/include/gschem_main_window.h
Examining data/lepton-eda-1.9.11/schematic/include/gschem_bottom_widget.h
Examining data/lepton-eda-1.9.11/schematic/include/gschem_find_text_state.h
Examining data/lepton-eda-1.9.11/schematic/include/gschem_text_properties_widget.h
Examining data/lepton-eda-1.9.11/schematic/include/x_multiattrib.h
Examining data/lepton-eda-1.9.11/schematic/include/i_vars.h
Examining data/lepton-eda-1.9.11/schematic/include/gschem_toplevel.h
Examining data/lepton-eda-1.9.11/schematic/include/x_states.h
Examining data/lepton-eda-1.9.11/schematic/include/gschem_find_text_widget.h
Examining data/lepton-eda-1.9.11/schematic/include/gschem_options_widget.h
Examining data/lepton-eda-1.9.11/schematic/include/gschem_defines.h
Examining data/lepton-eda-1.9.11/schematic/src/gschem_object_properties_widget.c
Examining data/lepton-eda-1.9.11/schematic/src/x_autonumber.c
Examining data/lepton-eda-1.9.11/schematic/src/o_buffer.c
Examining data/lepton-eda-1.9.11/schematic/src/x_print.c
Examining data/lepton-eda-1.9.11/schematic/src/gschem_macro_widget.c
Examining data/lepton-eda-1.9.11/schematic/src/o_select.c
Examining data/lepton-eda-1.9.11/schematic/src/g_action.c
Examining data/lepton-eda-1.9.11/schematic/src/gschem_alignment_combo.c
Examining data/lepton-eda-1.9.11/schematic/src/x_fstylecb.c
Examining data/lepton-eda-1.9.11/schematic/src/schematic_hierarchy.c
Examining data/lepton-eda-1.9.11/schematic/src/gschem_main_window.c
Examining data/lepton-eda-1.9.11/schematic/src/g_attrib.c
Examining data/lepton-eda-1.9.11/schematic/src/x_compselect.c
Examining data/lepton-eda-1.9.11/schematic/src/x_linecapcb.c
Examining data/lepton-eda-1.9.11/schematic/src/g_util.c
Examining data/lepton-eda-1.9.11/schematic/src/o_pin.c
Examining data/lepton-eda-1.9.11/schematic/src/gschem_close_confirmation_dialog.c
Examining data/lepton-eda-1.9.11/schematic/src/gschem_bottom_widget.c
Examining data/lepton-eda-1.9.11/schematic/src/color_edit_widget.c
Examining data/lepton-eda-1.9.11/schematic/src/x_stroke.c
Examining data/lepton-eda-1.9.11/schematic/src/g_hook.c
Examining data/lepton-eda-1.9.11/schematic/src/gschem_action.c
Examining data/lepton-eda-1.9.11/schematic/src/x_event.c
Examining data/lepton-eda-1.9.11/schematic/src/o_place.c
Examining data/lepton-eda-1.9.11/schematic/src/x_misc.c
Examining data/lepton-eda-1.9.11/schematic/src/scheme_undo.c
Examining data/lepton-eda-1.9.11/schematic/src/o_slot.c
Examining data/lepton-eda-1.9.11/schematic/src/o_basic.c
Examining data/lepton-eda-1.9.11/schematic/src/gschem_translate_widget.c
Examining data/lepton-eda-1.9.11/schematic/src/i_basic.c
Examining data/lepton-eda-1.9.11/schematic/src/gschem_find_text_widget.c
Examining data/lepton-eda-1.9.11/schematic/src/s_stretch.c
Examining data/lepton-eda-1.9.11/schematic/src/g_builtins.c
Examining data/lepton-eda-1.9.11/schematic/src/gschem_toplevel.c
Examining data/lepton-eda-1.9.11/schematic/src/gschem_about_dialog.c
Examining data/lepton-eda-1.9.11/schematic/src/gschem_preview.c
Examining data/lepton-eda-1.9.11/schematic/src/parsecmd.c
Examining data/lepton-eda-1.9.11/schematic/src/x_basic.c
Examining data/lepton-eda-1.9.11/schematic/src/o_path.c
Examining data/lepton-eda-1.9.11/schematic/src/gschem_coord_dialog.c
Examining data/lepton-eda-1.9.11/schematic/src/o_grips.c
Examining data/lepton-eda-1.9.11/schematic/src/gschem_rotation_combo.c
Examining data/lepton-eda-1.9.11/schematic/src/o_arc.c
Examining data/lepton-eda-1.9.11/schematic/src/gschem_options.c
Examining data/lepton-eda-1.9.11/schematic/src/o_net.c
Examining data/lepton-eda-1.9.11/schematic/src/gschem_find_text_state.c
Examining data/lepton-eda-1.9.11/schematic/src/x_window.c
Examining data/lepton-eda-1.9.11/schematic/src/g_select.c
Examining data/lepton-eda-1.9.11/schematic/src/o_find.c
Examining data/lepton-eda-1.9.11/schematic/src/x_dialog.c
Examining data/lepton-eda-1.9.11/schematic/src/lepton-schematic.c
Examining data/lepton-eda-1.9.11/schematic/src/o_bus.c
Examining data/lepton-eda-1.9.11/schematic/src/x_linetypecb.c
Examining data/lepton-eda-1.9.11/schematic/src/gschem_slot_edit_dialog.c
Examining data/lepton-eda-1.9.11/schematic/src/i_vars.c
Examining data/lepton-eda-1.9.11/schematic/src/gschem_arc_dialog.c
Examining data/lepton-eda-1.9.11/schematic/src/x_menus.c
Examining data/lepton-eda-1.9.11/schematic/src/gschemhotkeystore.c
Examining data/lepton-eda-1.9.11/schematic/src/gschem_swatch_column_renderer.c
Examining data/lepton-eda-1.9.11/schematic/src/i_callbacks.c
Examining data/lepton-eda-1.9.11/schematic/src/g_keys.c
Examining data/lepton-eda-1.9.11/schematic/src/gschem_bin.c
Examining data/lepton-eda-1.9.11/schematic/src/g_window.c
Examining data/lepton-eda-1.9.11/schematic/src/x_grid.c
Examining data/lepton-eda-1.9.11/schematic/src/gschem_binding_integer.c
Examining data/lepton-eda-1.9.11/schematic/src/page_select_widget.c
Examining data/lepton-eda-1.9.11/schematic/src/gschem_page_geometry.c
Examining data/lepton-eda-1.9.11/schematic/src/o_misc.c
Examining data/lepton-eda-1.9.11/schematic/src/o_attrib.c
Examining data/lepton-eda-1.9.11/schematic/src/o_picture.c
Examining data/lepton-eda-1.9.11/schematic/src/gschem_page_view.c
Examining data/lepton-eda-1.9.11/schematic/src/gschem_accel_label.c
Examining data/lepton-eda-1.9.11/schematic/src/gschem_options_widget.c
Examining data/lepton-eda-1.9.11/schematic/src/gschem_hotkey_dialog.c
Examining data/lepton-eda-1.9.11/schematic/src/x_widgets.c
Examining data/lepton-eda-1.9.11/schematic/src/gschem_integer_combo_box.c
Examining data/lepton-eda-1.9.11/schematic/src/gschem_show_hide_text_widget.c
Examining data/lepton-eda-1.9.11/schematic/src/x_attribedit.c
Examining data/lepton-eda-1.9.11/schematic/src/gschem_fill_swatch_cell_renderer.c
Examining data/lepton-eda-1.9.11/schematic/src/o_line.c
Examining data/lepton-eda-1.9.11/schematic/src/o_delete.c
Examining data/lepton-eda-1.9.11/schematic/src/gschem_binding.c
Examining data/lepton-eda-1.9.11/schematic/src/x_image.c
Examining data/lepton-eda-1.9.11/schematic/src/x_color.c
Examining data/lepton-eda-1.9.11/schematic/src/gschem_selection_adapter.c
Examining data/lepton-eda-1.9.11/schematic/src/x_integerls.c
Examining data/lepton-eda-1.9.11/schematic/src/o_circle.c
Examining data/lepton-eda-1.9.11/schematic/src/gschem_dialog.c
Examining data/lepton-eda-1.9.11/schematic/src/x_colorcb.c
Examining data/lepton-eda-1.9.11/schematic/src/gschem_log_widget.c
Examining data/lepton-eda-1.9.11/schematic/src/gschem_text_properties_widget.c
Examining data/lepton-eda-1.9.11/schematic/src/g_funcs.c
Examining data/lepton-eda-1.9.11/schematic/src/font_select_widget.c
Examining data/lepton-eda-1.9.11/schematic/src/g_rc.c
Examining data/lepton-eda-1.9.11/schematic/src/globals.c
Examining data/lepton-eda-1.9.11/schematic/src/x_multiattrib.c
Examining data/lepton-eda-1.9.11/schematic/src/x_rc.c
Examining data/lepton-eda-1.9.11/schematic/src/gschem_dialog_misc.c
Examining data/lepton-eda-1.9.11/schematic/src/gschem_pin_type_combo.c
Examining data/lepton-eda-1.9.11/schematic/src/o_move.c
Examining data/lepton-eda-1.9.11/schematic/src/o_box.c
Examining data/lepton-eda-1.9.11/schematic/src/m_basic.c
Examining data/lepton-eda-1.9.11/schematic/src/o_copy.c
Examining data/lepton-eda-1.9.11/schematic/src/x_tabs.c
Examining data/lepton-eda-1.9.11/schematic/src/x_newtext.c
Examining data/lepton-eda-1.9.11/schematic/src/o_text.c
Examining data/lepton-eda-1.9.11/schematic/src/a_zoom.c
Examining data/lepton-eda-1.9.11/schematic/src/g_register.c
Examining data/lepton-eda-1.9.11/schematic/src/x_fileselect.c
Examining data/lepton-eda-1.9.11/schematic/src/o_component.c
Examining data/lepton-eda-1.9.11/schematic/src/x_clipboard.c
Examining data/lepton-eda-1.9.11/schematic/src/o_undo.c
Examining data/lepton-eda-1.9.11/liblepton/include/libgedaguile_priv.h
Examining data/lepton-eda-1.9.11/liblepton/include/i_vars_priv.h
Examining data/lepton-eda-1.9.11/liblepton/include/prototype_priv.h
Examining data/lepton-eda-1.9.11/liblepton/include/libgeda_priv.h
Examining data/lepton-eda-1.9.11/liblepton/include/gettext_priv.h
Examining data/lepton-eda-1.9.11/liblepton/include/liblepton/globals.h
Examining data/lepton-eda-1.9.11/liblepton/include/liblepton/geda_forward.h
Examining data/lepton-eda-1.9.11/liblepton/include/liblepton/geda_line_type.h
Examining data/lepton-eda-1.9.11/liblepton/include/liblepton/edascmhookproxy.h
Examining data/lepton-eda-1.9.11/liblepton/include/liblepton/geda_line_cap_type.h
Examining data/lepton-eda-1.9.11/liblepton/include/liblepton/o_types.h
Examining data/lepton-eda-1.9.11/liblepton/include/liblepton/geda_circle.h
Examining data/lepton-eda-1.9.11/liblepton/include/liblepton/liblepton.h
Examining data/lepton-eda-1.9.11/liblepton/include/liblepton/struct.h
Examining data/lepton-eda-1.9.11/liblepton/include/liblepton/geda_text_object.h
Examining data/lepton-eda-1.9.11/liblepton/include/liblepton/funcs.h
Examining data/lepton-eda-1.9.11/liblepton/include/liblepton/geda_box_object.h
Examining data/lepton-eda-1.9.11/liblepton/include/liblepton/geda_string.h
Examining data/lepton-eda-1.9.11/liblepton/include/liblepton/geda_bus_object.h
Examining data/lepton-eda-1.9.11/liblepton/include/liblepton/geda_fill_type.h
Examining data/lepton-eda-1.9.11/liblepton/include/liblepton/edaconfig.h
Examining data/lepton-eda-1.9.11/liblepton/include/liblepton/prototype.h
Examining data/lepton-eda-1.9.11/liblepton/include/liblepton/edaerrors.h
Examining data/lepton-eda-1.9.11/liblepton/include/liblepton/geda_line_object.h
Examining data/lepton-eda-1.9.11/liblepton/include/liblepton/geda_color_map.h
Examining data/lepton-eda-1.9.11/liblepton/include/liblepton/geda_undo.h
Examining data/lepton-eda-1.9.11/liblepton/include/liblepton/geda_bezier.h
Examining data/lepton-eda-1.9.11/liblepton/include/liblepton/geda_picture_object.h
Examining data/lepton-eda-1.9.11/liblepton/include/liblepton/geda_box.h
Examining data/lepton-eda-1.9.11/liblepton/include/liblepton/geda_angle.h
Examining data/lepton-eda-1.9.11/liblepton/include/liblepton/geda_arc_object.h
Examining data/lepton-eda-1.9.11/liblepton/include/liblepton/geda_color.h
Examining data/lepton-eda-1.9.11/liblepton/include/liblepton/geda_line.h
Examining data/lepton-eda-1.9.11/liblepton/include/liblepton/geda_point.h
Examining data/lepton-eda-1.9.11/liblepton/include/liblepton/edascmvaluetypes.h
Examining data/lepton-eda-1.9.11/liblepton/include/liblepton/geda_circle_object.h
Examining data/lepton-eda-1.9.11/liblepton/include/liblepton/geda_path.h
Examining data/lepton-eda-1.9.11/liblepton/include/liblepton/geda_text.h
Examining data/lepton-eda-1.9.11/liblepton/include/liblepton/geda_toplevel.h
Examining data/lepton-eda-1.9.11/liblepton/include/liblepton/geda_arc.h
Examining data/lepton-eda-1.9.11/liblepton/include/liblepton/geda_component.h
Examining data/lepton-eda-1.9.11/liblepton/include/liblepton/geda_page.h
Examining data/lepton-eda-1.9.11/liblepton/include/liblepton/geda_coord.h
Examining data/lepton-eda-1.9.11/liblepton/include/liblepton/geda_pin_object.h
Examining data/lepton-eda-1.9.11/liblepton/include/liblepton/edapaths.h
Examining data/lepton-eda-1.9.11/liblepton/include/liblepton/geda_bounds.h
Examining data/lepton-eda-1.9.11/liblepton/include/liblepton/libgedaguile.h
Examining data/lepton-eda-1.9.11/liblepton/include/liblepton/geda_component_object.h
Examining data/lepton-eda-1.9.11/liblepton/include/liblepton/geda_net_object.h
Examining data/lepton-eda-1.9.11/liblepton/include/liblepton/geda_object.h
Examining data/lepton-eda-1.9.11/liblepton/include/liblepton/geda_path_object.h
Examining data/lepton-eda-1.9.11/liblepton/include/liblepton/defines.h
Examining data/lepton-eda-1.9.11/liblepton/include/liblepton/geda_object_list.h
Examining data/lepton-eda-1.9.11/liblepton/include/liblepton/geda_transform.h
Examining data/lepton-eda-1.9.11/liblepton/include/liblepton/geda_list.h
Examining data/lepton-eda-1.9.11/liblepton/include/liblepton/geda_picture.h
Examining data/lepton-eda-1.9.11/liblepton/include/defines_priv.h
Examining data/lepton-eda-1.9.11/liblepton/tests/test_net_object.c
Examining data/lepton-eda-1.9.11/liblepton/tests/test_angle.c
Examining data/lepton-eda-1.9.11/liblepton/tests/test_pin_object.c
Examining data/lepton-eda-1.9.11/liblepton/tests/test_arc.c
Examining data/lepton-eda-1.9.11/liblepton/tests/test_box.c
Examining data/lepton-eda-1.9.11/liblepton/tests/test_arc_object.c
Examining data/lepton-eda-1.9.11/liblepton/tests/test_coord.c
Examining data/lepton-eda-1.9.11/liblepton/tests/test_string.c
Examining data/lepton-eda-1.9.11/liblepton/tests/test_cpp.cc
Examining data/lepton-eda-1.9.11/liblepton/tests/test_circle_object.c
Examining data/lepton-eda-1.9.11/liblepton/tests/test_text_object.c
Examining data/lepton-eda-1.9.11/liblepton/tests/test_circle.c
Examining data/lepton-eda-1.9.11/liblepton/tests/test_bounds.c
Examining data/lepton-eda-1.9.11/liblepton/tests/test_line.c
Examining data/lepton-eda-1.9.11/liblepton/tests/test_bus_object.c
Examining data/lepton-eda-1.9.11/liblepton/tests/test_point.c
Examining data/lepton-eda-1.9.11/liblepton/tests/test_line_object.c
Examining data/lepton-eda-1.9.11/liblepton/src/edaerrors.c
Examining data/lepton-eda-1.9.11/liblepton/src/geda_path.c
Examining data/lepton-eda-1.9.11/liblepton/src/geda_line.c
Examining data/lepton-eda-1.9.11/liblepton/src/geda_page.c
Examining data/lepton-eda-1.9.11/liblepton/src/geda_box.c
Examining data/lepton-eda-1.9.11/liblepton/src/edascmhookproxy.c
Examining data/lepton-eda-1.9.11/liblepton/src/scheme_smob.c
Examining data/lepton-eda-1.9.11/liblepton/src/geda_path_object.c
Examining data/lepton-eda-1.9.11/liblepton/src/s_encoding.c
Examining data/lepton-eda-1.9.11/liblepton/src/geda_point.c
Examining data/lepton-eda-1.9.11/liblepton/src/o_embed.c
Examining data/lepton-eda-1.9.11/liblepton/src/geda_fill_type.c
Examining data/lepton-eda-1.9.11/liblepton/src/scheme_toplevel.c
Examining data/lepton-eda-1.9.11/liblepton/src/geda_circle_object.c
Examining data/lepton-eda-1.9.11/liblepton/src/s_clib.c
Examining data/lepton-eda-1.9.11/liblepton/src/scheme_closure.c
Examining data/lepton-eda-1.9.11/liblepton/src/edascmvaluetypes.c
Examining data/lepton-eda-1.9.11/liblepton/src/geda_picture.c
Examining data/lepton-eda-1.9.11/liblepton/src/edaconfig.c
Examining data/lepton-eda-1.9.11/liblepton/src/scheme_init.c
Examining data/lepton-eda-1.9.11/liblepton/src/geda_list.c
Examining data/lepton-eda-1.9.11/liblepton/src/geda_undo.c
Examining data/lepton-eda-1.9.11/liblepton/src/geda_line_object.c
Examining data/lepton-eda-1.9.11/liblepton/src/a_basic.c
Examining data/lepton-eda-1.9.11/liblepton/src/scheme_deprecated.c
Examining data/lepton-eda-1.9.11/liblepton/src/s_basic.c
Examining data/lepton-eda-1.9.11/liblepton/src/scheme_config.c
Examining data/lepton-eda-1.9.11/liblepton/src/scheme_log.c
Examining data/lepton-eda-1.9.11/liblepton/src/s_attrib.c
Examining data/lepton-eda-1.9.11/liblepton/src/s_log.c
Examining data/lepton-eda-1.9.11/liblepton/src/i_vars.c
Examining data/lepton-eda-1.9.11/liblepton/src/geda_angle.c
Examining data/lepton-eda-1.9.11/liblepton/src/geda_coord.c
Examining data/lepton-eda-1.9.11/liblepton/src/s_textbuffer.c
Examining data/lepton-eda-1.9.11/liblepton/src/liblepton.c
Examining data/lepton-eda-1.9.11/liblepton/src/scheme_page.c
Examining data/lepton-eda-1.9.11/liblepton/src/geda_pin_object.c
Examining data/lepton-eda-1.9.11/liblepton/src/geda_color_map.c
Examining data/lepton-eda-1.9.11/liblepton/src/s_slot.c
Examining data/lepton-eda-1.9.11/liblepton/src/scheme_attrib.c
Examining data/lepton-eda-1.9.11/liblepton/src/geda_circle.c
Examining data/lepton-eda-1.9.11/liblepton/src/geda_arc_object.c
Examining data/lepton-eda-1.9.11/liblepton/src/geda_picture_object.c
Examining data/lepton-eda-1.9.11/liblepton/src/geda_transform.c
Examining data/lepton-eda-1.9.11/liblepton/src/geda_object.c
Examining data/lepton-eda-1.9.11/liblepton/src/s_weakref.c
Examining data/lepton-eda-1.9.11/liblepton/src/o_attrib.c
Examining data/lepton-eda-1.9.11/liblepton/src/geda_bus_object.c
Examining data/lepton-eda-1.9.11/liblepton/src/o_selection.c
Examining data/lepton-eda-1.9.11/liblepton/src/geda_box_object.c
Examining data/lepton-eda-1.9.11/liblepton/src/m_polygon.c
Examining data/lepton-eda-1.9.11/liblepton/src/geda_text_object.c
Examining data/lepton-eda-1.9.11/liblepton/src/s_conn.c
Examining data/lepton-eda-1.9.11/liblepton/src/geda_arc.c
Examining data/lepton-eda-1.9.11/liblepton/src/scheme_component.c
Examining data/lepton-eda-1.9.11/liblepton/src/geda_bounds.c
Examining data/lepton-eda-1.9.11/liblepton/src/f_basic.c
Examining data/lepton-eda-1.9.11/liblepton/src/scheme_version.c
Examining data/lepton-eda-1.9.11/liblepton/src/geda_component_object.c
Examining data/lepton-eda-1.9.11/liblepton/src/g_rc.c
Examining data/lepton-eda-1.9.11/liblepton/src/g_basic.c
Examining data/lepton-eda-1.9.11/liblepton/src/geda_string.c
Examining data/lepton-eda-1.9.11/liblepton/src/scheme_os.c
Examining data/lepton-eda-1.9.11/liblepton/src/m_hatch.c
Examining data/lepton-eda-1.9.11/liblepton/src/scheme_object.c
Examining data/lepton-eda-1.9.11/liblepton/src/geda_color.c
Examining data/lepton-eda-1.9.11/liblepton/src/s_menu.c
Examining data/lepton-eda-1.9.11/liblepton/src/edapaths.c
Examining data/lepton-eda-1.9.11/liblepton/src/g_register.c
Examining data/lepton-eda-1.9.11/liblepton/src/geda_object_list.c
Examining data/lepton-eda-1.9.11/liblepton/src/geda_toplevel.c
Examining data/lepton-eda-1.9.11/liblepton/src/geda_net_object.c
Examining data/lepton-eda-1.9.11/contrib/sarlacc_schem/sarlacc_schem.c
Examining data/lepton-eda-1.9.11/contrib/olib/geda_sym_format.h
Examining data/lepton-eda-1.9.11/contrib/olib/olib.c
Examining data/lepton-eda-1.9.11/contrib/gmk_sym/gmk_sym.c
Examining data/lepton-eda-1.9.11/contrib/gmk_sym/char_width.c
Examining data/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c
Examining data/lepton-eda-1.9.11/contrib/smash_megafile/smash_megafile.c
Examining data/lepton-eda-1.9.11/cli/config.c
Examining data/lepton-eda-1.9.11/cli/lepton-cli.c
Examining data/lepton-eda-1.9.11/cli/builtins.h
Examining data/lepton-eda-1.9.11/cli/export.c
Examining data/lepton-eda-1.9.11/cli/gettext.h
Examining data/lepton-eda-1.9.11/cli/shell.c
Examining data/lepton-eda-1.9.11/version.h

FINAL RESULTS:

data/lepton-eda-1.9.11/liblepton/src/f_basic.c:411: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/lepton-eda-1.9.11/liblepton/src/f_basic.c:427: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/lepton-eda-1.9.11/liblepton/src/f_basic.c:475:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    if (chmod (real_filename, st.st_mode)) {
data/lepton-eda-1.9.11/liblepton/src/f_basic.c:480: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/lepton-eda-1.9.11/schematic/src/o_misc.c:632: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/lepton-eda-1.9.11/schematic/src/o_misc.c:652: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/lepton-eda-1.9.11/cli/config.c:99:9:  [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 (stderr, multi_store_msg);
data/lepton-eda-1.9.11/cli/config.c:100:9:  [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 (stderr, see_help_msg);
data/lepton-eda-1.9.11/cli/config.c:108:9:  [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 (stderr, multi_store_msg);
data/lepton-eda-1.9.11/cli/config.c:109:9:  [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 (stderr, see_help_msg);
data/lepton-eda-1.9.11/cli/config.c:117:9:  [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 (stderr, multi_store_msg);
data/lepton-eda-1.9.11/cli/config.c:118:9:  [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 (stderr, see_help_msg);
data/lepton-eda-1.9.11/cli/config.c:126:9:  [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 (stderr, multi_store_msg);
data/lepton-eda-1.9.11/cli/config.c:127:9:  [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 (stderr, see_help_msg);
data/lepton-eda-1.9.11/cli/config.c:139: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 (stderr, see_help_msg);
data/lepton-eda-1.9.11/cli/config.c:194:5:  [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 (stderr, see_help_msg);
data/lepton-eda-1.9.11/cli/export.c:212: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 (stderr, see_help_msg);
data/lepton-eda-1.9.11/cli/export.c:267: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 (stderr,
data/lepton-eda-1.9.11/cli/export.c:988:5:  [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 (stderr, bad_arg_msg, optarg, arg);
data/lepton-eda-1.9.11/cli/export.c:989:5:  [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 (stderr, see_help_msg);
data/lepton-eda-1.9.11/cli/export.c:1017:9:  [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 (stderr, bad_arg_msg, optarg, "-a,--align");
data/lepton-eda-1.9.11/cli/export.c:1018:9:  [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 (stderr, see_help_msg);
data/lepton-eda-1.9.11/cli/export.c:1031:9:  [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 (stderr, bad_arg_msg, optarg, "-d,--dpi");
data/lepton-eda-1.9.11/cli/export.c:1032:9:  [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 (stderr, see_help_msg);
data/lepton-eda-1.9.11/cli/export.c:1055:9:  [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 (stderr, bad_arg_msg, optarg, "-k,--scale");
data/lepton-eda-1.9.11/cli/export.c:1056:9:  [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 (stderr, see_help_msg);
data/lepton-eda-1.9.11/cli/export.c:1070:9:  [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 (stderr, bad_arg_msg,
data/lepton-eda-1.9.11/cli/export.c:1072:9:  [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 (stderr, see_help_msg);
data/lepton-eda-1.9.11/cli/export.c:1080:9:  [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 (stderr, bad_arg_msg, optarg, "-m,--margins");
data/lepton-eda-1.9.11/cli/export.c:1081:9:  [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 (stderr, see_help_msg);
data/lepton-eda-1.9.11/cli/export.c:1094:9:  [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 (stderr, bad_arg_msg, optarg, "-p,--paper");
data/lepton-eda-1.9.11/cli/export.c:1095:9:  [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 (stderr, see_help_msg);
data/lepton-eda-1.9.11/cli/export.c:1108:9:  [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 (stderr, bad_arg_msg, optarg, "-s,--size");
data/lepton-eda-1.9.11/cli/export.c:1109:9:  [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 (stderr, see_help_msg);
data/lepton-eda-1.9.11/cli/export.c:1123: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 (stderr, see_help_msg);
data/lepton-eda-1.9.11/cli/export.c:1135:5:  [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 (stderr, see_help_msg);
data/lepton-eda-1.9.11/cli/export.c:1144:5:  [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 (stderr, see_help_msg);
data/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:833:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(text3, "pinnumber=%s", &text2[2]);
data/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:1336:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(text, "netname=%s", text2);
data/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:1346:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(text, "refdes=%s", text2);
data/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:1355:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(text, "pinlabel=%s", text2);
data/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:1360: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/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:1509: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/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:1516: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/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:1517: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/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:1520: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/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:1552: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/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:1832: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/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:1883: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/lepton-eda-1.9.11/contrib/gmk_sym/gmk_sym.c:254: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/lepton-eda-1.9.11/contrib/gmk_sym/gmk_sym.c:429: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/lepton-eda-1.9.11/contrib/gmk_sym/gmk_sym.c:430: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/lepton-eda-1.9.11/contrib/gmk_sym/gmk_sym.c:431: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/lepton-eda-1.9.11/contrib/gmk_sym/gmk_sym.c:442: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(uref,pFields[5]);
data/lepton-eda-1.9.11/contrib/gmk_sym/gmk_sym.c:449: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(footprint,pFields[6]);
data/lepton-eda-1.9.11/contrib/gmk_sym/gmk_sym.c:550: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/lepton-eda-1.9.11/contrib/gmk_sym/gmk_sym.c:551: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/lepton-eda-1.9.11/contrib/olib/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/lepton-eda-1.9.11/contrib/olib/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/lepton-eda-1.9.11/contrib/olib/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/lepton-eda-1.9.11/contrib/olib/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/lepton-eda-1.9.11/contrib/olib/olib.c:2951: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/lepton-eda-1.9.11/contrib/olib/olib.c:2964: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/lepton-eda-1.9.11/contrib/olib/olib.c:2988: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/lepton-eda-1.9.11/contrib/olib/olib.c:2994: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/lepton-eda-1.9.11/contrib/sarlacc_schem/sarlacc_schem.c:395: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/lepton-eda-1.9.11/contrib/smash_megafile/smash_megafile.c:59: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/lepton-eda-1.9.11/contrib/smash_megafile/smash_megafile.c:89: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/lepton-eda-1.9.11/contrib/smash_megafile/smash_megafile.c:103: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/lepton-eda-1.9.11/contrib/smash_megafile/smash_megafile.c:105: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/lepton-eda-1.9.11/liblepton/src/geda_component_object.c:834: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/lepton-eda-1.9.11/liblepton/src/i_vars.c:154:5:  [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 (stderr, errmsg, group, key, val);
data/lepton-eda-1.9.11/liblepton/src/liblepton.c:103:15:  [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.
  size_t sz = snprintf (NULL, 0, msg,
data/lepton-eda-1.9.11/liblepton/src/liblepton.c:111:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  snprintf (res, sz, msg,
data/lepton-eda-1.9.11/schematic/src/x_misc.c:59: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/lepton-eda-1.9.11/utils/src/lepton-renum.c:116: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/lepton-eda-1.9.11/utils/src/lepton-renum.c:122: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/lepton-eda-1.9.11/utils/src/lepton-renum.c:151: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/lepton-eda-1.9.11/utils/src/lepton-renum.c:188: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/lepton-eda-1.9.11/utils/src/lepton-renum.c:207: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/lepton-eda-1.9.11/utils/src/lepton-renum.c:225: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/lepton-eda-1.9.11/utils/src/lepton-renum.c:345: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/lepton-eda-1.9.11/utils/src/lepton-sch2pcb.c:604: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/lepton-eda-1.9.11/utils/src/lepton-sch2pcb.c:974: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/lepton-eda-1.9.11/utils/src/lepton-sch2pcb.c:1055: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/lepton-eda-1.9.11/utils/src/lepton-sch2pcb.c:1385:3:  [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.
  printf (usage_string1, PACKAGE_BUGREPORT, PACKAGE_URL);
data/lepton-eda-1.9.11/utils/src/lepton-sch2pcb.c:1402:3:  [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.
  printf (msg,
data/lepton-eda-1.9.11/cli/config.c:88:15:  [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 ((c = getopt_long (argc, argv, config_short_options,
data/lepton-eda-1.9.11/cli/export.c:170:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (getenv ("LEPTON_INHIBIT_RC_FILES") == NULL) {
data/lepton-eda-1.9.11/cli/export.c:1002:15:  [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 ((c = getopt_long (argc, argv, export_short_options,
data/lepton-eda-1.9.11/cli/lepton-cli.c:118:21:  [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 (-1 != (c = getopt_long (argc, argv, short_options,
data/lepton-eda-1.9.11/cli/shell.c:85:15:  [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 ((c = getopt_long (argc, argv, shell_short_options,
data/lepton-eda-1.9.11/cli/shell.c:134:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (getenv ("LEPTON_INHIBIT_RC_FILES") == NULL) {
data/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:364: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/lepton-eda-1.9.11/contrib/gmk_sym/gmk_sym.c:178: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, "?h:")) != EOF)
data/lepton-eda-1.9.11/contrib/olib/olib.c:2957: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/lepton-eda-1.9.11/contrib/sarlacc_schem/sarlacc_schem.c:784: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/lepton-eda-1.9.11/liblepton/src/liblepton.c:51:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (getenv ("LEPTON_INHIBIT_RC_FILES") == NULL) {
data/lepton-eda-1.9.11/liblepton/src/liblepton.c:66: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* path = getenv ("GUILE_LOAD_COMPILED_PATH");
data/lepton-eda-1.9.11/schematic/src/lepton-schematic.c:44:10:  [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.
  return getenv ("LEPTON_SCM_PRECOMPILE") != NULL;
data/lepton-eda-1.9.11/schematic/src/lepton-schematic.c:60: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.
  char* scm_precompile_script = getenv ("LEPTON_SCM_PRECOMPILE_SCRIPT");
data/lepton-eda-1.9.11/schematic/src/lepton-schematic.c:370:53:  [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.
  printf ("    $GUILE_LOAD_COMPILED_PATH:    %s\n", getenv ("GUILE_LOAD_COMPILED_PATH"));
data/lepton-eda-1.9.11/schematic/src/o_undo.c:53: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/lepton-eda-1.9.11/schematic/src/parsecmd.c:124: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/lepton-eda-1.9.11/schematic/src/parsecmd.c:126: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/lepton-eda-1.9.11/utils/src/lepton-renum.c:78: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/lepton-eda-1.9.11/utils/src/lepton-renum.c:80: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/lepton-eda-1.9.11/utils/src/lepton-sch2pcb.c:1101: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/lepton-eda-1.9.11/utils/src/lepton-sch2pcb.c:1112: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/lepton-eda-1.9.11/cli/export.c:329: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 (m, settings.margins, 4*sizeof(gdouble));
data/lepton-eda-1.9.11/cli/export.c:859: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 (settings.size, lst, 2*sizeof(gdouble));
data/lepton-eda-1.9.11/cli/export.c:875: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 (settings.margins, lst, 4*sizeof(gdouble));
data/lepton-eda-1.9.11/cli/export.c:884: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 (settings.align, lst, 2*sizeof(gdouble));
data/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:386: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/lepton-eda-1.9.11/contrib/gmk_sym/convert_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 buf[MAX_TEXTLEN];
data/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:523: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/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:571: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/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:659: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/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:660: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 text3[MAX_TEXTLEN + 10 + 1];
data/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:730: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/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:738: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/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:746: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/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:754: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/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:762: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/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:770: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/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:778: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/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:786: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/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:814: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/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:828: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 text3[MAX_TEXTLEN + 10 + 1];
data/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:874: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/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:1286: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 + 10 + 1];
data/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:1287: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/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:1486: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/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:1487: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 + 20 + 2];
data/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:1761: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 * 2 + 1], text2[MAX_TEXTLEN];
data/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:1762: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/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:1850: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/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:1862: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/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:1873: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/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:1874: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/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:2092: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/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:2102: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/lepton-eda-1.9.11/contrib/gmk_sym/gmk_sym.c:165: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][6];       /* keep track of pin number used. Assume 300 pins max */
data/lepton-eda-1.9.11/contrib/gmk_sym/gmk_sym.c:173: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/lepton-eda-1.9.11/contrib/gmk_sym/gmk_sym.c:175:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *pFields[MAX_FIELDS];
data/lepton-eda-1.9.11/contrib/gmk_sym/gmk_sym.c:196: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/lepton-eda-1.9.11/contrib/gmk_sym/gmk_sym.c:242: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/lepton-eda-1.9.11/contrib/gmk_sym/gmk_sym.c:422: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/lepton-eda-1.9.11/contrib/gmk_sym/gmk_sym.c:423: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],klass[100];
data/lepton-eda-1.9.11/contrib/gmk_sym/gmk_sym.c:427: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/lepton-eda-1.9.11/contrib/gmk_sym/gmk_sym.c:432: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/lepton-eda-1.9.11/contrib/gmk_sym/gmk_sym.c:433: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/lepton-eda-1.9.11/contrib/gmk_sym/gmk_sym.c:444:37:  [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(klass,"IC");
data/lepton-eda-1.9.11/contrib/gmk_sym/gmk_sym.c:445:37:  [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(klass,"IO");
data/lepton-eda-1.9.11/contrib/gmk_sym/gmk_sym.c:446:37:  [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(klass,"IO");
data/lepton-eda-1.9.11/contrib/gmk_sym/gmk_sym.c:450: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).
    pincount = atoi(pFields[7]);
data/lepton-eda-1.9.11/contrib/gmk_sym/gmk_sym.c:458:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(klass,"IC");
data/lepton-eda-1.9.11/contrib/gmk_sym/gmk_sym.c:459:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(uref,"U?");
data/lepton-eda-1.9.11/contrib/gmk_sym/gmk_sym.c:539: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/lepton-eda-1.9.11/contrib/gmk_sym/gmk_sym.c:540: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/lepton-eda-1.9.11/contrib/gmk_sym/gmk_sym.c:560: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( pin_used[ pin_counter ], pin, sz ); /* save the current pin, the first 5 char */
data/lepton-eda-1.9.11/contrib/gmk_sym/gmk_sym.c:583: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/lepton-eda-1.9.11/contrib/olib/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/lepton-eda-1.9.11/contrib/olib/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/lepton-eda-1.9.11/contrib/olib/olib.c:735: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/lepton-eda-1.9.11/contrib/olib/olib.c:738: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/lepton-eda-1.9.11/contrib/olib/olib.c:739: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/lepton-eda-1.9.11/contrib/olib/olib.c:742: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/lepton-eda-1.9.11/contrib/olib/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 buff[512];
data/lepton-eda-1.9.11/contrib/olib/olib.c:760: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/lepton-eda-1.9.11/contrib/olib/olib.c:765: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/lepton-eda-1.9.11/contrib/olib/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/lepton-eda-1.9.11/contrib/olib/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/lepton-eda-1.9.11/contrib/olib/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/lepton-eda-1.9.11/contrib/olib/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/lepton-eda-1.9.11/contrib/olib/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/lepton-eda-1.9.11/contrib/olib/olib.c:2948: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/lepton-eda-1.9.11/contrib/olib/olib.c:2989: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/lepton-eda-1.9.11/contrib/sarlacc_schem/sarlacc_schem.c:106: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/lepton-eda-1.9.11/contrib/sarlacc_schem/sarlacc_schem.c:130: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/lepton-eda-1.9.11/contrib/sarlacc_schem/sarlacc_schem.c:169: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/lepton-eda-1.9.11/contrib/sarlacc_schem/sarlacc_schem.c:189: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/lepton-eda-1.9.11/contrib/sarlacc_schem/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 data[100];
data/lepton-eda-1.9.11/contrib/sarlacc_schem/sarlacc_schem.c:220:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char localbuf[1000];
data/lepton-eda-1.9.11/contrib/sarlacc_schem/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 partname[256];
data/lepton-eda-1.9.11/contrib/sarlacc_schem/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 filename[512];
data/lepton-eda-1.9.11/contrib/sarlacc_schem/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 full_filename[1024];
data/lepton-eda-1.9.11/contrib/sarlacc_schem/sarlacc_schem.c:235: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/lepton-eda-1.9.11/contrib/sarlacc_schem/sarlacc_schem.c:237:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char value[64];
data/lepton-eda-1.9.11/contrib/sarlacc_schem/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 attrib[64];
data/lepton-eda-1.9.11/contrib/sarlacc_schem/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 attribsav[64];
data/lepton-eda-1.9.11/contrib/sarlacc_schem/sarlacc_schem.c:246:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buff[128];
data/lepton-eda-1.9.11/contrib/sarlacc_schem/sarlacc_schem.c:295: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/lepton-eda-1.9.11/contrib/sarlacc_schem/sarlacc_schem.c:411: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/lepton-eda-1.9.11/contrib/sarlacc_schem/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 filename[1000];
data/lepton-eda-1.9.11/contrib/sarlacc_schem/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 filetext[1000];
data/lepton-eda-1.9.11/contrib/sarlacc_schem/sarlacc_schem.c:457: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/lepton-eda-1.9.11/contrib/sarlacc_schem/sarlacc_schem.c:463: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/lepton-eda-1.9.11/contrib/sarlacc_schem/sarlacc_schem.c:504: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/lepton-eda-1.9.11/contrib/sarlacc_schem/sarlacc_schem.c:521: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/lepton-eda-1.9.11/contrib/sarlacc_schem/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 textbuf[1024];
data/lepton-eda-1.9.11/contrib/sarlacc_schem/sarlacc_schem.c:561: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/lepton-eda-1.9.11/contrib/sarlacc_schem/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 textbuf[1000];
data/lepton-eda-1.9.11/contrib/sarlacc_schem/sarlacc_schem.c:595: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/lepton-eda-1.9.11/contrib/sarlacc_schem/sarlacc_schem.c:612: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/lepton-eda-1.9.11/contrib/sarlacc_schem/sarlacc_schem.c:629: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/lepton-eda-1.9.11/contrib/sarlacc_schem/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 textbuf[256];
data/lepton-eda-1.9.11/contrib/sarlacc_schem/sarlacc_schem.c:682: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/lepton-eda-1.9.11/contrib/sarlacc_schem/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 textbuf[1024];
data/lepton-eda-1.9.11/contrib/sarlacc_schem/sarlacc_schem.c:711: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/lepton-eda-1.9.11/contrib/sarlacc_schem/sarlacc_schem.c:790: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/lepton-eda-1.9.11/contrib/sarlacc_schem/sarlacc_schem.c:821: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/lepton-eda-1.9.11/contrib/sarlacc_schem/sarlacc_schem.c:827: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/lepton-eda-1.9.11/contrib/smash_megafile/smash_megafile.c:40:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[127];
data/lepton-eda-1.9.11/contrib/smash_megafile/smash_megafile.c:41: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/lepton-eda-1.9.11/contrib/smash_megafile/smash_megafile.c:42:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char output_name[127];
data/lepton-eda-1.9.11/contrib/smash_megafile/smash_megafile.c:60: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/lepton-eda-1.9.11/contrib/smash_megafile/smash_megafile.c:61: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/lepton-eda-1.9.11/contrib/smash_megafile/smash_megafile.c:106: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/lepton-eda-1.9.11/liblepton/src/geda_path.c:79: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/lepton-eda-1.9.11/liblepton/src/liblepton.c:67: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[ PATH_MAX ] = "";
data/lepton-eda-1.9.11/liblepton/src/s_log.c:142: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/lepton-eda-1.9.11/liblepton/src/s_slot.c:149: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/lepton-eda-1.9.11/libleptonattrib/src/f_export.c:79: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/lepton-eda-1.9.11/libleptonattrib/src/gtksheet_2_2.c:6557: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/lepton-eda-1.9.11/libleptonattrib/src/listsort.c:94: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/lepton-eda-1.9.11/libleptonattrib/src/listsort.c:95: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/lepton-eda-1.9.11/schematic/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/lepton-eda-1.9.11/schematic/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/lepton-eda-1.9.11/schematic/src/x_compselect.c:772: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(text, name + prefix_len, p - name - prefix_len);
data/lepton-eda-1.9.11/schematic/src/x_compselect.c:780: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_prefix, name, p - name + 1);
data/lepton-eda-1.9.11/schematic/src/x_compselect.c:791: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(text, name + prefix_len, name_len - prefix_len);
data/lepton-eda-1.9.11/schematic/src/x_compselect.c:799: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_prefix, name, name_len);
data/lepton-eda-1.9.11/schematic/src/x_image.c:701: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(GschemToplevel));
data/lepton-eda-1.9.11/schematic/src/x_image.c:703: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(&options, w_current->options, sizeof(GschemOptions));
data/lepton-eda-1.9.11/schematic/src/x_image.c:705: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/lepton-eda-1.9.11/utils/src/lepton-renum.c:56: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/lepton-eda-1.9.11/utils/src/lepton-renum.c:117: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/lepton-eda-1.9.11/utils/src/lepton-renum.c:123: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/lepton-eda-1.9.11/utils/src/lepton-renum.c:123: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/lepton-eda-1.9.11/utils/src/lepton-renum.c:228: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/lepton-eda-1.9.11/utils/src/lepton-renum.c:228: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/lepton-eda-1.9.11/utils/src/lepton-renum.c:278: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/lepton-eda-1.9.11/utils/src/lepton-renum.c:297: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/lepton-eda-1.9.11/utils/src/lepton-renum.c:352: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/lepton-eda-1.9.11/utils/src/lepton-renum.h:56: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/lepton-eda-1.9.11/utils/src/lepton-sch2pcb.c:112: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/lepton-eda-1.9.11/utils/src/lepton-sch2pcb.c:501: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/lepton-eda-1.9.11/utils/src/lepton-sch2pcb.c:573: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/lepton-eda-1.9.11/utils/src/lepton-sch2pcb.c:850: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/lepton-eda-1.9.11/utils/src/lepton-sch2pcb.c:853: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/lepton-eda-1.9.11/utils/src/lepton-sch2pcb.c:959: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/lepton-eda-1.9.11/utils/src/lepton-sch2pcb.c:962: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/lepton-eda-1.9.11/utils/src/lepton-sch2pcb.c:1024: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/lepton-eda-1.9.11/utils/src/lepton-sch2pcb.c:1027: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/lepton-eda-1.9.11/utils/src/lepton-sch2pcb.c:1247: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/lepton-eda-1.9.11/contrib/gmk_sym/char_width.c:37: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/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:415: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/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:502: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/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:810: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/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:954:7:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (getc(fp) == '\r')
data/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:955:5:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getc(fp);
data/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:1319: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/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:1544: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/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:1766: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/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:1772: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/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:1792: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/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:1835: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/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:2019: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/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:2026: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/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:2034:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while((c = getc(fp)) == '+')
data/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:2036: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/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:2039: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/lepton-eda-1.9.11/contrib/gmk_sym/convert_sym.c:2064:7:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  c = getc(fp);
data/lepton-eda-1.9.11/contrib/gmk_sym/gmk_sym.c:253: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/lepton-eda-1.9.11/contrib/gmk_sym/gmk_sym.c:391: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/lepton-eda-1.9.11/contrib/gmk_sym/gmk_sym.c:443:5:  [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/lepton-eda-1.9.11/contrib/gmk_sym/gmk_sym.c:483: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/lepton-eda-1.9.11/contrib/gmk_sym/gmk_sym.c:671: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/lepton-eda-1.9.11/contrib/gmk_sym/gmk_sym.c:672: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/lepton-eda-1.9.11/contrib/gmk_sym/gmk_sym.c:687: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/lepton-eda-1.9.11/contrib/gmk_sym/gmk_sym.c:688: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/lepton-eda-1.9.11/contrib/olib/olib.c:1002: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/lepton-eda-1.9.11/contrib/olib/olib.c:2668: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).
	return yy_scan_bytes( yystr, (int) strlen(yystr) );
data/lepton-eda-1.9.11/contrib/sarlacc_schem/sarlacc_schem.c:109:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(fd,sizebuf,2);
data/lepton-eda-1.9.11/contrib/sarlacc_schem/sarlacc_schem.c:121: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/lepton-eda-1.9.11/contrib/sarlacc_schem/sarlacc_schem.c:137: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/lepton-eda-1.9.11/contrib/sarlacc_schem/sarlacc_schem.c:146: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/lepton-eda-1.9.11/contrib/sarlacc_schem/sarlacc_schem.c:156: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/lepton-eda-1.9.11/contrib/sarlacc_schem/sarlacc_schem.c:172:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(fd1,localbuf,32);
data/lepton-eda-1.9.11/contrib/sarlacc_schem/sarlacc_schem.c:585: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/lepton-eda-1.9.11/contrib/sarlacc_schem/sarlacc_schem.c:723:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(fd1,&tag,1);
data/lepton-eda-1.9.11/contrib/smash_megafile/smash_megafile.c:104: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/lepton-eda-1.9.11/contrib/smash_megafile/smash_megafile.c:121:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      fgetc(megafile);
data/lepton-eda-1.9.11/liblepton/src/a_basic.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).
  if (!g_file_set_contents (filename, buffer, strlen(buffer), err)) {
data/lepton-eda-1.9.11/liblepton/src/f_basic.c:423: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/lepton-eda-1.9.11/liblepton/src/f_basic.c:431:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(saved_umask);
data/lepton-eda-1.9.11/liblepton/src/f_basic.c:447: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/lepton-eda-1.9.11/liblepton/src/f_basic.c:449:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask(saved_umask);
data/lepton-eda-1.9.11/liblepton/src/f_basic.c:552: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/lepton-eda-1.9.11/liblepton/src/geda_color.c:127: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/lepton-eda-1.9.11/liblepton/src/geda_component_object.c:78:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (attr != NULL && strlen (attr) > 0)
data/lepton-eda-1.9.11/liblepton/src/geda_component_object.c:829: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 *basename = (char*) g_malloc (1 + strlen (buf));
data/lepton-eda-1.9.11/liblepton/src/geda_picture_object.c:412: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/lepton-eda-1.9.11/liblepton/src/geda_string.c:145: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).
  return_value = (char*) g_malloc(sizeof(char)*(strlen(string) + 1));
data/lepton-eda-1.9.11/liblepton/src/geda_string.c:151: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/lepton-eda-1.9.11/liblepton/src/geda_text_object.c:440: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/lepton-eda-1.9.11/liblepton/src/geda_text_object.c:587: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/lepton-eda-1.9.11/liblepton/src/liblepton.c:69:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (path != NULL && strlen (path) > 0)
data/lepton-eda-1.9.11/liblepton/src/s_basic.c:61: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/lepton-eda-1.9.11/liblepton/src/s_encoding.c:204: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/lepton-eda-1.9.11/liblepton/src/s_log.c:102: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/lepton-eda-1.9.11/liblepton/src/s_log.c:224: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/lepton-eda-1.9.11/liblepton/src/s_log.c:258:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t len = strlen (message);
data/lepton-eda-1.9.11/liblepton/src/s_slot.c:96: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/lepton-eda-1.9.11/liblepton/src/s_textbuffer.c:80:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    realsize = strlen(data);
data/lepton-eda-1.9.11/libleptonattrib/src/gtksheet_2_2.c:3169: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/lepton-eda-1.9.11/libleptonattrib/src/gtksheet_2_2.c:3618: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/lepton-eda-1.9.11/libleptonattrib/src/gtksheet_2_2.c:3781: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/lepton-eda-1.9.11/libleptonattrib/src/gtksheet_2_2.c:3997: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/lepton-eda-1.9.11/libleptonattrib/src/gtksheet_2_2.c:4075: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/lepton-eda-1.9.11/libleptonattrib/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/lepton-eda-1.9.11/libleptonattrib/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/lepton-eda-1.9.11/libleptonattrib/src/gtksheet_2_2.c:6223: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/lepton-eda-1.9.11/libleptonattrib/src/gtksheet_2_2.c:6504: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/lepton-eda-1.9.11/libleptonattrib/src/gtksheet_2_2.c:6512: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/lepton-eda-1.9.11/libleptonattrib/src/gtksheet_2_2.c:6771: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/lepton-eda-1.9.11/libleptonattrib/src/gtksheet_2_2.c:6863: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/lepton-eda-1.9.11/libleptonattrib/src/gtksheet_2_2.c:8369: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/lepton-eda-1.9.11/libleptonattrib/src/s_object.c:90: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/lepton-eda-1.9.11/libleptonattrib/src/s_object.c:146: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/lepton-eda-1.9.11/libleptonattrib/src/s_table.c:686: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/lepton-eda-1.9.11/libleptonattrib/src/s_toplevel.c:772: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/lepton-eda-1.9.11/libleptonattrib/src/s_toplevel.c:993: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/lepton-eda-1.9.11/libleptonattrib/src/s_toplevel.c:1000: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/lepton-eda-1.9.11/libleptonattrib/src/x_gtksheet.c:182: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/lepton-eda-1.9.11/libleptonrenderer/edapangorenderer.c:391: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 (overbar_text);
data/lepton-eda-1.9.11/schematic/src/color_edit_widget.c:411: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).
                                     strlen (str_1->str),
data/lepton-eda-1.9.11/schematic/src/gschem_hotkey_dialog.c:104: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).
  gchar* cmd_ci = g_utf8_casefold (cmd, strlen (cmd));
data/lepton-eda-1.9.11/schematic/src/gschem_hotkey_dialog.c:105: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).
  gchar* key_ci = g_utf8_casefold (key, strlen (key));
data/lepton-eda-1.9.11/schematic/src/gschem_hotkey_dialog.c:106: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).
  gchar* txt_ci = g_utf8_casefold (txt, strlen (txt));
data/lepton-eda-1.9.11/schematic/src/gschem_macro_widget.c:316: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).
  if (macro_text == NULL || strlen(macro_text) <= 0)
data/lepton-eda-1.9.11/schematic/src/gschem_slot_edit_dialog.c:62: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/lepton-eda-1.9.11/schematic/src/gschem_toplevel.c:775: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 (font != NULL && strlen(font) > 0)
data/lepton-eda-1.9.11/schematic/src/o_misc.c:385: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/lepton-eda-1.9.11/schematic/src/o_misc.c:419: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/lepton-eda-1.9.11/schematic/src/o_misc.c:610: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/lepton-eda-1.9.11/schematic/src/o_misc.c:612:13:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
            umask(saved_umask);
data/lepton-eda-1.9.11/schematic/src/o_misc.c:631: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/lepton-eda-1.9.11/schematic/src/o_misc.c:637:11:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
          umask(saved_umask);
data/lepton-eda-1.9.11/schematic/src/o_misc.c:648: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/lepton-eda-1.9.11/schematic/src/o_misc.c:656:11:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
          umask(saved_umask);
data/lepton-eda-1.9.11/schematic/src/x_attribedit.c:564: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/lepton-eda-1.9.11/schematic/src/x_autonumber.c:330: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/lepton-eda-1.9.11/schematic/src/x_autonumber.c:337: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/lepton-eda-1.9.11/schematic/src/x_autonumber.c:346: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/lepton-eda-1.9.11/schematic/src/x_autonumber.c:674: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/lepton-eda-1.9.11/schematic/src/x_autonumber.c:680: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/lepton-eda-1.9.11/schematic/src/x_autonumber.c:685: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/lepton-eda-1.9.11/schematic/src/x_autonumber.c:703: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/lepton-eda-1.9.11/schematic/src/x_autonumber.c:704: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/lepton-eda-1.9.11/schematic/src/x_clipboard.c:62: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/lepton-eda-1.9.11/schematic/src/x_compselect.c:759: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).
    g_assert(strncmp(name, prefix, strlen(prefix)) == 0);
data/lepton-eda-1.9.11/schematic/src/x_compselect.c:760:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char *p = (char*) strchr(name + strlen(prefix) + 1, '/');
data/lepton-eda-1.9.11/schematic/src/x_compselect.c:766:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t prefix_len = strlen(prefix);
data/lepton-eda-1.9.11/schematic/src/x_compselect.c:784:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t prefix_len = strlen(prefix);
data/lepton-eda-1.9.11/schematic/src/x_compselect.c:785: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 name_len = strlen(name);
data/lepton-eda-1.9.11/schematic/src/x_compselect.c:818: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_prefix, strlen(new_prefix)) == 0) {
data/lepton-eda-1.9.11/schematic/src/x_multiattrib.c:368: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/lepton-eda-1.9.11/utils/src/lepton-renum.c:330: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/lepton-eda-1.9.11/utils/src/lepton-sch2pcb.c:673: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/lepton-eda-1.9.11/utils/src/lepton-sch2pcb.c:674: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/lepton-eda-1.9.11/utils/src/lepton-sch2pcb.c:1128: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/lepton-eda-1.9.11/utils/src/lepton-sch2pcb.c:1161: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/lepton-eda-1.9.11/utils/src/lepton-sch2pcb.c:1162: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/lepton-eda-1.9.11/utils/src/lepton-sch2pcb.c:1257: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);

ANALYSIS SUMMARY:

Hits = 376
Lines analyzed = 131255 in approximately 8.87 seconds (14803 lines/second)
Physical Source Lines of Code (SLOC) = 77195
Hits@level = [0] 782 [1] 120 [2] 147 [3]  22 [4]  81 [5]   6
Hits@level+ = [0+] 1158 [1+] 376 [2+] 256 [3+] 109 [4+]  87 [5+]   6
Hits/KSLOC@level+ = [0+] 15.001 [1+] 4.87078 [2+] 3.31628 [3+] 1.41201 [4+] 1.12702 [5+] 0.0777252
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.