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/xorp-1.8.6~wip.20160715/libxipc/xrl_pf.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/permits.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/xrl_dispatcher.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/tests/test_xrl_parser.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/tests/test_xrl_args.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/tests/test_receiver.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/tests/test_stcp.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/tests/test_xrl_receiver.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/tests/test_finder_tcp.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/tests/test_xrl_router.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/tests/test_finder_to.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/tests/test_fp64.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/tests/test_xrl_sender.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/tests/test_finder_events.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/tests/test_stcppf.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/tests/test_lemming.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/tests/test_xrl.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/tests/test_xrl_error.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/tests/test_finder_msgs.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/tests/test_xrl_atom.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/tests/test_finder.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/tests/test_finder_messenger.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/fp64.h
Examining data/xorp-1.8.6~wip.20160715/libxipc/finder_msgs.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/xrl_pf_factory.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/finder_client.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/hmac.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/finder_xrl_queue.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/ipc_module.h
Examining data/xorp-1.8.6~wip.20160715/libxipc/finder_messenger.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/finder_tcp.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/xrl_atom_encoding.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/xrl_error.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/sockutil.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/finder_xrl_target.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/finder_client_xrl_target.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/xrl_cmd_map.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/finder_tcp_messenger.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/hmac_md5.c
Examining data/xorp-1.8.6~wip.20160715/libxipc/xrl_parser.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/xrl_parser_input.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/xrl_tokens.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/hmac_md5.h
Examining data/xorp-1.8.6~wip.20160715/libxipc/fp64serial.h
Examining data/xorp-1.8.6~wip.20160715/libxipc/xuid.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/xrl_args.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/xrl_module.h
Examining data/xorp-1.8.6~wip.20160715/libxipc/finder.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/xrl_pf_stcp_ph.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/finder_main.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/xrl_router.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/xrl_atom.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/xrl_atom_list.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/finder_client_observer.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/fp64serial.c
Examining data/xorp-1.8.6~wip.20160715/libxipc/xrl_pf_unix.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/xrl.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/finder_module.h
Examining data/xorp-1.8.6~wip.20160715/libxipc/finder_server.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/xrl_std_router.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/call_xrl.cc
Examining data/xorp-1.8.6~wip.20160715/libxipc/xrl_pf_stcp.cc
Examining data/xorp-1.8.6~wip.20160715/rib/protocol.cc
Examining data/xorp-1.8.6~wip.20160715/rib/rib_manager.cc
Examining data/xorp-1.8.6~wip.20160715/rib/main_routemap.cc
Examining data/xorp-1.8.6~wip.20160715/rib/rt_tab_origin.cc
Examining data/xorp-1.8.6~wip.20160715/rib/tests/test_register_xrls.cc
Examining data/xorp-1.8.6~wip.20160715/rib/tests/test_rib_xrls.cc
Examining data/xorp-1.8.6~wip.20160715/rib/tests/test_rib_direct.cc
Examining data/xorp-1.8.6~wip.20160715/rib/tests/dummy_register_server.cc
Examining data/xorp-1.8.6~wip.20160715/rib/tests/test_redist.cc
Examining data/xorp-1.8.6~wip.20160715/rib/tests/test_deletion.cc
Examining data/xorp-1.8.6~wip.20160715/rib/tests/rt_tab_expect.cc
Examining data/xorp-1.8.6~wip.20160715/rib/tests/test_register.cc
Examining data/xorp-1.8.6~wip.20160715/rib/parser.cc
Examining data/xorp-1.8.6~wip.20160715/rib/rt_tab_redist.cc
Examining data/xorp-1.8.6~wip.20160715/rib/rt_tab_merged.cc
Examining data/xorp-1.8.6~wip.20160715/rib/main_rib.cc
Examining data/xorp-1.8.6~wip.20160715/rib/rib_varrw.cc
Examining data/xorp-1.8.6~wip.20160715/rib/rt_tab_deletion.cc
Examining data/xorp-1.8.6~wip.20160715/rib/rt_tab_base.cc
Examining data/xorp-1.8.6~wip.20160715/rib/profile_vars.cc
Examining data/xorp-1.8.6~wip.20160715/rib/rib_module.h
Examining data/xorp-1.8.6~wip.20160715/rib/rib.cc
Examining data/xorp-1.8.6~wip.20160715/rib/rt_tab_pol_conn.cc
Examining data/xorp-1.8.6~wip.20160715/rib/add_route.cc
Examining data/xorp-1.8.6~wip.20160715/rib/rt_tab_pol_redist.cc
Examining data/xorp-1.8.6~wip.20160715/rib/route.cc
Examining data/xorp-1.8.6~wip.20160715/rib/redist_xrl.cc
Examining data/xorp-1.8.6~wip.20160715/rib/rt_tab_register.cc
Examining data/xorp-1.8.6~wip.20160715/rib/register_server.cc
Examining data/xorp-1.8.6~wip.20160715/rib/vifmanager.cc
Examining data/xorp-1.8.6~wip.20160715/rib/tools/show_distances.cc
Examining data/xorp-1.8.6~wip.20160715/rib/tools/show_routes.cc
Examining data/xorp-1.8.6~wip.20160715/rib/rt_tab_extint.cc
Examining data/xorp-1.8.6~wip.20160715/rib/xrl_target.cc
Examining data/xorp-1.8.6~wip.20160715/rib/routemap.cc
Examining data/xorp-1.8.6~wip.20160715/rib/rt_tab_log.cc
Examining data/xorp-1.8.6~wip.20160715/fib2mrib/fib2mrib_module.h
Examining data/xorp-1.8.6~wip.20160715/fib2mrib/fib2mrib_node.cc
Examining data/xorp-1.8.6~wip.20160715/fib2mrib/xrl_fib2mrib_node.cc
Examining data/xorp-1.8.6~wip.20160715/fib2mrib/xorp_fib2mrib.cc
Examining data/xorp-1.8.6~wip.20160715/fib2mrib/fib2mrib_varrw.cc
Examining data/xorp-1.8.6~wip.20160715/devnotes/template_gpl.h
Examining data/xorp-1.8.6~wip.20160715/devnotes/template_gpl.cc
Examining data/xorp-1.8.6~wip.20160715/devnotes/template_lgpl.h
Examining data/xorp-1.8.6~wip.20160715/devnotes/template_gpl.c
Examining data/xorp-1.8.6~wip.20160715/devnotes/template_lgpl.c
Examining data/xorp-1.8.6~wip.20160715/devnotes/template_lgpl.cc
Examining data/xorp-1.8.6~wip.20160715/libcomm/comm_private.h
Examining data/xorp-1.8.6~wip.20160715/libcomm/tests/test_comm.c
Examining data/xorp-1.8.6~wip.20160715/libcomm/tests/test_connect.cc
Examining data/xorp-1.8.6~wip.20160715/libcomm/comm_user.c
Examining data/xorp-1.8.6~wip.20160715/libcomm/comm_sock.c
Examining data/xorp-1.8.6~wip.20160715/libcomm/comm_module.h
Examining data/xorp-1.8.6~wip.20160715/libcomm/comm_api.h
Examining data/xorp-1.8.6~wip.20160715/fea/io_ip_manager.cc
Examining data/xorp-1.8.6~wip.20160715/fea/tests/test_fea_rawlink.cc
Examining data/xorp-1.8.6~wip.20160715/fea/tests/test_xrl_sockets4_udp.cc
Examining data/xorp-1.8.6~wip.20160715/fea/tests/test_xrl_sockets4_tcp.cc
Examining data/xorp-1.8.6~wip.20160715/fea/mfea_config.cc
Examining data/xorp-1.8.6~wip.20160715/fea/mfea_dataflow.cc
Examining data/xorp-1.8.6~wip.20160715/fea/mfea_vif.cc
Examining data/xorp-1.8.6~wip.20160715/fea/io_link_manager.cc
Examining data/xorp-1.8.6~wip.20160715/fea/fibconfig.cc
Examining data/xorp-1.8.6~wip.20160715/fea/xrl_fea_io.cc
Examining data/xorp-1.8.6~wip.20160715/fea/xrl_fib_client_manager.cc
Examining data/xorp-1.8.6~wip.20160715/fea/nexthop_port_mapper.cc
Examining data/xorp-1.8.6~wip.20160715/fea/fibconfig_transaction.cc
Examining data/xorp-1.8.6~wip.20160715/fea/fea_data_plane_manager.cc
Examining data/xorp-1.8.6~wip.20160715/fea/mfea_module.h
Examining data/xorp-1.8.6~wip.20160715/fea/ifconfig_transaction.cc
Examining data/xorp-1.8.6~wip.20160715/fea/ifconfig_reporter.cc
Examining data/xorp-1.8.6~wip.20160715/fea/profile_vars.cc
Examining data/xorp-1.8.6~wip.20160715/fea/iftree.cc
Examining data/xorp-1.8.6~wip.20160715/fea/io_ip.cc
Examining data/xorp-1.8.6~wip.20160715/fea/xrl_io_tcpudp_manager.cc
Examining data/xorp-1.8.6~wip.20160715/fea/mfea_node.cc
Examining data/xorp-1.8.6~wip.20160715/fea/xrl_mfea_node.cc
Examining data/xorp-1.8.6~wip.20160715/fea/xrl_fea_node.cc
Examining data/xorp-1.8.6~wip.20160715/fea/io_link.cc
Examining data/xorp-1.8.6~wip.20160715/fea/mfea_node_cli.cc
Examining data/xorp-1.8.6~wip.20160715/fea/xrl_io_link_manager.cc
Examining data/xorp-1.8.6~wip.20160715/fea/fibconfig_forwarding.cc
Examining data/xorp-1.8.6~wip.20160715/fea/firewall_manager.cc
Examining data/xorp-1.8.6~wip.20160715/fea/firewall_transaction.cc
Examining data/xorp-1.8.6~wip.20160715/fea/io_tcpudp.cc
Examining data/xorp-1.8.6~wip.20160715/fea/fea_io.cc
Examining data/xorp-1.8.6~wip.20160715/fea/fea_module.h
Examining data/xorp-1.8.6~wip.20160715/fea/io_tcpudp_manager.cc
Examining data/xorp-1.8.6~wip.20160715/fea/xorp_fea.cc
Examining data/xorp-1.8.6~wip.20160715/fea/ifconfig.cc
Examining data/xorp-1.8.6~wip.20160715/fea/tools/show_interfaces.cc
Examining data/xorp-1.8.6~wip.20160715/fea/xrl_fea_target.cc
Examining data/xorp-1.8.6~wip.20160715/fea/xrl_io_ip_manager.cc
Examining data/xorp-1.8.6~wip.20160715/fea/ifconfig_property.cc
Examining data/xorp-1.8.6~wip.20160715/fea/firewall_entry.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/control_socket/click_socket.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/control_socket/windows_rras_support.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/control_socket/routing_socket_utilities.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/control_socket/windows_rtm_pipe.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/control_socket/netlink_socket_utilities.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/control_socket/routing_socket.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/control_socket/windows_routing_socket.h
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/control_socket/netlink_socket.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/managers/fea_data_plane_manager_bsd.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/managers/fea_data_plane_manager_windows.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/managers/fea_data_plane_manager_dummy.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/managers/fea_data_plane_manager_linux.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/managers/fea_data_plane_manager_click.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/io/io_tcpudp_socket.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/io/io_link_pcap.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/io/io_tcpudp_dummy.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/io/io_link_dummy.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/io/io_ip_socket.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/io/io_ip_dummy.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_entry_get_rtmv2.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_entry_observer_netlink_socket.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_entry_observer_routing_socket.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_forwarding_solaris.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_table_get_netlink_socket.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_entry_get_dummy.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_forwarding_sysctl.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_entry_get_netlink_socket.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_table_set_routing_socket.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_table_get_dummy.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_entry_set_click.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_entry_observer_rtmv2.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_entry_set_dummy.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_entry_set_iphelper.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_entry_set_rtmv2.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_entry_observer_iphelper.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_entry_get_click.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_table_parse_routing_socket.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_table_set_netlink_socket.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_table_observer_rtmv2.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_table_observer_iphelper.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_table_set_click.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_forwarding_windows.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_entry_observer_dummy.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_table_get_sysctl.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_entry_get_iphelper.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_table_set_iphelper.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_table_observer_dummy.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_table_set_rtmv2.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_table_get_click.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_entry_set_netlink_socket.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_entry_parse_routing_socket.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_forwarding_dummy.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_table_parse_netlink_socket.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_entry_set_routing_socket.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_entry_get_routing_socket.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_forwarding_proc_linux.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_table_get_iphelper.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_table_set_dummy.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_table_observer_routing_socket.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_table_observer_netlink_socket.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/firewall/firewall_get_dummy.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/firewall/firewall_get_netfilter.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/firewall/firewall_set_pf.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/firewall/firewall_set_ipfw2.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/firewall/firewall_get_ipfw2.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/firewall/firewall_set_dummy.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/firewall/firewall_get_pf.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/firewall/firewall_set_netfilter.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_observer_dummy.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_get_iphelper.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_parse_getifaddrs.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_vlan_set_linux.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_observer_netlink_socket.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_property_dummy.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_set.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_set_click.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_set_ioctl.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_property_windows.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_vlan_get_linux.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_parse_routing_socket.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_observer_routing_socket.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_get_sysctl.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_get_click.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_media.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_set_dummy.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_property_linux.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_get_dummy.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_property_bsd.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_observer_iphelper.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_set_netlink_socket.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_get_proc_linux.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_get_getifaddrs.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_property_solaris.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_set_iphelper.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_get_netlink_socket.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_parse_ioctl.cc
Examining data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_get_ioctl.cc
Examining data/xorp-1.8.6~wip.20160715/fea/libfeaclient_bridge.cc
Examining data/xorp-1.8.6~wip.20160715/fea/mfea_mrouter.cc
Examining data/xorp-1.8.6~wip.20160715/fea/fea_node.cc
Examining data/xorp-1.8.6~wip.20160715/rtrmgr/master_conf_tree.cc
Examining data/xorp-1.8.6~wip.20160715/rtrmgr/glob_win32.h
Examining data/xorp-1.8.6~wip.20160715/rtrmgr/tests/test_module_manager.cc
Examining data/xorp-1.8.6~wip.20160715/rtrmgr/tests/test_templates.cc
Examining data/xorp-1.8.6~wip.20160715/rtrmgr/tests/test_sample_config.cc
Examining data/xorp-1.8.6~wip.20160715/rtrmgr/userdb.cc
Examining data/xorp-1.8.6~wip.20160715/rtrmgr/op_commands.cc
Examining data/xorp-1.8.6~wip.20160715/rtrmgr/profiler.cc
Examining data/xorp-1.8.6~wip.20160715/rtrmgr/glob_win32.c
Examining data/xorp-1.8.6~wip.20160715/rtrmgr/rtrmgr_module.h
Examining data/xorp-1.8.6~wip.20160715/rtrmgr/template_commands.cc
Examining data/xorp-1.8.6~wip.20160715/rtrmgr/slave_module_manager.cc
Examining data/xorp-1.8.6~wip.20160715/rtrmgr/xrl_rtrmgr_interface.cc
Examining data/xorp-1.8.6~wip.20160715/rtrmgr/module_command.cc
Examining data/xorp-1.8.6~wip.20160715/rtrmgr/task.cc
Examining data/xorp-1.8.6~wip.20160715/rtrmgr/util.cc
Examining data/xorp-1.8.6~wip.20160715/rtrmgr/xrldb.cc
Examining data/xorp-1.8.6~wip.20160715/rtrmgr/slave_conf_tree_node.cc
Examining data/xorp-1.8.6~wip.20160715/rtrmgr/template_tree_node.cc
Examining data/xorp-1.8.6~wip.20160715/rtrmgr/conf_tree.cc
Examining data/xorp-1.8.6~wip.20160715/rtrmgr/conf_tree_node.cc
Examining data/xorp-1.8.6~wip.20160715/rtrmgr/slave_conf_tree.cc
Examining data/xorp-1.8.6~wip.20160715/rtrmgr/generic_module_manager.cc
Examining data/xorp-1.8.6~wip.20160715/rtrmgr/unexpanded_xrl.cc
Examining data/xorp-1.8.6~wip.20160715/rtrmgr/xorpsh_main.cc
Examining data/xorp-1.8.6~wip.20160715/rtrmgr/template_base_command.cc
Examining data/xorp-1.8.6~wip.20160715/rtrmgr/command_tree.cc
Examining data/xorp-1.8.6~wip.20160715/rtrmgr/xrl_xorpsh_interface.cc
Examining data/xorp-1.8.6~wip.20160715/rtrmgr/module_manager.cc
Examining data/xorp-1.8.6~wip.20160715/rtrmgr/master_template_tree.cc
Examining data/xorp-1.8.6~wip.20160715/rtrmgr/master_template_tree_node.cc
Examining data/xorp-1.8.6~wip.20160715/rtrmgr/template_tree.cc
Examining data/xorp-1.8.6~wip.20160715/rtrmgr/randomness.cc
Examining data/xorp-1.8.6~wip.20160715/rtrmgr/cli.cc
Examining data/xorp-1.8.6~wip.20160715/rtrmgr/config_operators.cc
Examining data/xorp-1.8.6~wip.20160715/rtrmgr/unexpanded_program.cc
Examining data/xorp-1.8.6~wip.20160715/rtrmgr/xorp_client.cc
Examining data/xorp-1.8.6~wip.20160715/rtrmgr/master_conf_tree_node.cc
Examining data/xorp-1.8.6~wip.20160715/rtrmgr/main_rtrmgr.cc
Examining data/xorp-1.8.6~wip.20160715/libproto/packet.cc
Examining data/xorp-1.8.6~wip.20160715/libproto/tests/test_checksum.cc
Examining data/xorp-1.8.6~wip.20160715/libproto/tests/test_spt.cc
Examining data/xorp-1.8.6~wip.20160715/libproto/tests/test_packet.cc
Examining data/xorp-1.8.6~wip.20160715/libproto/tests/test_config_node_id.cc
Examining data/xorp-1.8.6~wip.20160715/libproto/libproto_module.h
Examining data/xorp-1.8.6~wip.20160715/libproto/proto_state.cc
Examining data/xorp-1.8.6~wip.20160715/libproto/proto_node_cli.cc
Examining data/xorp-1.8.6~wip.20160715/libproto/checksum.h
Examining data/xorp-1.8.6~wip.20160715/libproto/spt.cc
Examining data/xorp-1.8.6~wip.20160715/libproto/checksum.c
Examining data/xorp-1.8.6~wip.20160715/libproto/proto_unit.cc
Examining data/xorp-1.8.6~wip.20160715/policy/dependency.cc
Examining data/xorp-1.8.6~wip.20160715/policy/source_match_code_generator.cc
Examining data/xorp-1.8.6~wip.20160715/policy/tests/file_varrw.cc
Examining data/xorp-1.8.6~wip.20160715/policy/tests/yacc.yy_compile_policy.cc
Examining data/xorp-1.8.6~wip.20160715/policy/tests/process_watch_fake.cc
Examining data/xorp-1.8.6~wip.20160715/policy/tests/yacc.yy_compile_policy.cc.h
Examining data/xorp-1.8.6~wip.20160715/policy/tests/compilepolicy.cc
Examining data/xorp-1.8.6~wip.20160715/policy/tests/policybench.cc
Examining data/xorp-1.8.6~wip.20160715/policy/tests/lex.yy_compile_policy.cc
Examining data/xorp-1.8.6~wip.20160715/policy/tests/execpolicy.cc
Examining data/xorp-1.8.6~wip.20160715/policy/tests/filter_manager_fake.cc
Examining data/xorp-1.8.6~wip.20160715/policy/parser.cc
Examining data/xorp-1.8.6~wip.20160715/policy/visitor_dep.cc
Examining data/xorp-1.8.6~wip.20160715/policy/code_list.cc
Examining data/xorp-1.8.6~wip.20160715/policy/code_generator.cc
Examining data/xorp-1.8.6~wip.20160715/policy/policy_statement.cc
Examining data/xorp-1.8.6~wip.20160715/policy/export_code_generator.cc
Examining data/xorp-1.8.6~wip.20160715/policy/visitor_semantic.cc
Examining data/xorp-1.8.6~wip.20160715/policy/filter_manager.cc
Examining data/xorp-1.8.6~wip.20160715/policy/xorp_policy.cc
Examining data/xorp-1.8.6~wip.20160715/policy/set_map.cc
Examining data/xorp-1.8.6~wip.20160715/policy/process_watch.cc
Examining data/xorp-1.8.6~wip.20160715/policy/semantic_varrw.cc
Examining data/xorp-1.8.6~wip.20160715/policy/policy_map.cc
Examining data/xorp-1.8.6~wip.20160715/policy/visitor_test.cc
Examining data/xorp-1.8.6~wip.20160715/policy/policy_list.cc
Examining data/xorp-1.8.6~wip.20160715/policy/policy_module.h
Examining data/xorp-1.8.6~wip.20160715/policy/protocol_map.cc
Examining data/xorp-1.8.6~wip.20160715/policy/configuration.cc
Examining data/xorp-1.8.6~wip.20160715/policy/test_varrw.cc
Examining data/xorp-1.8.6~wip.20160715/policy/code.cc
Examining data/xorp-1.8.6~wip.20160715/policy/xrl_target.cc
Examining data/xorp-1.8.6~wip.20160715/policy/var_map.cc
Examining data/xorp-1.8.6~wip.20160715/policy/backend/version_filter.cc
Examining data/xorp-1.8.6~wip.20160715/policy/backend/policy_filter.cc
Examining data/xorp-1.8.6~wip.20160715/policy/backend/policy_filters.cc
Examining data/xorp-1.8.6~wip.20160715/policy/backend/iv_exec.cc
Examining data/xorp-1.8.6~wip.20160715/policy/backend/policy_profiler.cc
Examining data/xorp-1.8.6~wip.20160715/policy/backend/set_manager.cc
Examining data/xorp-1.8.6~wip.20160715/policy/backend/policy_redist_map.cc
Examining data/xorp-1.8.6~wip.20160715/policy/backend/version_filters.cc
Examining data/xorp-1.8.6~wip.20160715/policy/backend/single_varrw.cc
Examining data/xorp-1.8.6~wip.20160715/policy/backend/policytags.cc
Examining data/xorp-1.8.6~wip.20160715/policy/term.cc
Examining data/xorp-1.8.6~wip.20160715/policy/visitor_printer.cc
Examining data/xorp-1.8.6~wip.20160715/policy/common/dispatcher.cc
Examining data/xorp-1.8.6~wip.20160715/policy/common/element_base.cc
Examining data/xorp-1.8.6~wip.20160715/policy/common/register_elements.cc
Examining data/xorp-1.8.6~wip.20160715/policy/common/elem_set.cc
Examining data/xorp-1.8.6~wip.20160715/policy/common/register_operations.cc
Examining data/xorp-1.8.6~wip.20160715/policy/common/element.cc
Examining data/xorp-1.8.6~wip.20160715/policy/common/element_factory.cc
Examining data/xorp-1.8.6~wip.20160715/policy/common/filter.cc
Examining data/xorp-1.8.6~wip.20160715/policy/common/varrw.cc
Examining data/xorp-1.8.6~wip.20160715/policy/common/policy_utils.cc
Examining data/xorp-1.8.6~wip.20160715/policy/common/operator.cc
Examining data/xorp-1.8.6~wip.20160715/policy/policy_target.cc
Examining data/xorp-1.8.6~wip.20160715/xrl/tests/test_generated.cc
Examining data/xorp-1.8.6~wip.20160715/xrl/tests/test_tgt.cc
Examining data/xorp-1.8.6~wip.20160715/xrl/tests/test_xifs.cc
Examining data/xorp-1.8.6~wip.20160715/pim/pim_rp.cc
Examining data/xorp-1.8.6~wip.20160715/pim/pim_vif.cc
Examining data/xorp-1.8.6~wip.20160715/pim/pim_bsr.cc
Examining data/xorp-1.8.6~wip.20160715/pim/pim_proto_join_prune_message.cc
Examining data/xorp-1.8.6~wip.20160715/pim/pim_proto.h
Examining data/xorp-1.8.6~wip.20160715/pim/pim_nbr.cc
Examining data/xorp-1.8.6~wip.20160715/pim/pim_scope_zone_table.cc
Examining data/xorp-1.8.6~wip.20160715/pim/pim_config.cc
Examining data/xorp-1.8.6~wip.20160715/pim/pim_proto_assert.cc
Examining data/xorp-1.8.6~wip.20160715/pim/xrl_pim_node.cc
Examining data/xorp-1.8.6~wip.20160715/pim/pim_node_cli.cc
Examining data/xorp-1.8.6~wip.20160715/pim/pim_proto_register.cc
Examining data/xorp-1.8.6~wip.20160715/pim/xorp_pimsm4.cc
Examining data/xorp-1.8.6~wip.20160715/pim/pim_mre_task.cc
Examining data/xorp-1.8.6~wip.20160715/pim/pim_proto_graft.cc
Examining data/xorp-1.8.6~wip.20160715/pim/pim_mre_track_state.cc
Examining data/xorp-1.8.6~wip.20160715/pim/pim_proto_hello.cc
Examining data/xorp-1.8.6~wip.20160715/pim/pim_mre_register.cc
Examining data/xorp-1.8.6~wip.20160715/pim/pim_node.cc
Examining data/xorp-1.8.6~wip.20160715/pim/pim_proto_graft_ack.cc
Examining data/xorp-1.8.6~wip.20160715/pim/pim_mre_data.cc
Examining data/xorp-1.8.6~wip.20160715/pim/pim_proto_bootstrap.cc
Examining data/xorp-1.8.6~wip.20160715/pim/pim_proto_register_stop.cc
Examining data/xorp-1.8.6~wip.20160715/pim/pim_mrt_mfc.cc
Examining data/xorp-1.8.6~wip.20160715/pim/pim_module.h
Examining data/xorp-1.8.6~wip.20160715/pim/pim_mfc.cc
Examining data/xorp-1.8.6~wip.20160715/pim/xorp_pimsm6.cc
Examining data/xorp-1.8.6~wip.20160715/pim/pim_mrt.cc
Examining data/xorp-1.8.6~wip.20160715/pim/pim_mrt_task.cc
Examining data/xorp-1.8.6~wip.20160715/pim/pim_proto_join_prune.cc
Examining data/xorp-1.8.6~wip.20160715/pim/pim_mre_assert.cc
Examining data/xorp-1.8.6~wip.20160715/pim/pim_mre_rpf.cc
Examining data/xorp-1.8.6~wip.20160715/pim/pim_mrib_table.cc
Examining data/xorp-1.8.6~wip.20160715/pim/pim_mre.cc
Examining data/xorp-1.8.6~wip.20160715/pim/pim_mre_join_prune.cc
Examining data/xorp-1.8.6~wip.20160715/pim/pim_proto_cand_rp_adv.cc
Examining data/xorp-1.8.6~wip.20160715/utils/runit.cc
Examining data/xorp-1.8.6~wip.20160715/vrrp/vrrp_module.h
Examining data/xorp-1.8.6~wip.20160715/vrrp/vrrp_vif.cc
Examining data/xorp-1.8.6~wip.20160715/vrrp/test/vrrp_test.cc
Examining data/xorp-1.8.6~wip.20160715/vrrp/vrrp.cc
Examining data/xorp-1.8.6~wip.20160715/vrrp/xorp_vrrp.cc
Examining data/xorp-1.8.6~wip.20160715/vrrp/vrrp_target.cc
Examining data/xorp-1.8.6~wip.20160715/vrrp/arpd.cc
Examining data/xorp-1.8.6~wip.20160715/vrrp/vrrp_packet.cc
Examining data/xorp-1.8.6~wip.20160715/rip/xrl_process_spy.cc
Examining data/xorp-1.8.6~wip.20160715/rip/packet_queue.cc
Examining data/xorp-1.8.6~wip.20160715/rip/tests/test_packets.cc
Examining data/xorp-1.8.6~wip.20160715/rip/tests/test_update_queue.cc
Examining data/xorp-1.8.6~wip.20160715/rip/tests/test_auth.cc
Examining data/xorp-1.8.6~wip.20160715/rip/tests/test_timers.cc
Examining data/xorp-1.8.6~wip.20160715/rip/tests/test_route_walk.cc
Examining data/xorp-1.8.6~wip.20160715/rip/tests/test_outputs.cc
Examining data/xorp-1.8.6~wip.20160715/rip/tests/test_request.cc
Examining data/xorp-1.8.6~wip.20160715/rip/xrl_redist_manager.cc
Examining data/xorp-1.8.6~wip.20160715/rip/auth.cc
Examining data/xorp-1.8.6~wip.20160715/rip/rip_varrw.cc
Examining data/xorp-1.8.6~wip.20160715/rip/xrl_config.cc
Examining data/xorp-1.8.6~wip.20160715/rip/xrl_port_manager.cc
Examining data/xorp-1.8.6~wip.20160715/rip/output_table.cc
Examining data/xorp-1.8.6~wip.20160715/rip/xrl_target_rip.cc
Examining data/xorp-1.8.6~wip.20160715/rip/port.cc
Examining data/xorp-1.8.6~wip.20160715/rip/output_updates.cc
Examining data/xorp-1.8.6~wip.20160715/rip/xrl_rib_notifier.cc
Examining data/xorp-1.8.6~wip.20160715/rip/xrl_target_ripng.cc
Examining data/xorp-1.8.6~wip.20160715/rip/redist.cc
Examining data/xorp-1.8.6~wip.20160715/rip/xrl_port_io.cc
Examining data/xorp-1.8.6~wip.20160715/rip/xorp_rip_main.cc
Examining data/xorp-1.8.6~wip.20160715/rip/rip_module.h
Examining data/xorp-1.8.6~wip.20160715/rip/update_queue.cc
Examining data/xorp-1.8.6~wip.20160715/rip/tools/show_peer_stats.cc
Examining data/xorp-1.8.6~wip.20160715/rip/tools/common.cc
Examining data/xorp-1.8.6~wip.20160715/rip/tools/show_stats.cc
Examining data/xorp-1.8.6~wip.20160715/rip/tools/rip_announcer.cc
Examining data/xorp-1.8.6~wip.20160715/rip/tools/ripng_announcer.cc
Examining data/xorp-1.8.6~wip.20160715/rip/route_entry.cc
Examining data/xorp-1.8.6~wip.20160715/rip/rib_notifier_base.cc
Examining data/xorp-1.8.6~wip.20160715/rip/peer.cc
Examining data/xorp-1.8.6~wip.20160715/rip/route_db.cc
Examining data/xorp-1.8.6~wip.20160715/mrt/mifset.cc
Examining data/xorp-1.8.6~wip.20160715/mrt/tests/test_mrt.cc
Examining data/xorp-1.8.6~wip.20160715/mrt/tests/test_mrib.cc
Examining data/xorp-1.8.6~wip.20160715/mrt/multicast_defs.h
Examining data/xorp-1.8.6~wip.20160715/mrt/include/netinet/pim_var.h
Examining data/xorp-1.8.6~wip.20160715/mrt/include/netinet/pim.h
Examining data/xorp-1.8.6~wip.20160715/mrt/include/ip_mroute.h
Examining data/xorp-1.8.6~wip.20160715/mrt/mrib_table.cc
Examining data/xorp-1.8.6~wip.20160715/mrt/buffer.c
Examining data/xorp-1.8.6~wip.20160715/mrt/max_vifs.h
Examining data/xorp-1.8.6~wip.20160715/mrt/netstream_access.h
Examining data/xorp-1.8.6~wip.20160715/mrt/buffer.h
Examining data/xorp-1.8.6~wip.20160715/mrt/mrt_module.h
Examining data/xorp-1.8.6~wip.20160715/libxorp/vif.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/utility.h
Examining data/xorp-1.8.6~wip.20160715/libxorp/heap.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/utils.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/c_format.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/ether_compat.h
Examining data/xorp-1.8.6~wip.20160715/libxorp/xorp_osdep_begin.h
Examining data/xorp-1.8.6~wip.20160715/libxorp/xorp.h
Examining data/xorp-1.8.6~wip.20160715/libxorp/status_codes.h
Examining data/xorp-1.8.6~wip.20160715/libxorp/eventloop.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/tests/test_ref_trie.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/tests/test_utils.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/tests/test_ref_ptr.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/tests/test_ipv6net.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/tests/test_time_slice.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/tests/test_service.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/tests/test_callback.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/tests/test_test_main.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/tests/test_profile.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/tests/test_ipv4.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/tests/test_config_param.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/tests/test_ipnet.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/tests/test_trie.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/tests/test_types.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/tests/test_timer.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/tests/test_task.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/tests/test_ipv6.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/tests/test_vif.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/tests/test_ipvxnet.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/tests/test_ipvx.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/tests/test_asyncio.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/tests/test_ipv4net.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/tests/test_mac.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/tests/test_timeval.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/tests/test_observers.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/tests/test_run_command.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/tests/test_heap.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/tests/test_sched.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/inet_pton.c
Examining data/xorp-1.8.6~wip.20160715/libxorp/run_command.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/getopt.c
Examining data/xorp-1.8.6~wip.20160715/libxorp/ether_compat.c
Examining data/xorp-1.8.6~wip.20160715/libxorp/asyncio.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/xlog.h
Examining data/xorp-1.8.6~wip.20160715/libxorp/gai_strerror.c
Examining data/xorp-1.8.6~wip.20160715/libxorp/popen.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/nexthop.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/round_robin.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/callback.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/utility.c
Examining data/xorp-1.8.6~wip.20160715/libxorp/task.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/strlcpy.c
Examining data/xorp-1.8.6~wip.20160715/libxorp/ipv6.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/profile.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/selector.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/transaction.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/daemon.c
Examining data/xorp-1.8.6~wip.20160715/libxorp/random.h
Examining data/xorp-1.8.6~wip.20160715/libxorp/strptime.c
Examining data/xorp-1.8.6~wip.20160715/libxorp/ipvx.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/token.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/clock.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/time_slice.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/win_io.c
Examining data/xorp-1.8.6~wip.20160715/libxorp/debug.h
Examining data/xorp-1.8.6~wip.20160715/libxorp/timeval.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/win_dispatcher.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/service.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/ref_ptr.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/bug_catcher.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/daemon.h
Examining data/xorp-1.8.6~wip.20160715/libxorp/xorp_osdep_mid.h
Examining data/xorp-1.8.6~wip.20160715/libxorp/timer.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/random.c
Examining data/xorp-1.8.6~wip.20160715/libxorp/ipv4.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/xorp_osdep_end.h
Examining data/xorp-1.8.6~wip.20160715/libxorp/exceptions.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/backtrace.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/win_io.h
Examining data/xorp-1.8.6~wip.20160715/libxorp/safe_callback_obj.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/inet_ntop.c
Examining data/xorp-1.8.6~wip.20160715/libxorp/debug.c
Examining data/xorp-1.8.6~wip.20160715/libxorp/mac.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/ipnet.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/buffered_asyncio.cc
Examining data/xorp-1.8.6~wip.20160715/libxorp/libxorp_module.h
Examining data/xorp-1.8.6~wip.20160715/libxorp/xlog.c
Examining data/xorp-1.8.6~wip.20160715/ospf/xorp_ospfv3.cc
Examining data/xorp-1.8.6~wip.20160715/ospf/ospf.cc
Examining data/xorp-1.8.6~wip.20160715/ospf/packet.cc
Examining data/xorp-1.8.6~wip.20160715/ospf/tests/test_routing_table.cc
Examining data/xorp-1.8.6~wip.20160715/ospf/tests/test_checksum.cc
Examining data/xorp-1.8.6~wip.20160715/ospf/tests/test_routing.cc
Examining data/xorp-1.8.6~wip.20160715/ospf/tests/test_build_lsa_main.cc
Examining data/xorp-1.8.6~wip.20160715/ospf/tests/test_build_lsa.cc
Examining data/xorp-1.8.6~wip.20160715/ospf/tests/test_packet.cc
Examining data/xorp-1.8.6~wip.20160715/ospf/tests/test_routing_interactive.cc
Examining data/xorp-1.8.6~wip.20160715/ospf/tests/test_peering.cc
Examining data/xorp-1.8.6~wip.20160715/ospf/tests/test_routing_database.cc
Examining data/xorp-1.8.6~wip.20160715/ospf/fletcher_checksum.cc
Examining data/xorp-1.8.6~wip.20160715/ospf/external.cc
Examining data/xorp-1.8.6~wip.20160715/ospf/auth.cc
Examining data/xorp-1.8.6~wip.20160715/ospf/peer_manager.cc
Examining data/xorp-1.8.6~wip.20160715/ospf/xrl_target3.cc
Examining data/xorp-1.8.6~wip.20160715/ospf/lsa.cc
Examining data/xorp-1.8.6~wip.20160715/ospf/policy_varrw.cc
Examining data/xorp-1.8.6~wip.20160715/ospf/ospf_module.h
Examining data/xorp-1.8.6~wip.20160715/ospf/vlink.cc
Examining data/xorp-1.8.6~wip.20160715/ospf/xrl_io.cc
Examining data/xorp-1.8.6~wip.20160715/ospf/area_router.cc
Examining data/xorp-1.8.6~wip.20160715/ospf/routing_table.cc
Examining data/xorp-1.8.6~wip.20160715/ospf/xorp_ospfv2.cc
Examining data/xorp-1.8.6~wip.20160715/ospf/tools/clear_database.cc
Examining data/xorp-1.8.6~wip.20160715/ospf/tools/print_lsas.cc
Examining data/xorp-1.8.6~wip.20160715/ospf/tools/print_neighbours.cc
Examining data/xorp-1.8.6~wip.20160715/ospf/xrl_target.cc
Examining data/xorp-1.8.6~wip.20160715/ospf/peer.cc
Examining data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/test_routeadd.c
Examining data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/mibmgr.c
Examining data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/loadprotocol.c
Examining data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/test_routeaddwait.c
Examining data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/list.h
Examining data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/rmapi.c
Examining data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/mibmgr.h
Examining data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/print_rtmsg.c
Examining data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/defs.h
Examining data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/xorprtm.h
Examining data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/xorprtm.c
Examining data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/sync.h
Examining data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/utils.c
Examining data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/xorprtm_internal.h
Examining data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/test_routeadddelete.c
Examining data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/pchsample.h
Examining data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/sync.c
Examining data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/bsdroute.h
Examining data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/utils.h
Examining data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/test_monitor.c
Examining data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/rmapi.h
Examining data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/ldwrapper.h
Examining data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/ldwrapper.cpp
Examining data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/wrapper_types.h
Examining data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/toXorp.cpp
Examining data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/toXorp.h
Examining data/xorp-1.8.6~wip.20160715/contrib/olsr/face_manager.cc
Examining data/xorp-1.8.6~wip.20160715/contrib/olsr/test_message.cc
Examining data/xorp-1.8.6~wip.20160715/contrib/olsr/olsr.cc
Examining data/xorp-1.8.6~wip.20160715/contrib/olsr/route_manager.cc
Examining data/xorp-1.8.6~wip.20160715/contrib/olsr/external.cc
Examining data/xorp-1.8.6~wip.20160715/contrib/olsr/face.cc
Examining data/xorp-1.8.6~wip.20160715/contrib/olsr/emulate_net.cc
Examining data/xorp-1.8.6~wip.20160715/contrib/olsr/debug_io.cc
Examining data/xorp-1.8.6~wip.20160715/contrib/olsr/test_faces.cc
Examining data/xorp-1.8.6~wip.20160715/contrib/olsr/policy_varrw.cc
Examining data/xorp-1.8.6~wip.20160715/contrib/olsr/neighborhood.cc
Examining data/xorp-1.8.6~wip.20160715/contrib/olsr/topology.cc
Examining data/xorp-1.8.6~wip.20160715/contrib/olsr/xrl_port.cc
Examining data/xorp-1.8.6~wip.20160715/contrib/olsr/profile_vars.cc
Examining data/xorp-1.8.6~wip.20160715/contrib/olsr/message.cc
Examining data/xorp-1.8.6~wip.20160715/contrib/olsr/olsr_module.h
Examining data/xorp-1.8.6~wip.20160715/contrib/olsr/xrl_io.cc
Examining data/xorp-1.8.6~wip.20160715/contrib/olsr/test_olsr_types.cc
Examining data/xorp-1.8.6~wip.20160715/contrib/olsr/xorp_olsr.cc
Examining data/xorp-1.8.6~wip.20160715/contrib/olsr/test_simulator.cc
Examining data/xorp-1.8.6~wip.20160715/contrib/olsr/xrl_queue.cc
Examining data/xorp-1.8.6~wip.20160715/contrib/olsr/olsr_types.cc
Examining data/xorp-1.8.6~wip.20160715/contrib/olsr/tools/print_databases.cc
Examining data/xorp-1.8.6~wip.20160715/contrib/olsr/tools/clear_database.cc
Examining data/xorp-1.8.6~wip.20160715/contrib/olsr/xrl_target.cc
Examining data/xorp-1.8.6~wip.20160715/contrib/olsr/neighbor.cc
Examining data/xorp-1.8.6~wip.20160715/contrib/olsr/twohop.cc
Examining data/xorp-1.8.6~wip.20160715/contrib/olsr/link.cc
Examining data/xorp-1.8.6~wip.20160715/contrib/wrapper/xorp_wrapper4.cc
Examining data/xorp-1.8.6~wip.20160715/contrib/wrapper/wrapper_module.h
Examining data/xorp-1.8.6~wip.20160715/contrib/wrapper/wrapper.cc
Examining data/xorp-1.8.6~wip.20160715/contrib/wrapper/xorp_io.cc
Examining data/xorp-1.8.6~wip.20160715/contrib/wrapper/wrappermain.cc
Examining data/xorp-1.8.6~wip.20160715/contrib/wrapper/wrapperpolicy.cc
Examining data/xorp-1.8.6~wip.20160715/contrib/mld6igmp_lite/mld6igmp_config.cc
Examining data/xorp-1.8.6~wip.20160715/contrib/mld6igmp_lite/xrl_mld6igmp_node.cc
Examining data/xorp-1.8.6~wip.20160715/contrib/mld6igmp_lite/mld6igmp_node.cc
Examining data/xorp-1.8.6~wip.20160715/contrib/mld6igmp_lite/mld6igmp_group_record.cc
Examining data/xorp-1.8.6~wip.20160715/contrib/mld6igmp_lite/xorp_igmp.cc
Examining data/xorp-1.8.6~wip.20160715/contrib/mld6igmp_lite/mld6igmp_node_cli.cc
Examining data/xorp-1.8.6~wip.20160715/contrib/mld6igmp_lite/xorp_mld.cc
Examining data/xorp-1.8.6~wip.20160715/contrib/mld6igmp_lite/mld6igmp_vif.cc
Examining data/xorp-1.8.6~wip.20160715/contrib/mld6igmp_lite/mld6igmp_module.h
Examining data/xorp-1.8.6~wip.20160715/contrib/mld6igmp_lite/igmp_proto.h
Examining data/xorp-1.8.6~wip.20160715/contrib/mld6igmp_lite/mld6igmp_source_record.cc
Examining data/xorp-1.8.6~wip.20160715/contrib/mld6igmp_lite/mld6igmp_proto.cc
Examining data/xorp-1.8.6~wip.20160715/contrib/mld6igmp_lite/mld6_proto.h
Examining data/xorp-1.8.6~wip.20160715/mld6igmp/mld6igmp_config.cc
Examining data/xorp-1.8.6~wip.20160715/mld6igmp/xrl_mld6igmp_node.cc
Examining data/xorp-1.8.6~wip.20160715/mld6igmp/mld6igmp_node.cc
Examining data/xorp-1.8.6~wip.20160715/mld6igmp/mld6igmp_group_record.cc
Examining data/xorp-1.8.6~wip.20160715/mld6igmp/xorp_igmp.cc
Examining data/xorp-1.8.6~wip.20160715/mld6igmp/mld6igmp_node_cli.cc
Examining data/xorp-1.8.6~wip.20160715/mld6igmp/xorp_mld.cc
Examining data/xorp-1.8.6~wip.20160715/mld6igmp/mld6igmp_vif.cc
Examining data/xorp-1.8.6~wip.20160715/mld6igmp/mld6igmp_module.h
Examining data/xorp-1.8.6~wip.20160715/mld6igmp/igmp_proto.h
Examining data/xorp-1.8.6~wip.20160715/mld6igmp/mld6igmp_source_record.cc
Examining data/xorp-1.8.6~wip.20160715/mld6igmp/mld6igmp_proto.cc
Examining data/xorp-1.8.6~wip.20160715/mld6igmp/mld6_proto.h
Examining data/xorp-1.8.6~wip.20160715/cli/cli_node.cc
Examining data/xorp-1.8.6~wip.20160715/cli/tests/test_cli.cc
Examining data/xorp-1.8.6~wip.20160715/cli/cli_command.cc
Examining data/xorp-1.8.6~wip.20160715/cli/cli_node_net.cc
Examining data/xorp-1.8.6~wip.20160715/cli/xrl_cli_node.cc
Examining data/xorp-1.8.6~wip.20160715/cli/cli_command_pipe.cc
Examining data/xorp-1.8.6~wip.20160715/cli/libtecla/nettest_libtecla.c
Examining data/xorp-1.8.6~wip.20160715/cli/libtecla/homedir.h
Examining data/xorp-1.8.6~wip.20160715/cli/libtecla/direader.h
Examining data/xorp-1.8.6~wip.20160715/cli/libtecla/stringrp.h
Examining data/xorp-1.8.6~wip.20160715/cli/libtecla/enhance.c
Examining data/xorp-1.8.6~wip.20160715/cli/libtecla/history.c
Examining data/xorp-1.8.6~wip.20160715/cli/libtecla/demo2.c
Examining data/xorp-1.8.6~wip.20160715/cli/libtecla/freelist.h
Examining data/xorp-1.8.6~wip.20160715/cli/libtecla/cplfile.h
Examining data/xorp-1.8.6~wip.20160715/cli/libtecla/pathutil.h
Examining data/xorp-1.8.6~wip.20160715/cli/libtecla/pcache.c
Examining data/xorp-1.8.6~wip.20160715/cli/libtecla/homedir.c
Examining data/xorp-1.8.6~wip.20160715/cli/libtecla/keytab.h
Examining data/xorp-1.8.6~wip.20160715/cli/libtecla/strngmem.h
Examining data/xorp-1.8.6~wip.20160715/cli/libtecla/expand.c
Examining data/xorp-1.8.6~wip.20160715/cli/libtecla/demo.c
Examining data/xorp-1.8.6~wip.20160715/cli/libtecla/hash.c
Examining data/xorp-1.8.6~wip.20160715/cli/libtecla/hash.h
Examining data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c
Examining data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.h
Examining data/xorp-1.8.6~wip.20160715/cli/libtecla/pathutil.c
Examining data/xorp-1.8.6~wip.20160715/cli/libtecla/keytab.c
Examining data/xorp-1.8.6~wip.20160715/cli/libtecla/libtecla.h
Examining data/xorp-1.8.6~wip.20160715/cli/libtecla/strngmem.c
Examining data/xorp-1.8.6~wip.20160715/cli/libtecla/freelist.c
Examining data/xorp-1.8.6~wip.20160715/cli/libtecla/stringrp.c
Examining data/xorp-1.8.6~wip.20160715/cli/libtecla/cplmatch.c
Examining data/xorp-1.8.6~wip.20160715/cli/libtecla/direader.c
Examining data/xorp-1.8.6~wip.20160715/cli/libtecla/cplfile.c
Examining data/xorp-1.8.6~wip.20160715/cli/libtecla/history.h
Examining data/xorp-1.8.6~wip.20160715/cli/libtecla/version.c
Examining data/xorp-1.8.6~wip.20160715/cli/cli_module.h
Examining data/xorp-1.8.6~wip.20160715/cli/cli_node_internal_commands.cc
Examining data/xorp-1.8.6~wip.20160715/cli/tools/cli_generic.cc
Examining data/xorp-1.8.6~wip.20160715/cli/tools/send_cli_processor_xrl.cc
Examining data/xorp-1.8.6~wip.20160715/cli/cli_client.cc
Examining data/xorp-1.8.6~wip.20160715/libfeaclient/ifmgr_cmds.cc
Examining data/xorp-1.8.6~wip.20160715/libfeaclient/tests/test_remote_copy.cc
Examining data/xorp-1.8.6~wip.20160715/libfeaclient/tests/test_local_copy.cc
Examining data/xorp-1.8.6~wip.20160715/libfeaclient/ifmgr_atoms.cc
Examining data/xorp-1.8.6~wip.20160715/libfeaclient/ifmgr_cmd_queue.cc
Examining data/xorp-1.8.6~wip.20160715/libfeaclient/ifmgr_xrl_mirror.cc
Examining data/xorp-1.8.6~wip.20160715/libfeaclient/ifmgr_xrl_replicator.cc
Examining data/xorp-1.8.6~wip.20160715/libfeaclient/libfeaclient_module.h
Examining data/xorp-1.8.6~wip.20160715/bgp/local_data.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/rib_ipc_handler.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/packet.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/route_table_deletion.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/tests/test_nhlookup.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/tests/test_ribin.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/tests/test_peer_data.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/tests/test_cache.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/tests/test_next_hop_resolver.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/tests/test_dump.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/tests/test_decision.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/tests/test_ribout.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/tests/test_filter.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/tests/test_plumbing.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/tests/test_policy.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/tests/test_deletion.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/tests/test_packet_coding.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/tests/test_subnet_route.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/tests/test_packet.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/tests/test_fanout.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/tests/test_main.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/route_table_policy_ex.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/bgp_varrw.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/route_queue.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/route_table_cache.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/damping.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/aspath_test.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/notification_packet.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/route_table_reader.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/route_table_ribout.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/path_attribute.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/next_hop_resolver.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/aspath.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/route_table_policy_sm.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/bgp.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/update_test.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/route_table_policy.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/profile_vars.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/update_attrib.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/open_packet.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/peer_handler_debug.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/process_watch.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/route_table_aggregation.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/route_table_nhlookup.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/route_table_ribin.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/update_packet.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/socket.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/route_table_fanout.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/attribute_manager.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/dump_iterators.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/dummy_next_hop_resolver.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/harness/command.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/harness/test_trie.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/harness/trie.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/harness/test_peer.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/harness/coord.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/harness/bgppp.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/harness/peer.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/route_table_debug.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/subnet_route.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/route_table_dump.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/internal_message.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/route_table_decision.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/bgp_module.h
Examining data/xorp-1.8.6~wip.20160715/bgp/peer_data.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/bgp_varrw_export.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/tools/xorpsh_print_peers.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/tools/print_peer.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/tools/print_routes.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/tools/bgptools_module.h
Examining data/xorp-1.8.6~wip.20160715/bgp/tools/print_peers.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/tools/xorpsh_print_routes.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/tools/print_routes_main.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/xrl_target.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/route_table_filter.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/bgp_trie.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/parameter.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/peer.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/main.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/route_table_base.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/route_table_damping.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/route_table_policy_im.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/iptuple.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/dummy_main.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/plumbing.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/peer_handler.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/crash_dump.cc
Examining data/xorp-1.8.6~wip.20160715/bgp/peer_list.cc
Examining data/xorp-1.8.6~wip.20160715/static_routes/xrl_static_routes_node.cc
Examining data/xorp-1.8.6~wip.20160715/static_routes/static_routes_varrw.cc
Examining data/xorp-1.8.6~wip.20160715/static_routes/xorp_static_routes.cc
Examining data/xorp-1.8.6~wip.20160715/static_routes/static_routes_node.cc
Examining data/xorp-1.8.6~wip.20160715/static_routes/static_routes_module.h

FINAL RESULTS:

data/xorp-1.8.6~wip.20160715/libxipc/xrl_pf_unix.cc:53:6:  [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(path.c_str(), -1, grp->gr_gid)) {
data/xorp-1.8.6~wip.20160715/libxipc/xrl_pf_unix.cc:64: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(path.c_str(), S_IWUSR| S_IRUSR| S_IWGRP| S_IRGRP| S_IROTH)) {
data/xorp-1.8.6~wip.20160715/bgp/tests/test_plumbing.cc:366:6:  [4] (shell) execlp:
  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.
	    execlp("../libxipc/xorp_finder", "xorp_finder", static_cast<char *>(NULL));
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplfile.c:361:2:  [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(cf->errmsg, sizeof(cf->errmsg), fmt, ERRLEN - strlen(fmt),
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplfile.c:665:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    snprintf(cf->errmsg, sizeof(cf->errmsg), fmt, ERRLEN - strlen(fmt),
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplfile.c:794:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    snprintf(cf->errmsg, sizeof(cf->errmsg), fmt, ERRLEN - strlen(fmt), type);
data/xorp-1.8.6~wip.20160715/cli/libtecla/direader.c:162:7:  [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(dr->errmsg, sizeof(dr->errmsg), fmt, ERRLEN - strlen(fmt),
data/xorp-1.8.6~wip.20160715/cli/libtecla/direader.c:175:7:  [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(dr->errmsg, sizeof(dr->errmsg), fmt, ERRLEN - strlen(fmt),
data/xorp-1.8.6~wip.20160715/cli/libtecla/enhance.c:127:8:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if(execvp(argv[1], argv + 1) < 0) {
data/xorp-1.8.6~wip.20160715/cli/libtecla/enhance.c:511:6:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  if(execvp(argv[0], argv) < 0) {
data/xorp-1.8.6~wip.20160715/cli/libtecla/expand.c:1061:2:  [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(ef->errmsg, sizeof(ef->errmsg), fmt, ERRLEN - strlen(fmt),
data/xorp-1.8.6~wip.20160715/cli/libtecla/homedir.c:257:7:  [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(home->errmsg, sizeof(home->errmsg), fmt, ERRLEN - strlen(fmt),
data/xorp-1.8.6~wip.20160715/cli/libtecla/homedir.c:274:7:  [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(home->errmsg, sizeof(home->errmsg), fmt, ERRLEN - strlen(fmt),
data/xorp-1.8.6~wip.20160715/cli/libtecla/pathutil.c:443:5:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    access(pathname, X_OK) == 0;
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/ldwrapper.cpp:1193: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(addroute.dst,dest_network);
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/ldwrapper.cpp:1194: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(addroute.next_hop,nexthop_addr);
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/ldwrapper.cpp:1195: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(addroute.ifname,if_name);
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/ldwrapper.cpp:1196: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(addroute.vifname,if_name);
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/ldwrapper.cpp:1224: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(delroute.dst,dest_network);
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/ldwrapper.cpp:1225: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(delroute.ifname,if_name);
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/ldwrapper.cpp:1226: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(delroute.vifname,if_name);
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/ldwrapper.cpp:1475: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(obudp.sock_id.xorp_sock_name,sockIf[sockIdx].sock.c_str());
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/ldwrapper.cpp:1480:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(sid.xorp_sock_name,sockIf[sockIdx].sock.c_str());
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/ldwrapper.cpp:1492: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(obudp.sock_id.xorp_sock_name,sockIf[sockIdx].sock.c_str());
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/ldwrapper.cpp:1521: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(sid.xorp_sock_name,sockIf[sockIdx].sock.c_str());
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/ldwrapper.cpp:1614: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(sendudp.sock_id.xorp_sock_name,sock.c_str());
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/ldwrapper.cpp:1616: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(sendudp.target_addr,target_addr.c_str());
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/ldwrapper.cpp:1661: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(sid.xorp_sock_name,sockIf[sockIdx].sock.c_str());
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/ldwrapper.cpp:1681: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(sopt.sock_id.xorp_sock_name,sockIf[sockIdx].sock.c_str());
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/ldwrapper.cpp:1682: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(sopt.opt_name,str);
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/ldwrapper.cpp:1683: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(sopt.dev_name,(char *)devName);
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/ldwrapper.cpp:1707: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(sopt.sock_id.xorp_sock_name,sockIf[sockIdx].sock.c_str());
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/ldwrapper.h:47: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, "%lu.%06lu DEBUG: " fmt, time.tv_sec, time.tv_usec, ## args); \
data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/print_rtmsg.c:73:11:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    ret = vfprintf(stderr, str, ap);
data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/print_rtmsg.c:86:11:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    ret = vfprintf(stderr, str, ap);
data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/print_rtmsg.c:93:1:  [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(char *cp, size_t sz, char *fmt, ...) {
data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/print_rtmsg.c:98:11:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
    ret = vsprintf(cp, fmt, ap);
data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/print_rtmsg.c:146:13:  [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).
	    (void) strcpy(domain, cp + 1);
data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/print_rtmsg.c:174:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    (void) sprintf(line, "%s", inet_ntoa(in));
data/xorp-1.8.6~wip.20160715/fea/data_plane/control_socket/click_socket.cc:470:21:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    int ret_value = system(command_line.c_str());
data/xorp-1.8.6~wip.20160715/fea/data_plane/control_socket/click_socket.cc:586:21:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    int ret_value = system(command_line.c_str());
data/xorp-1.8.6~wip.20160715/fea/data_plane/control_socket/click_socket.cc:720:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access(click_filename.c_str(), R_OK) == 0) {
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_vlan_set_linux.cc:251:11:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	result = system(cmd.c_str());
data/xorp-1.8.6~wip.20160715/fea/tests/test_fea_rawlink.cc:66:9:  [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(x);                                                            \
data/xorp-1.8.6~wip.20160715/fea/tests/test_fea_rawlink.cc:74:5:  [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(x);                                                                \
data/xorp-1.8.6~wip.20160715/fea/tests/test_xrl_sockets4_tcp.cc:56:9:  [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(x);                                                            \
data/xorp-1.8.6~wip.20160715/fea/tests/test_xrl_sockets4_tcp.cc:64:5:  [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(x);                                                                \
data/xorp-1.8.6~wip.20160715/fea/tests/test_xrl_sockets4_udp.cc:57:9:  [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(x);                                                            \
data/xorp-1.8.6~wip.20160715/fea/tests/test_xrl_sockets4_udp.cc:65:5:  [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(x);                                                                \
data/xorp-1.8.6~wip.20160715/libfeaclient/tests/test_local_copy.cc:66:2:  [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(x);							\
data/xorp-1.8.6~wip.20160715/libfeaclient/tests/test_remote_copy.cc:71:2:  [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(x);							\
data/xorp-1.8.6~wip.20160715/libproto/tests/test_checksum.cc:73:2:  [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(x);							\
data/xorp-1.8.6~wip.20160715/libproto/tests/test_config_node_id.cc:67:2:  [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(x);							\
data/xorp-1.8.6~wip.20160715/libproto/tests/test_packet.cc:73:2:  [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(x);							\
data/xorp-1.8.6~wip.20160715/libxipc/tests/test_finder.cc:73:2:  [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(x);							\
data/xorp-1.8.6~wip.20160715/libxipc/tests/test_finder_events.cc:88:2:  [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(x);							\
data/xorp-1.8.6~wip.20160715/libxipc/tests/test_finder_messenger.cc:69:2:  [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(x);							\
data/xorp-1.8.6~wip.20160715/libxipc/tests/test_finder_msgs.cc:59:2:  [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(x);							\
data/xorp-1.8.6~wip.20160715/libxipc/tests/test_finder_tcp.cc:65:2:  [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(x);							\
data/xorp-1.8.6~wip.20160715/libxipc/tests/test_finder_to.cc:68:2:  [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(x);							\
data/xorp-1.8.6~wip.20160715/libxipc/tests/test_fp64.cc:71:2:  [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(x);							\
data/xorp-1.8.6~wip.20160715/libxipc/tests/test_stcp.cc:38:20:  [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.
    if (g_trace) { printf(args) ; fflush(stdout); } \
data/xorp-1.8.6~wip.20160715/libxipc/tests/test_xrl_args.cc:66:2:  [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(x);							\
data/xorp-1.8.6~wip.20160715/libxipc/tests/test_xrl_atom.cc:37:38:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define tracef(args...) if (g_trace) printf(args)
data/xorp-1.8.6~wip.20160715/libxipc/tests/test_xrl_error.cc:32:38:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define tracef(args...) if (g_trace) printf(args)
data/xorp-1.8.6~wip.20160715/libxipc/xrl_atom.cc:227:2:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
	sscanf(c_str, "%" XORP_SCNgFP64, &_fp64val);
data/xorp-1.8.6~wip.20160715/libxipc/xrl_atom.cc:634:2:  [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(tmp, sizeof(tmp) / sizeof(tmp[0]),
data/xorp-1.8.6~wip.20160715/libxipc/xuid.cc:119:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
    if (sscanf(s.c_str(), sfmt, &_data[0], &_data[1], &_data[2], &_data[3])
data/xorp-1.8.6~wip.20160715/libxipc/xuid.cc:153:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    snprintf(dst, sizeof(dst) / sizeof(dst[0]), sfmt, ntohl(_data[0]),
data/xorp-1.8.6~wip.20160715/libxorp/c_format.cc:104:12:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	int ret = vsnprintf(&b[0], buf_size, fmt, ap);
data/xorp-1.8.6~wip.20160715/libxorp/debug.c:117:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, fmt, ap);
data/xorp-1.8.6~wip.20160715/libxorp/debug.h:89:57:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define __printflike(fmt,va1) __attribute__((__format__(printf, fmt, va1)))
data/xorp-1.8.6~wip.20160715/libxorp/inet_ntop.c:103:6:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	l = snprintf(tmp, size, fmt, src[0], src[1], src[2], src[3]);
data/xorp-1.8.6~wip.20160715/libxorp/tests/test_sched.cc:363:5:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vprintf(fmt, ap);
data/xorp-1.8.6~wip.20160715/libxorp/xlog.c:621:9:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    if (vfprintf(fp, fmt, ap) < 0) {
data/xorp-1.8.6~wip.20160715/libxorp/xlog.c:936:13:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	ret_size = vsnprintf(buf_ptr, buf_size, format, temp);
data/xorp-1.8.6~wip.20160715/libxorp/xlog.c:938:13:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	ret_size = vsnprintf(buf_ptr, buf_size, format, ap);
data/xorp-1.8.6~wip.20160715/libxorp/xlog.h:41:57:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define __printflike(fmt,va1) __attribute__((__format__(printf, fmt, va1)))
data/xorp-1.8.6~wip.20160715/libxorp/xorp_osdep_mid.h:173:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf		_snprintf
data/xorp-1.8.6~wip.20160715/libxorp/xorp_osdep_mid.h:173:19:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf		_snprintf
data/xorp-1.8.6~wip.20160715/libxorp/xorp_osdep_mid.h:177:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define vsnprintf		_vsnprintf
data/xorp-1.8.6~wip.20160715/mrt/tests/test_mrt.cc:73:2:  [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(x);							\
data/xorp-1.8.6~wip.20160715/ospf/auth.cc:516:12:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (-1 == access(badmd5, R_OK)) {
data/xorp-1.8.6~wip.20160715/policy/configuration.cc:482:40:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			  const string& type, const string& access,
data/xorp-1.8.6~wip.20160715/policy/policy_target.cc:164:39:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			 const string& type, const string& access,
data/xorp-1.8.6~wip.20160715/policy/policy_target.cc:167:48:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    _conf.add_varmap(protocol, variable, type, access, id);
data/xorp-1.8.6~wip.20160715/policy/var_map.cc:121:32:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	      var->type.c_str(), var->access, var->id);
data/xorp-1.8.6~wip.20160715/policy/xrl_target.cc:300:26:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
				       const string& access,
data/xorp-1.8.6~wip.20160715/policy/xrl_target.cc:304:54:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	_policy_target.add_varmap(protocol, variable, type, access, id);
data/xorp-1.8.6~wip.20160715/rib/tests/test_redist.cc:80:2:  [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(x);							\
data/xorp-1.8.6~wip.20160715/rip/auth.cc:596:12:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (-1 == access(badmd5, R_OK)) {
data/xorp-1.8.6~wip.20160715/rip/peer.cc:45:44:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    RouteDB<A>& rdb = _port.port_manager().system().route_db();
data/xorp-1.8.6~wip.20160715/rip/peer.cc:52:44:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    RouteDB<A>& rdb = _port.port_manager().system().route_db();
data/xorp-1.8.6~wip.20160715/rip/peer.cc:100:44:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    RouteDB<A>& rdb = _port.port_manager().system().route_db();
data/xorp-1.8.6~wip.20160715/rip/peer.cc:109:44:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    RouteDB<A>& rdb = _port.port_manager().system().route_db();
data/xorp-1.8.6~wip.20160715/rip/port.cc:209:24:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	RouteDB<A>& rdb = _pm.system().route_db();
data/xorp-1.8.6~wip.20160715/rip/port.cc:240:27:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    RouteDB<A>& rdb = _pm.system().route_db();
data/xorp-1.8.6~wip.20160715/rip/port.cc:723:28:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	    RouteDB<A>& rdb = _pm.system().route_db();
data/xorp-1.8.6~wip.20160715/rip/port.cc:741:27:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    RouteDB<A>& rdb = _pm.system().route_db();
data/xorp-1.8.6~wip.20160715/rip/xrl_redist_manager.cc:41:50:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
XrlRedistManager<A>::XrlRedistManager(System<A>& system)
data/xorp-1.8.6~wip.20160715/rip/xrl_redist_manager.cc:42:11:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    : _rr(system.route_db())
data/xorp-1.8.6~wip.20160715/rtrmgr/glob_win32.c:121:9:  [4] (buffer) lstrcpyA:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        lstrcpyA(szRelative, pattern);
data/xorp-1.8.6~wip.20160715/rtrmgr/glob_win32.c:176:25:  [4] (buffer) lstrcatA:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
                        lstrcatA(find_data.cFileName, "/");
data/xorp-1.8.6~wip.20160715/rtrmgr/glob_win32.c:215:17:  [4] (buffer) lstrcpynA:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                lstrcpynA(buffer + cbCurr, szRelative, 1 + (file_part - pattern));
data/xorp-1.8.6~wip.20160715/rtrmgr/glob_win32.c:216:17:  [4] (buffer) lstrcatA:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
                lstrcatA(buffer + cbCurr, find_data.cFileName);
data/xorp-1.8.6~wip.20160715/rtrmgr/main_rtrmgr.cc:740:9:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if (system(cmd.c_str()) < 0) {
data/xorp-1.8.6~wip.20160715/rtrmgr/main_rtrmgr.cc:746:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system(cmd.c_str()) < 0) {
data/xorp-1.8.6~wip.20160715/rtrmgr/randomness.cc:160:9:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	file = popen("/usr/bin/netstat -i", "r");
data/xorp-1.8.6~wip.20160715/rtrmgr/randomness.cc:173:9:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	file = popen("/usr/bin/last", "r");
data/xorp-1.8.6~wip.20160715/rtrmgr/randomness.cc:186:9:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	file = popen("/usr/bin/ps -elf", "r");
data/xorp-1.8.6~wip.20160715/rtrmgr/randomness.cc:199:9:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	file = popen("/usr/bin/ps -auxw", "r");
data/xorp-1.8.6~wip.20160715/rtrmgr/util.cc:33:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
#define	access(x,y)	_access(x,y)
data/xorp-1.8.6~wip.20160715/rtrmgr/util.cc:94:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access(complete_path.c_str(), X_OK) == 0) {
data/xorp-1.8.6~wip.20160715/utils/runit.cc:253:6:  [4] (shell) execvp:
  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.
	    execvp(argv[0], argv);
data/xorp-1.8.6~wip.20160715/bgp/aspath_test.cc:294: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, "v")) != EOF) {
data/xorp-1.8.6~wip.20160715/bgp/harness/coord.cc:263: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((c = getopt (argc, argv, "h:")) != EOF) {
data/xorp-1.8.6~wip.20160715/bgp/harness/test_peer.cc:931: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((c = getopt (argc, argv, "h:s:vt")) != EOF) {
data/xorp-1.8.6~wip.20160715/bgp/tests/test_cache.cc:402:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char* srcdir = getenv("srcdir");
data/xorp-1.8.6~wip.20160715/bgp/tests/test_decision.cc:2052:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char* srcdir = getenv("srcdir");
data/xorp-1.8.6~wip.20160715/bgp/tests/test_deletion.cc:621:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char* srcdir = getenv("srcdir");
data/xorp-1.8.6~wip.20160715/bgp/tests/test_dump.cc:1886:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char* srcdir = getenv("srcdir");
data/xorp-1.8.6~wip.20160715/bgp/tests/test_fanout.cc:701:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char* srcdir = getenv("srcdir");
data/xorp-1.8.6~wip.20160715/bgp/tests/test_filter.cc:525:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char* srcdir = getenv("srcdir");
data/xorp-1.8.6~wip.20160715/bgp/tests/test_main.cc:72:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char* srcdir = getenv("srcdir");
data/xorp-1.8.6~wip.20160715/bgp/tests/test_nhlookup.cc:608:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char* srcdir = getenv("srcdir");
data/xorp-1.8.6~wip.20160715/bgp/tests/test_policy.cc:242:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char* srcdir = getenv("srcdir");
data/xorp-1.8.6~wip.20160715/bgp/tests/test_policy.cc:540:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char* srcdir = getenv("srcdir");
data/xorp-1.8.6~wip.20160715/bgp/tests/test_policy.cc:850:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char* srcdir = getenv("srcdir");
data/xorp-1.8.6~wip.20160715/bgp/tests/test_ribout.cc:299:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char* srcdir = getenv("srcdir");
data/xorp-1.8.6~wip.20160715/bgp/tools/print_peers.cc:53: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, "i:v")) != -1) {
data/xorp-1.8.6~wip.20160715/bgp/tools/print_routes_main.cc:68: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, "46p:umvi:l:")) != -1) {
data/xorp-1.8.6~wip.20160715/bgp/tools/xorpsh_print_routes.cc:63: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, "46uml:")) != -1) {
data/xorp-1.8.6~wip.20160715/cli/cli_node_net.cc:512:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char *term = getenv("TERM");
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplfile.c:358:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      value = getenv(cf->envnam);
data/xorp-1.8.6~wip.20160715/cli/libtecla/demo2.c:272:29:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if(pca_scan_path(res->pc, getenv("PATH")))
data/xorp-1.8.6~wip.20160715/cli/libtecla/expand.c:1058:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      value = getenv(ef->envnam);
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:1561:44:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if(gl_change_terminal(gl, stdin, stdout, getenv("TERM")))
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:7917:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      if((env = getenv("LINES")) && (n=atoi(env)) > 0)
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:7935:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      if((env = getenv("COLUMNS")) && (n=atoi(env)) > 0)
data/xorp-1.8.6~wip.20160715/cli/libtecla/homedir.c:405:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  const char *pwd = getenv("PWD");
data/xorp-1.8.6~wip.20160715/cli/tests/test_cli.cc:547:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "F:h")) != -1) {
data/xorp-1.8.6~wip.20160715/cli/tools/cli_generic.cc:509: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, "x:hf:a:i:s:")) != -1) {
data/xorp-1.8.6~wip.20160715/cli/tools/send_cli_processor_xrl.cc:222:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "F:t:h")) != -1) {
data/xorp-1.8.6~wip.20160715/contrib/mld6igmp_lite/xorp_igmp.cc:159:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "F:h")) != -1) {
data/xorp-1.8.6~wip.20160715/contrib/mld6igmp_lite/xorp_mld.cc:168:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "F:h")) != -1) {
data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/sync.c:40:9:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
        InitializeCriticalSection(&(pRWL)->RWL_ReadWriteBlock);
data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/sync.c:68:5:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
    EnterCriticalSection(&pRWL->RWL_ReadWriteBlock);
data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/sync.c:86:5:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
    EnterCriticalSection(&pRWL->RWL_ReadWriteBlock);
data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/sync.h:97:13:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
            InitializeCriticalSection(&((pLL)->lock));              \
data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/sync.h:118:6:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
     EnterCriticalSection(&(pLL)->lock)
data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/xorprtm.c:416:5:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
    InitializeCriticalSection(&npp->rcs);
data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/xorprtm.c:645:5:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
    EnterCriticalSection(&pp->rcs);
data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/xorprtm.c:699:5:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
    EnterCriticalSection(&pp->rcs);
data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/xorprtm.c:717:5:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
    EnterCriticalSection(&pp->rcs);
data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/xorprtm.c:785:5:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
    EnterCriticalSection(&pp->rcs);
data/xorp-1.8.6~wip.20160715/fea/data_plane/control_socket/windows_rras_support.cc:71:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char* pf = getenv("XORP_USE_RRAS");
data/xorp-1.8.6~wip.20160715/fea/tests/test_fea_rawlink.cc:784:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "F:v")) != -1) {
data/xorp-1.8.6~wip.20160715/fea/tests/test_xrl_sockets4_tcp.cc:1248:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "F:v")) != -1) {
data/xorp-1.8.6~wip.20160715/fea/tests/test_xrl_sockets4_udp.cc:633:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "F:v")) != -1) {
data/xorp-1.8.6~wip.20160715/fea/tools/show_interfaces.cc:732:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "F:i:h")) != -1) {
data/xorp-1.8.6~wip.20160715/fea/xorp_fea.cc:151:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "F:h")) != -1) {
data/xorp-1.8.6~wip.20160715/fib2mrib/xorp_fib2mrib.cc:146:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "F:h")) != -1) {
data/xorp-1.8.6~wip.20160715/libcomm/tests/test_connect.cc:184:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "hv")) != -1) {
data/xorp-1.8.6~wip.20160715/libfeaclient/tests/test_local_copy.cc:322:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "hv")) != -1) {
data/xorp-1.8.6~wip.20160715/libfeaclient/tests/test_remote_copy.cc:430:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "hv")) != -1) {
data/xorp-1.8.6~wip.20160715/libproto/tests/test_config_node_id.cc:452:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "hv")) != -1) {
data/xorp-1.8.6~wip.20160715/libproto/tests/test_spt.cc:616:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char *src = getenv("srcdir");
data/xorp-1.8.6~wip.20160715/libxipc/call_xrl.cc:265: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, "F:Efir:w:")) != -1) {
data/xorp-1.8.6~wip.20160715/libxipc/finder_client.cc:47:37:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    TraceFinderClient() : _do_trace(getenv("FINDERCLIENTTRACE") != 0)
data/xorp-1.8.6~wip.20160715/libxipc/finder_main.cc:86:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "a:i:n:p:hv")) != -1) {
data/xorp-1.8.6~wip.20160715/libxipc/finder_server.cc:38:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    value = getenv("XORP_FINDER_SERVER_ADDRESS");
data/xorp-1.8.6~wip.20160715/libxipc/finder_server.cc:56:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    value = getenv("XORP_FINDER_SERVER_PORT");
data/xorp-1.8.6~wip.20160715/libxipc/finder_xrl_target.cc:38: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.
	_do_trace = !(getenv("FINDERTRACE") == 0);
data/xorp-1.8.6~wip.20160715/libxipc/tests/test_finder.cc:455:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "hv")) != -1) {
data/xorp-1.8.6~wip.20160715/libxipc/tests/test_finder_events.cc:940:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "F:b:r:t:hv")) != -1) {
data/xorp-1.8.6~wip.20160715/libxipc/tests/test_finder_messenger.cc:319:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "hv")) != -1) {
data/xorp-1.8.6~wip.20160715/libxipc/tests/test_finder_msgs.cc:274:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "hv")) != -1) {
data/xorp-1.8.6~wip.20160715/libxipc/tests/test_finder_tcp.cc:251:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "hv")) != -1) {
data/xorp-1.8.6~wip.20160715/libxipc/tests/test_finder_to.cc:195:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "b:hp:vx:")) != -1) {
data/xorp-1.8.6~wip.20160715/libxipc/tests/test_fp64.cc:175:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand(time(NULL));
data/xorp-1.8.6~wip.20160715/libxipc/tests/test_fp64.cc:181:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "hv")) != -1) {
data/xorp-1.8.6~wip.20160715/libxipc/tests/test_lemming.cc:254:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "hv")) != -1) {
data/xorp-1.8.6~wip.20160715/libxipc/tests/test_xrl_args.cc:310:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "hv")) != -1) {
data/xorp-1.8.6~wip.20160715/libxipc/tests/test_xrl_receiver.cc:165:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "F:ha:")) != -1) {
data/xorp-1.8.6~wip.20160715/libxipc/tests/test_xrl_sender.cc:755:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "F:hm:n:N:rs:a:1:2:")) != -1) {
data/xorp-1.8.6~wip.20160715/libxipc/xrl_dispatcher.cc:37: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.
	_do_trace = !(getenv("XRLDISPATCHTRACE") == 0);
data/xorp-1.8.6~wip.20160715/libxipc/xrl_pf_stcp.cc:77: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.
	_do_trace = !(getenv("XRLTRACE") == 0);
data/xorp-1.8.6~wip.20160715/libxipc/xrl_pf_stcp.cc:107: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* value = getenv("XORP_LISTENER_KEEPALIVE_TIMEOUT");
data/xorp-1.8.6~wip.20160715/libxipc/xrl_pf_stcp.cc:773:19:  [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* value = getenv("XORP_SENDER_KEEPALIVE_TIME");
data/xorp-1.8.6~wip.20160715/libxipc/xrl_router.cc:54: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.
	_do_trace = !(getenv("XRLTRACE") == 0);
data/xorp-1.8.6~wip.20160715/libxipc/xrl_router.cc:157:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    value = getenv("XORP_FINDER_CLIENT_ADDRESS");
data/xorp-1.8.6~wip.20160715/libxipc/xrl_router.cc:175:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    value = getenv("XORP_FINDER_SERVER_ADDRESS");
data/xorp-1.8.6~wip.20160715/libxipc/xrl_router.cc:193:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    value = getenv("XORP_FINDER_SERVER_PORT");
data/xorp-1.8.6~wip.20160715/libxipc/xrl_router.cc:205:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    value = getenv("XORP_FINDER_CONNECT_TIMEOUT_MS");
data/xorp-1.8.6~wip.20160715/libxipc/xrl_std_router.cc:65:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char* pf = getenv("XORP_PF");
data/xorp-1.8.6~wip.20160715/libxipc/xrl_std_router.cc:159:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char* pf = getenv("XORP_PF");
data/xorp-1.8.6~wip.20160715/libxorp/asyncio.cc:50: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.
	_do_trace = !(getenv("AIOTRACE") == 0);
data/xorp-1.8.6~wip.20160715/libxorp/debug.h:35:20:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char* elt = getenv(e);
data/xorp-1.8.6~wip.20160715/libxorp/run_command.cc:125:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char* g = getenv("SHELL");
data/xorp-1.8.6~wip.20160715/libxorp/run_command.cc:323: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* value = getenv("XORP_FINDER_SERVER_PORT");
data/xorp-1.8.6~wip.20160715/libxorp/tests/test_config_param.cc:219:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "hv")) != -1) {
data/xorp-1.8.6~wip.20160715/libxorp/tests/test_heap.cc:187:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "hv")) != -1) {
data/xorp-1.8.6~wip.20160715/libxorp/tests/test_ipnet.cc:223:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "hv")) != -1) {
data/xorp-1.8.6~wip.20160715/libxorp/tests/test_ipv4.cc:983:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "hv")) != -1) {
data/xorp-1.8.6~wip.20160715/libxorp/tests/test_ipv6.cc:839:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "hv")) != -1) {
data/xorp-1.8.6~wip.20160715/libxorp/tests/test_ipvx.cc:1800:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "hv")) != -1) {
data/xorp-1.8.6~wip.20160715/libxorp/tests/test_ref_ptr.cc:206:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "hv")) != -1) {
data/xorp-1.8.6~wip.20160715/libxorp/tests/test_run_command.cc:868:19:  [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 *_cmdroot = getenv("MSYSROOT");
data/xorp-1.8.6~wip.20160715/libxorp/tests/test_run_command.cc:883:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "hv")) != -1) {
data/xorp-1.8.6~wip.20160715/libxorp/tests/test_sched.cc:544:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "hvf")) != -1) {
data/xorp-1.8.6~wip.20160715/libxorp/tests/test_service.cc:278:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "hv")) != -1) {
data/xorp-1.8.6~wip.20160715/libxorp/tests/test_time_slice.cc:221:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "hv")) != -1) {
data/xorp-1.8.6~wip.20160715/libxorp/tests/test_timeval.cc:194:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "hv")) != -1) {
data/xorp-1.8.6~wip.20160715/libxorp/tests/test_utils.cc:132:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "hv")) != -1) {
data/xorp-1.8.6~wip.20160715/libxorp/tests/test_vif.cc:635:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "hv")) != -1) {
data/xorp-1.8.6~wip.20160715/libxorp/utils.cc:153:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    value = getenv("TMPDIR");
data/xorp-1.8.6~wip.20160715/libxorp/utils.cc:157:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    value = getenv("TEMP");
data/xorp-1.8.6~wip.20160715/libxorp/utils.cc:160:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    value = getenv("TMP");
data/xorp-1.8.6~wip.20160715/libxorp/xorp_osdep_mid.h:253:5:  [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.
int getopt(int argc, char * const argv[], const char *optstring);
data/xorp-1.8.6~wip.20160715/mld6igmp/xorp_igmp.cc:161:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "F:h")) != -1) {
data/xorp-1.8.6~wip.20160715/mld6igmp/xorp_mld.cc:172:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "F:h")) != -1) {
data/xorp-1.8.6~wip.20160715/mrt/tests/test_mrt.cc:505:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "hv")) != -1) {
data/xorp-1.8.6~wip.20160715/ospf/tools/clear_database.cc:135: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, "23")) != -1) {
data/xorp-1.8.6~wip.20160715/ospf/tools/print_lsas.cc:525: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, "23a:f:sbdS:")) != -1) {
data/xorp-1.8.6~wip.20160715/ospf/tools/print_neighbours.cc:375: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, "23f:bd")) != -1) {
data/xorp-1.8.6~wip.20160715/pim/xorp_pimsm4.cc:188:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "F:h")) != -1) {
data/xorp-1.8.6~wip.20160715/pim/xorp_pimsm6.cc:187:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "F:h")) != -1) {
data/xorp-1.8.6~wip.20160715/policy/tests/compilepolicy.cc:290:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while( (ch = getopt(argc,argv,"hs:m:p:f:o:")) != -1) {
data/xorp-1.8.6~wip.20160715/policy/tests/policybench.cc:284:19:  [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 ((opt = getopt(argc, argv, "hp:v:i:t:n")) != -1) {
data/xorp-1.8.6~wip.20160715/policy/tests/yacc.yy_compile_policy.cc:317:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((yys = getenv("YYDEBUG")))
data/xorp-1.8.6~wip.20160715/rib/add_route.cc:183: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, "r:t:Rusd")) != -1) {
data/xorp-1.8.6~wip.20160715/rib/rib.cc:266:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char* v = getenv("XORP_RIB_STATIC_DISTANCE");
data/xorp-1.8.6~wip.20160715/rib/tests/test_redist.cc:440:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "hv")) != -1) {
data/xorp-1.8.6~wip.20160715/rib/tools/show_distances.cc:446: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 ((ch = getopt(argc, argv, "F:T:")) != -1) {
data/xorp-1.8.6~wip.20160715/rib/tools/show_routes.cc:817: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 ((ch = getopt(argc, argv, "bdtF:T:")) != -1) {
data/xorp-1.8.6~wip.20160715/rip/tests/test_auth.cc:480:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "hv")) != -1) {
data/xorp-1.8.6~wip.20160715/rip/tests/test_outputs.cc:729:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "hv")) != -1) {
data/xorp-1.8.6~wip.20160715/rip/tests/test_packets.cc:292:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "hv")) != -1) {
data/xorp-1.8.6~wip.20160715/rip/tests/test_request.cc:424:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "hv")) != -1) {
data/xorp-1.8.6~wip.20160715/rip/tests/test_route_walk.cc:338:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "hv")) != -1) {
data/xorp-1.8.6~wip.20160715/rip/tests/test_timers.cc:301:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "hv")) != -1) {
data/xorp-1.8.6~wip.20160715/rip/tests/test_update_queue.cc:368:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "hv")) != -1) {
data/xorp-1.8.6~wip.20160715/rip/tools/rip_announcer.cc:217: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 ((ch = getopt(argc, argv, "c:n:i:o:p:t:h")) != -1) {
data/xorp-1.8.6~wip.20160715/rip/tools/ripng_announcer.cc:235: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 ((ch = getopt(argc, argv, "c:n:i:I:o:t:h")) != -1) {
data/xorp-1.8.6~wip.20160715/rip/tools/show_peer_stats.cc:550: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 ((ch = getopt(argc, argv, "1F:T:")) != -1) {
data/xorp-1.8.6~wip.20160715/rip/tools/show_stats.cc:405: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 ((ch = getopt(argc, argv, "bF:T:")) != -1) {
data/xorp-1.8.6~wip.20160715/rip/xorp_rip_main.cc:347:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "F:")) != -1) {
data/xorp-1.8.6~wip.20160715/rtrmgr/cli.cc:164:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    value = getenv("XORP_PROMPT_OPERATIONAL");
data/xorp-1.8.6~wip.20160715/rtrmgr/cli.cc:167:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    value = getenv("XORP_PROMPT_CONFIGURATION");
data/xorp-1.8.6~wip.20160715/rtrmgr/main_rtrmgr.cc:578: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, optstring)) != EOF) {
data/xorp-1.8.6~wip.20160715/rtrmgr/profiler.cc:229: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, "t:lv:edcg")) != -1) {
data/xorp-1.8.6~wip.20160715/rtrmgr/tests/test_sample_config.cc:50:31:  [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.
static const char* c_srcdir = getenv("srcdir");
data/xorp-1.8.6~wip.20160715/rtrmgr/tests/test_templates.cc:54:31:  [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.
static const char* c_srcdir = getenv("srcdir");
data/xorp-1.8.6~wip.20160715/rtrmgr/tests/test_templates.cc:114: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, "t:x:")) != EOF) {
data/xorp-1.8.6~wip.20160715/rtrmgr/util.cc:82:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char* s = getenv("PATH");
data/xorp-1.8.6~wip.20160715/rtrmgr/util.cc:116:23:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
    const char* prp = realpath(path.c_str(), rp);
data/xorp-1.8.6~wip.20160715/rtrmgr/util.cc:131:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char* xr = getenv("XORP_ROOT");
data/xorp-1.8.6~wip.20160715/rtrmgr/util.cc:293:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char* p = getenv("PATH");
data/xorp-1.8.6~wip.20160715/rtrmgr/xorpsh_main.cc:852: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, optstring)) != EOF) {
data/xorp-1.8.6~wip.20160715/static_routes/xorp_static_routes.cc:147:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "F:h")) != -1) {
data/xorp-1.8.6~wip.20160715/utils/runit.cc:534:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "qvc:")) != -1)
data/xorp-1.8.6~wip.20160715/bgp/aspath.cc:345: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(&as_num, d, 4);
data/xorp-1.8.6~wip.20160715/bgp/aspath.cc:375:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(data + i, &as_num, 4);
data/xorp-1.8.6~wip.20160715/bgp/bgp.cc:860: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 peer_hostname[MAXHOSTNAMELEN];
data/xorp-1.8.6~wip.20160715/bgp/crash_dump.cc:81: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).
    dumpfile = fopen(filename.c_str(), "w");
data/xorp-1.8.6~wip.20160715/bgp/harness/peer.cc:264:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			   _target_hostname, atoi(_target_port.c_str()),
data/xorp-1.8.6~wip.20160715/bgp/harness/peer.cc:288:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			   _target_hostname, atoi(_target_port.c_str()),
data/xorp-1.8.6~wip.20160715/bgp/harness/peer.cc:364:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    _holdtime = atoi(words[i + 1].c_str());
data/xorp-1.8.6~wip.20160715/bgp/harness/peer.cc:491:33:  [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).
	    _corrupt.push_back(Corrupt(atoi(words[word].c_str()),
data/xorp-1.8.6~wip.20160715/bgp/harness/peer.cc:492: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).
				       atoi(words[word+1].c_str())));
data/xorp-1.8.6~wip.20160715/bgp/harness/peer.cc:679:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(pfx, &(table.prefix_len), 1);
data/xorp-1.8.6~wip.20160715/bgp/harness/peer.cc:680:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(pfx+1, &(table.prefix), 4);
data/xorp-1.8.6~wip.20160715/bgp/harness/peer.cc:740: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).
    FILE *fp = fopen(fname.c_str(), "r");
data/xorp-1.8.6~wip.20160715/bgp/harness/peer.cc:748: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).
	packets_to_send = atoi(words[6].c_str());
data/xorp-1.8.6~wip.20160715/bgp/harness/peer.cc:952:35:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    if(static_cast<unsigned int>(atoi(words[3].c_str())) !=
data/xorp-1.8.6~wip.20160715/bgp/harness/peer.cc:956:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				    atoi(words[3].c_str()),
data/xorp-1.8.6~wip.20160715/bgp/harness/peer.cc:988: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).
    FILE *fp = fopen(fname.c_str(), "a");
data/xorp-1.8.6~wip.20160715/bgp/harness/peer.cc:1020: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).
    FILE *fp = fopen(fname.c_str(), "a");
data/xorp-1.8.6~wip.20160715/bgp/harness/peer.cc:1136: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).
    FILE *fp = fopen(fname.c_str(), "a");
data/xorp-1.8.6~wip.20160715/bgp/harness/peer.cc:1174: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).
    FILE *fp = fopen(fname.c_str(), "a");
data/xorp-1.8.6~wip.20160715/bgp/harness/peer.cc:1200: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).
    FILE *fp = fopen(fname.c_str(), "a");
data/xorp-1.8.6~wip.20160715/bgp/harness/peer.cc:1275:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    	char tmpexp[MAXPATHLEN];
data/xorp-1.8.6~wip.20160715/bgp/harness/peer.cc:1749:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf, _data, _wire_size);
data/xorp-1.8.6~wip.20160715/bgp/harness/peer.cc:1818:35:  [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).
	    pac = new NotificationPacket(atoi(words[index + 1].c_str()));
data/xorp-1.8.6~wip.20160715/bgp/harness/peer.cc:1821:35:  [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).
	    pac = new NotificationPacket(atoi(words[index + 1].c_str()),
data/xorp-1.8.6~wip.20160715/bgp/harness/peer.cc:1822:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					    atoi(words[index + 2].c_str()));
data/xorp-1.8.6~wip.20160715/bgp/harness/peer.cc:1833:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		int value = atoi(words[index + 3 + i].c_str());
data/xorp-1.8.6~wip.20160715/bgp/harness/peer.cc:1841:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		pac = new NotificationPacket(atoi(words[index+1].c_str()),
data/xorp-1.8.6~wip.20160715/bgp/harness/peer.cc:1842: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).
					     atoi(words[index+2].c_str()),
data/xorp-1.8.6~wip.20160715/bgp/harness/peer.cc:1867:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				   (atoi(words[i + 1].c_str())));
data/xorp-1.8.6~wip.20160715/bgp/harness/peer.cc:1893:26:  [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).
		LocalPrefAttribute lpa(atoi(words[i+1].c_str()));
data/xorp-1.8.6~wip.20160715/bgp/harness/peer.cc:1908:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		MEDAttribute ma(atoi(words[i+1].c_str()));
data/xorp-1.8.6~wip.20160715/bgp/harness/peer.cc:1911:41:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		OriginatorIDAttribute oid(IPv4((const char *)
data/xorp-1.8.6~wip.20160715/bgp/harness/peer.cc:1915:38:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
 		cl.prepend_cluster_id(IPv4((const char *)
data/xorp-1.8.6~wip.20160715/bgp/harness/peer.cc:2006:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				 static_cast<uint16_t>(atoi(asnum.c_str()))),
data/xorp-1.8.6~wip.20160715/bgp/harness/peer.cc:2008:8:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					  atoi(holdtime.c_str()));
data/xorp-1.8.6~wip.20160715/bgp/harness/peer.cc:2013:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					      (Afi)atoi(afi.c_str()), 
data/xorp-1.8.6~wip.20160715/bgp/harness/peer.cc:2014:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					      (Safi)atoi(safi.c_str())));
data/xorp-1.8.6~wip.20160715/bgp/harness/peer.cc:2016:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	pac = open;
data/xorp-1.8.6~wip.20160715/bgp/iptuple.cc:169: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(&ss, res0->ai_addr, res0->ai_addrlen);
data/xorp-1.8.6~wip.20160715/bgp/iptuple.cc:175:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char hostname[1024];
data/xorp-1.8.6~wip.20160715/bgp/notification_packet.cc:57:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(error_data, ed, elen);
data/xorp-1.8.6~wip.20160715/bgp/notification_packet.cc:82:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ed, d + 2, error_data_len);
data/xorp-1.8.6~wip.20160715/bgp/notification_packet.cc:108:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf + BGPPacket::MINNOTIFICATIONPACKET, _error_data,
data/xorp-1.8.6~wip.20160715/bgp/open_packet.cc:71:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(d + i, (*pi)->data(), (*pi)->length());
data/xorp-1.8.6~wip.20160715/bgp/packet.cc:42:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf, Marker, BGPPacket::MARKER_SIZE);
data/xorp-1.8.6~wip.20160715/bgp/parameter.cc:44: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(data, d, l);
data/xorp-1.8.6~wip.20160715/bgp/parameter.cc:55:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(data, param._data, _length);
data/xorp-1.8.6~wip.20160715/bgp/parameter.cc:127: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(p, param._data, _length);
data/xorp-1.8.6~wip.20160715/bgp/parameter.cc:227:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(p, param._data, _length);
data/xorp-1.8.6~wip.20160715/bgp/parameter.cc:291: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(&_data[4],&k, 2);
data/xorp-1.8.6~wip.20160715/bgp/parameter.cc:350: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(p, param._data, _length);
data/xorp-1.8.6~wip.20160715/bgp/parameter.cc:416: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(p, param._data, _length);
data/xorp-1.8.6~wip.20160715/bgp/parameter.cc:458: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(&_data[4], &as, 4);
data/xorp-1.8.6~wip.20160715/bgp/parameter.cc:497: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(p, param._data, _length);
data/xorp-1.8.6~wip.20160715/bgp/path_attribute.cc:387:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&_med, payload(d), 4);
data/xorp-1.8.6~wip.20160715/bgp/path_attribute.cc:402: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(d, &x, 4);
data/xorp-1.8.6~wip.20160715/bgp/path_attribute.cc:439: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(&_localpref, payload(d), 4);
data/xorp-1.8.6~wip.20160715/bgp/path_attribute.cc:454: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(d, &x, 4);
data/xorp-1.8.6~wip.20160715/bgp/path_attribute.cc:689:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&value, d, 4);
data/xorp-1.8.6~wip.20160715/bgp/path_attribute.cc:709:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(d, &value, 4);
data/xorp-1.8.6~wip.20160715/bgp/path_attribute.cc:976:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(d, buf, bytes);
data/xorp-1.8.6~wip.20160715/bgp/path_attribute.cc:1044:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(d, buf_local, bytes);
data/xorp-1.8.6~wip.20160715/bgp/path_attribute.cc:1185:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf, data, bytes);
data/xorp-1.8.6~wip.20160715/bgp/path_attribute.cc:1300:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf, data, bytes);
data/xorp-1.8.6~wip.20160715/bgp/path_attribute.cc:1380:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(d, buf, bytes);
data/xorp-1.8.6~wip.20160715/bgp/path_attribute.cc:1438:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(d, buf, bytes);
data/xorp-1.8.6~wip.20160715/bgp/path_attribute.cc:1530:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf, data, bytes);
data/xorp-1.8.6~wip.20160715/bgp/path_attribute.cc:1601:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf, data, bytes);
data/xorp-1.8.6~wip.20160715/bgp/path_attribute.cc:1640: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(_data, d, _size);
data/xorp-1.8.6~wip.20160715/bgp/path_attribute.cc:1650: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(_data, data, _size);
data/xorp-1.8.6~wip.20160715/bgp/path_attribute.cc:1678:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf, _data, _size);
data/xorp-1.8.6~wip.20160715/bgp/path_attribute.cc:2260: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(_canonical_data, palist._canonical_data, _canonical_length);
data/xorp-1.8.6~wip.20160715/bgp/path_attribute.cc:2270: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(_canonical_data, fpa_list->canonical_data(), _canonical_length);
data/xorp-1.8.6~wip.20160715/bgp/path_attribute.cc:3035:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(p, _att_bytes[type], length);
data/xorp-1.8.6~wip.20160715/bgp/path_attribute.cc:3071: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(this->_canonical_data, buf, size_so_far);
data/xorp-1.8.6~wip.20160715/bgp/path_attribute.cc:3393:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(buf, att_data, att_len);
data/xorp-1.8.6~wip.20160715/bgp/path_attribute.cc:3418:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf, att_data, att_len);
data/xorp-1.8.6~wip.20160715/bgp/peer.cc:170: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).
    FILE *fp = fopen(fname.c_str(), "a");
data/xorp-1.8.6~wip.20160715/bgp/peer.cc:1188:44:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
BGPPeer::generate_open_message(OpenPacket& open)
data/xorp-1.8.6~wip.20160715/bgp/peer.cc:1216:2:  [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).
	open.add_parameter(*pi);
data/xorp-1.8.6~wip.20160715/bgp/peer.cc:2192:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&last_error, _last_error, 2);
data/xorp-1.8.6~wip.20160715/bgp/route_table_debug.cc:240:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    _ofile = fopen(filename.c_str(), "w");
data/xorp-1.8.6~wip.20160715/bgp/socket.cc:140: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(&ss, res0->ai_addr, res0->ai_addrlen);
data/xorp-1.8.6~wip.20160715/bgp/socket.cc:242: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 hostname[1024];
data/xorp-1.8.6~wip.20160715/bgp/tests/test_cache.cc:382:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *file = fopen(filename.c_str(), "r");
data/xorp-1.8.6~wip.20160715/bgp/tests/test_cache.cc:390: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 testout[BUFSIZE];
data/xorp-1.8.6~wip.20160715/bgp/tests/test_cache.cc:410:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen(ref_filename.c_str(), "r");
data/xorp-1.8.6~wip.20160715/bgp/tests/test_cache.cc:417: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 refout[BUFSIZE];
data/xorp-1.8.6~wip.20160715/bgp/tests/test_decision.cc:2032:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *file = fopen(filename.c_str(), "r");
data/xorp-1.8.6~wip.20160715/bgp/tests/test_decision.cc:2040: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 testout[BUFSIZE];
data/xorp-1.8.6~wip.20160715/bgp/tests/test_decision.cc:2059:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen(ref_filename.c_str(), "r");
data/xorp-1.8.6~wip.20160715/bgp/tests/test_decision.cc:2067: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 refout[BUFSIZE];
data/xorp-1.8.6~wip.20160715/bgp/tests/test_deletion.cc:601:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *file = fopen(filename.c_str(), "r");
data/xorp-1.8.6~wip.20160715/bgp/tests/test_deletion.cc:609: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 testout[BUFSIZE];
data/xorp-1.8.6~wip.20160715/bgp/tests/test_deletion.cc:628:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen(ref_filename.c_str(), "r");
data/xorp-1.8.6~wip.20160715/bgp/tests/test_deletion.cc:635: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 refout[BUFSIZE];
data/xorp-1.8.6~wip.20160715/bgp/tests/test_dump.cc:1866:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *file = fopen(filename.c_str(), "r");
data/xorp-1.8.6~wip.20160715/bgp/tests/test_dump.cc:1874: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 testout[BUFSIZE];
data/xorp-1.8.6~wip.20160715/bgp/tests/test_dump.cc:1893:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen(ref_filename.c_str(), "r");
data/xorp-1.8.6~wip.20160715/bgp/tests/test_dump.cc:1900: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 refout[BUFSIZE];
data/xorp-1.8.6~wip.20160715/bgp/tests/test_fanout.cc:681:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *file = fopen(filename.c_str(), "r");
data/xorp-1.8.6~wip.20160715/bgp/tests/test_fanout.cc:689: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 testout[BUFSIZE];
data/xorp-1.8.6~wip.20160715/bgp/tests/test_fanout.cc:708:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen(ref_filename.c_str(), "r");
data/xorp-1.8.6~wip.20160715/bgp/tests/test_fanout.cc:716: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 refout[BUFSIZE];
data/xorp-1.8.6~wip.20160715/bgp/tests/test_filter.cc:504:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *file = fopen(filename.c_str(), "r");
data/xorp-1.8.6~wip.20160715/bgp/tests/test_filter.cc:513:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char testout[BUFSIZE];
data/xorp-1.8.6~wip.20160715/bgp/tests/test_filter.cc:532:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen(ref_filename.c_str(), "r");
data/xorp-1.8.6~wip.20160715/bgp/tests/test_filter.cc:540: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 refout[BUFSIZE];
data/xorp-1.8.6~wip.20160715/bgp/tests/test_main.cc:52:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *file = fopen(output_file.c_str(), "r");
data/xorp-1.8.6~wip.20160715/bgp/tests/test_main.cc:60: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 testout[BUFSIZE];
data/xorp-1.8.6~wip.20160715/bgp/tests/test_main.cc:79:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen(ref_filename.c_str(), "r");
data/xorp-1.8.6~wip.20160715/bgp/tests/test_main.cc:85: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 refout[BUFSIZE];
data/xorp-1.8.6~wip.20160715/bgp/tests/test_nhlookup.cc:588:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *file = fopen(filename.c_str(), "r");
data/xorp-1.8.6~wip.20160715/bgp/tests/test_nhlookup.cc:596:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char testout[BUFSIZE];
data/xorp-1.8.6~wip.20160715/bgp/tests/test_nhlookup.cc:615:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen(ref_filename.c_str(), "r");
data/xorp-1.8.6~wip.20160715/bgp/tests/test_nhlookup.cc:623: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 refout[BUFSIZE];
data/xorp-1.8.6~wip.20160715/bgp/tests/test_policy.cc:221:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *file = fopen(filename.c_str(), "r");
data/xorp-1.8.6~wip.20160715/bgp/tests/test_policy.cc:230: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 testout[BUFSIZE];
data/xorp-1.8.6~wip.20160715/bgp/tests/test_policy.cc:249:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen(ref_filename.c_str(), "r");
data/xorp-1.8.6~wip.20160715/bgp/tests/test_policy.cc:257:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char refout[BUFSIZE];
data/xorp-1.8.6~wip.20160715/bgp/tests/test_policy.cc:519:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *file = fopen(filename.c_str(), "r");
data/xorp-1.8.6~wip.20160715/bgp/tests/test_policy.cc:528: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 testout[BUFSIZE];
data/xorp-1.8.6~wip.20160715/bgp/tests/test_policy.cc:547:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen(ref_filename.c_str(), "r");
data/xorp-1.8.6~wip.20160715/bgp/tests/test_policy.cc:555: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 refout[BUFSIZE];
data/xorp-1.8.6~wip.20160715/bgp/tests/test_policy.cc:829:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *file = fopen(filename.c_str(), "r");
data/xorp-1.8.6~wip.20160715/bgp/tests/test_policy.cc:838: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 testout[BUFSIZE];
data/xorp-1.8.6~wip.20160715/bgp/tests/test_policy.cc:857:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen(ref_filename.c_str(), "r");
data/xorp-1.8.6~wip.20160715/bgp/tests/test_policy.cc:865: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 refout[BUFSIZE];
data/xorp-1.8.6~wip.20160715/bgp/tests/test_ribout.cc:279:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *file = fopen(filename.c_str(), "r");
data/xorp-1.8.6~wip.20160715/bgp/tests/test_ribout.cc:287:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char testout[BUFSIZE];
data/xorp-1.8.6~wip.20160715/bgp/tests/test_ribout.cc:306:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen(ref_filename.c_str(), "r");
data/xorp-1.8.6~wip.20160715/bgp/tests/test_ribout.cc:314: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 refout[BUFSIZE];
data/xorp-1.8.6~wip.20160715/bgp/tools/print_peers.cc:59:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    interval = atoi(optarg);
data/xorp-1.8.6~wip.20160715/bgp/tools/print_routes_main.cc:86: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).
	    lines = atoi(optarg);
data/xorp-1.8.6~wip.20160715/bgp/tools/print_routes_main.cc:97:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    interval = atoi(optarg);
data/xorp-1.8.6~wip.20160715/bgp/tools/xorpsh_print_routes.cc:78: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).
	    lines = atoi(optarg);
data/xorp-1.8.6~wip.20160715/bgp/update_attrib.cc:52:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(a.a8, d + 1, bytes);
data/xorp-1.8.6~wip.20160715/bgp/update_attrib.cc:79:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(d + 1, a.a8, bytes);
data/xorp-1.8.6~wip.20160715/bgp/update_packet.cc:175: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(d+i, (*pai)->data(), (*pai)->wire_size());
data/xorp-1.8.6~wip.20160715/bgp/update_packet.cc:179: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(d+i, pa_list_buf, pa_len);
data/xorp-1.8.6~wip.20160715/cli/cli_command_pipe.cc:582: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 buffer[1024];
data/xorp-1.8.6~wip.20160715/cli/cli_command_pipe.cc:655: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 buffer[1024];
data/xorp-1.8.6~wip.20160715/cli/cli_command_pipe.cc:788: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 buffer[1024];
data/xorp-1.8.6~wip.20160715/cli/cli_node_internal_commands.cc:226:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    char buf[sizeof("999999999/99/99 99/99/99.999999999 ")];
data/xorp-1.8.6~wip.20160715/cli/cli_node_net.cc:558: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 hostname[MAXHOSTNAMELEN];
data/xorp-1.8.6~wip.20160715/cli/cli_node_net.cc:729:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1024];		// TODO: 1024 size must be #define
data/xorp-1.8.6~wip.20160715/cli/cli_node_net.cc:761: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(&_pending_input_data[old_size], buf, n);
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplfile.c:79: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 usrnam[USR_LEN+1];      /* The buffer used when reading the names of */
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplfile.c:81: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 envnam[ENV_LEN+1];      /* The buffer used when reading the names of */
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplfile.c:83: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 errmsg[ERRLEN+1];       /* The error-report buffer */
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplfile.c:674: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(pathname + start, FS_DIR_SEP, FS_DIR_SEP_LEN);
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplmatch.c:69: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 errmsg[ERRLEN+1];  /* The error-reporting buffer */
data/xorp-1.8.6~wip.20160715/cli/libtecla/direader.c:74: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 errmsg[ERRLEN+1]; /* Error-report buffer */
data/xorp-1.8.6~wip.20160715/cli/libtecla/enhance.c:102: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 slave_name[PTY_MAX_NAME]; /* The filename of the slave end of the */
data/xorp-1.8.6~wip.20160715/cli/libtecla/enhance.c:201: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 master_name[PTY_MAX_NAME]; /* The filename of the master device */
data/xorp-1.8.6~wip.20160715/cli/libtecla/enhance.c:215:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  *cntrl = open("/dev/ptmx", O_RDWR);
data/xorp-1.8.6~wip.20160715/cli/libtecla/enhance.c:266: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).
	*cntrl = open(master_name, O_RDWR);
data/xorp-1.8.6~wip.20160715/cli/libtecla/enhance.c:330:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fd = open(slave_name, O_RDWR);
data/xorp-1.8.6~wip.20160715/cli/libtecla/expand.c:99: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 usrnam[USR_LEN+1]; /* A user name */
data/xorp-1.8.6~wip.20160715/cli/libtecla/expand.c:100: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 envnam[ENV_LEN+1]; /* An environment variable name */
data/xorp-1.8.6~wip.20160715/cli/libtecla/expand.c:101:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char errmsg[ERRLEN+1];  /* Error-report buffer */
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:294: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 keyseq[GL_KEY_MAX+1]; /* A special key sequence being read */
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:1636: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 keyseq[2];
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:2328: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(gl->line + gl->buff_curpos, s, buff_slen);
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:2921: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 string[TAB_WIDTH + 4];
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:3157: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 string[TAB_WIDTH + 4]; /* A work area for composing compound strings */
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:3465: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(gl->cutbuf, gl->line + gl->buff_curpos, nc);
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:3488: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(gl->line + gl->buff_curpos, gl->vi.undo.line + gl->buff_curpos,
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:3970: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 from[3];     /* The original string of 2 characters */
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:3971: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 swap[3];     /* The swapped string of two characters */
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:4135: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(gl->cutbuf, gl->line + ca, cb + 1 - ca);
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:4595:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(gl->line + gl->buff_curpos, matches->suffix, suffix_len);
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:4599:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(gl->line + gl->buff_curpos + suffix_len, matches->cont_suffix,
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:5318: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(expansion->files[0], "r");
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:5399: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[GL_CONF_BUFLEN+1];  /* The input line buffer */
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:5400: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 *argv[GL_CONF_MAXARG];     /* The argument list */
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:5633:19:  [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).
    gl->file_fp = fopen(result->files[0], "r");
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:5769: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 s[2]; s[0] = count; s[1] = '\0';
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:5770:9:  [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).
    n = atoi(s);
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:6125: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(gl->cutbuf, gl->line + gl->buff_curpos, count);
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:6148: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(gl->cutbuf, gl->line + gl->buff_curpos, count);
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:6191: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(gl->cutbuf, gl->line + gl->buff_curpos, gl->ntotal - gl->buff_curpos);
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:6205: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(gl->cutbuf, gl->line, gl->buff_curpos);
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:6219: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(gl->cutbuf, gl->line, gl->ntotal);
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:6550: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(gl->cutbuf, gl->line + gl->buff_curpos, n);
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:6573: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(gl->cutbuf, gl->line + next, n);
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:6611: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(gl->cutbuf, gl->line + gl->buff_curpos, n);
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:6614: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(gl->cutbuf, gl->line + pos, n);
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:7917:40:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      if((env = getenv("LINES")) && (n=atoi(env)) > 0)
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:7935:42:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      if((env = getenv("COLUMNS")) && (n=atoi(env)) > 0)
data/xorp-1.8.6~wip.20160715/cli/libtecla/hash.c:83: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 errmsg[ERRLEN+1];/* Error-report buffer */
data/xorp-1.8.6~wip.20160715/cli/libtecla/history.c:371: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(glh->buffer + start, line, nchar);
data/xorp-1.8.6~wip.20160715/cli/libtecla/history.c:970: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, "w");
data/xorp-1.8.6~wip.20160715/cli/libtecla/history.c:1065: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, "r");
data/xorp-1.8.6~wip.20160715/cli/libtecla/history.c:1264: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 timestr[TSLEN+1];   /* The timestamp part of the string */
data/xorp-1.8.6~wip.20160715/cli/libtecla/history.c:1350: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[TSMAX+1];  /* The buffer in which to write the date and time */
data/xorp-1.8.6~wip.20160715/cli/libtecla/homedir.c:74: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 errmsg[ERRLEN+1]; /* Error-report buffer */
data/xorp-1.8.6~wip.20160715/cli/libtecla/nettest_libtecla.c:95: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 _telnet_sb_buffer[1024];
data/xorp-1.8.6~wip.20160715/cli/libtecla/nettest_libtecla.c:100: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 _command_buffer[1024];
data/xorp-1.8.6~wip.20160715/cli/libtecla/nettest_libtecla.c:216:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[128];
data/xorp-1.8.6~wip.20160715/cli/libtecla/nettest_libtecla.c:256:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1024];
data/xorp-1.8.6~wip.20160715/cli/libtecla/pathutil.c:197: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(path->name + pathlen, string, slen);
data/xorp-1.8.6~wip.20160715/cli/libtecla/pathutil.c:281: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(path->name, string, slen);
data/xorp-1.8.6~wip.20160715/cli/libtecla/pcache.c:159:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char usrnam[USR_LEN+1];/* The buffer used when reading the names of */
data/xorp-1.8.6~wip.20160715/cli/libtecla/pcache.c:161: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 errmsg[ERRLEN+1]; /* Error-report buffer */
data/xorp-1.8.6~wip.20160715/cli/tests/test_cli.cc:559:39:  [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).
		finder_port = static_cast<uint16_t>(atoi(p));
data/xorp-1.8.6~wip.20160715/cli/tools/cli_generic.cc:455:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	unsigned idx = (unsigned) atoi(num.c_str());
data/xorp-1.8.6~wip.20160715/cli/tools/send_cli_processor_xrl.cc:235:39:  [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).
		finder_port = static_cast<uint16_t>(atoi(p));
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/ldwrapper.cpp:136: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(left,le.c_str(),le.length()+1);
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/ldwrapper.cpp:139: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(right,ri.c_str(),ri.length()+1);
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/ldwrapper.cpp:153: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 lef[1024];
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/ldwrapper.cpp:154: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 rig[1024];
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/ldwrapper.cpp:316: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 if_name[80], dest_network[80], nexthop_addr[80];
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/ldwrapper.cpp:971:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((char*)&(*payload.begin()), (char *)buf, len);
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/ldwrapper.cpp:994:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[1024];
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/ldwrapper.cpp:1249: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 if_name[40], dest_network[80], nexthop_addr[80];
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/ldwrapper.cpp:1258:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[1024];
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/ldwrapper.cpp:1277: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(if_name, "eth0");
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/ldwrapper.cpp:1285:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&dst.s_addr, RTA_DATA(rta), 4);//rta->rta_len);
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/ldwrapper.cpp:1293:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(if_name, RTA_DATA(rta), rta->rta_len);
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/ldwrapper.cpp:1297:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&if_index, RTA_DATA(rta), 4);
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/ldwrapper.cpp:1301:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&gw.s_addr, RTA_DATA(rta), 4);//rta->rta_len);
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/ldwrapper.cpp:1312:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&metric, RTA_DATA(rta), 4);
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/ldwrapper.cpp:1409:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy((char *) buf,(char*)&(*rxbuf.begin()), rxbuf.size());
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/ldwrapper.cpp:1439: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.
extern char     xrl_data[BUFFSIZE];
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/ldwrapper.cpp:1458: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((uint8_t *)&(*data.begin()),recvudp->data,recvudp->data_len);
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/ldwrapper.cpp:1539:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[4096]; 
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/ldwrapper.cpp:1610:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char sbuf[BUFFSIZE];
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/ldwrapper.cpp:1619: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(sbuf,(char*)&(*payload.begin()),sendudp.data_len);
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/ldwrapper.cpp:1710:6:  [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(sopt.opt_name,"send_broadcast");
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/ldwrapper.cpp:1734:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(msg,xrl_data,xrl_data_len);
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/toXorp.cpp:20: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 s_buffer[BUFFSIZE];
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/toXorp.cpp:21: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 r_buffer[BUFFSIZE];
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/toXorp.cpp:33: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 	 xrl_data[BUFFSIZE];
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/toXorp.cpp:41: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 recvedbuf[BUFFSIZE];
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/toXorp.cpp:93: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((void *)s_buffer,(void *)(&nlen),sizeof(uint32_t));
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/toXorp.cpp:94: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((void *)(s_buffer+sizeof(uint32_t)),data,len);
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/toXorp.cpp:134:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf,(void *)(r_buffer+sizeof(uint32_t)),*len);
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/toXorp.cpp:176:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy((void *)xrl_data,(void *)wdata->data,xrl_data_len);
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/toXorp.cpp:201: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 sbuf[BUFFSIZE];
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/toXorp.cpp:205:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((void *)sbuf,(void *)(&wdata),sizeof(wrapperData_t));
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/toXorp.cpp:213: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 sbuf[BUFFSIZE];
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/toXorp.cpp:217:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((void *)sbuf,(void *)(&wdata),sizeof(wrapperData_t));
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/toXorp.cpp:218:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((void *)(sbuf+sizeof(wrapperData_t)),(void *)addroute,wdata.data_len);
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/toXorp.cpp:226:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char sbuf[BUFFSIZE];
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/toXorp.cpp:230:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((void *)sbuf,(void *)(&wdata),sizeof(wrapperData_t));
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/toXorp.cpp:231:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((void *)(sbuf+sizeof(wrapperData_t)),(void *)delroute,wdata.data_len);
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/toXorp.cpp: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 sbuf[BUFFSIZE];
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/toXorp.cpp:243:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((void *)sbuf,(void *)(&wdata),sizeof(wrapperData_t));
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/toXorp.cpp:244:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((void *)(sbuf+sizeof(wrapperData_t)),(void *)udpopen,wdata.data_len);
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/toXorp.cpp:251: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 sbuf[BUFFSIZE];
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/toXorp.cpp:255:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((void *)sbuf,(void *)(&wdata),sizeof(wrapperData_t));
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/toXorp.cpp:256:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((void *)(sbuf+sizeof(wrapperData_t)),(void *)xrlsocket,wdata.data_len);
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/toXorp.cpp:263: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 sbuf[BUFFSIZE];
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/toXorp.cpp:267:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((void *)sbuf,(void *)(&wdata),sizeof(wrapperData_t));
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/toXorp.cpp:268:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((void *)(sbuf+sizeof(wrapperData_t)),(void *)sockoption,wdata.data_len);
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/toXorp.cpp:275: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 sbuf[BUFFSIZE];
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/toXorp.cpp:279:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((void *)sbuf,(void *)(&wdata),sizeof(wrapperData_t));
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/toXorp.cpp:280:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((void *)(sbuf+sizeof(wrapperData_t)),(void *)sockoption,wdata.data_len);
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/toXorp.cpp:287:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char sbuf[BUFFSIZE];
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/toXorp.cpp:293:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((void *)sbuf,(void *)(&wdata),wdlen);
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/toXorp.cpp:294:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((void *)(sbuf+wdlen),(void *)sendudp,sulen);
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/toXorp.cpp:295:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((void *)(sbuf+wdlen+sulen),(void *)(sendudp->data),sendudp->data_len);
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/toXorp.cpp:302: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 sbuf[BUFFSIZE];
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/toXorp.cpp:306:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((void *)sbuf,(void *)(&wdata),sizeof(wrapperData_t));
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/toXorp.cpp:307:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((void *)(sbuf+sizeof(wrapperData_t)),(void *)sock,wdata.data_len);
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/toXorp.cpp:314: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 sbuf[BUFFSIZE];
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/toXorp.cpp:318:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((void *)sbuf,(void *)(&wdata),sizeof(wrapperData_t));
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/toXorp.cpp:319:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((void *)(sbuf+sizeof(wrapperData_t)),(void *)sock,wdata.data_len);
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/wrapper_types.h:63: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 dst[40];
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/wrapper_types.h:64: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 next_hop[20];
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/wrapper_types.h:65: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 ifname[128];
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/wrapper_types.h:66: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 vifname[128];
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/wrapper_types.h:74: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 dst[40];
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/wrapper_types.h:75: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 ifname[128];
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/wrapper_types.h:76: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 vifname[128];
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/wrapper_types.h:87: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 xorp_sock_name[128];
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/wrapper_types.h:92: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 	local_addr[40];
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/wrapper_types.h:99: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	opt_name[64];
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/wrapper_types.h:101: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	dev_name[128];
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/wrapper_types.h:107:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        target_addr[40];
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/wrapper_types.h:115: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 ifname[128];
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/wrapper_types.h:116: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 vifname[128];
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/wrapper_types.h:117: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        src_addr[40];
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/wrapper_types.h:127: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 network[40];
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/wrapper_types.h:128: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 next_hop[20];
data/xorp-1.8.6~wip.20160715/contrib/mld6igmp_lite/xorp_igmp.cc:172:39:  [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).
		finder_port = static_cast<uint16_t>(atoi(p));
data/xorp-1.8.6~wip.20160715/contrib/mld6igmp_lite/xorp_mld.cc:181:39:  [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).
		finder_port = static_cast<uint16_t>(atoi(p));
data/xorp-1.8.6~wip.20160715/contrib/olsr/emulate_net.cc:140: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(&_pkt[0], data, len);
data/xorp-1.8.6~wip.20160715/contrib/olsr/xrl_io.cc:487: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(&payload[0], data, len);
data/xorp-1.8.6~wip.20160715/contrib/wrapper/wrapper.cc:69:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(_buffer, &nlen, sizeof(nlen));
data/xorp-1.8.6~wip.20160715/contrib/wrapper/wrapper.cc:70:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(_buffer + sizeof(nlen), data, sizeof(*data));
data/xorp-1.8.6~wip.20160715/contrib/wrapper/wrapper.cc:72:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(_buffer + sizeof(nlen) + sizeof(*data), data->data, data->data_len);
data/xorp-1.8.6~wip.20160715/contrib/wrapper/wrapper.cc:133:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(data->data,(void *)(r_buffer+sizeof(uint32_t)+sizeof(wrapperData_t)),tp->data_len);
data/xorp-1.8.6~wip.20160715/contrib/wrapper/wrapper.cc:307: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((void *)_xrl_data,data,len);
data/xorp-1.8.6~wip.20160715/contrib/wrapper/wrapper.cc:322:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((void *)(_cmd_buffer+sizeof(wrapperData_t)),(void *)(cmd->data),cmd->data_len);
data/xorp-1.8.6~wip.20160715/contrib/wrapper/wrapper.cc:328:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  buf[MAXBUFFER];
data/xorp-1.8.6~wip.20160715/contrib/wrapper/wrapper.cc:333:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf, udpdata, sizeof(xrl_recv_udp_t));
data/xorp-1.8.6~wip.20160715/contrib/wrapper/wrapper.cc:334:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf + sizeof(xrl_recv_udp_t), udpdata->data, udpdata->data_len);
data/xorp-1.8.6~wip.20160715/contrib/wrapper/wrapper.cc:344:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  buf[MAXBUFFER];
data/xorp-1.8.6~wip.20160715/contrib/wrapper/wrapper.cc:349:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((void *)buf,(void *)policy, sizeof(xrl_policy_t));
data/xorp-1.8.6~wip.20160715/contrib/wrapper/wrapper.cc:353: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((void *)&routeP,(void *)policy, sizeof(xrl_policy_t));
data/xorp-1.8.6~wip.20160715/contrib/wrapper/wrapper.cc:416:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(_xrl_buf,_xrl_error.str().c_str(),len);
data/xorp-1.8.6~wip.20160715/contrib/wrapper/wrapper.cc:440:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(_xrl_buf,_xrl_data,_xrl_data_len);
data/xorp-1.8.6~wip.20160715/contrib/wrapper/wrapper.cc:448:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(_xrl_buf,_xrl_data,_xrl_data_len);
data/xorp-1.8.6~wip.20160715/contrib/wrapper/wrapper.cc:565:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((char*)&(*payload.begin()), (char *)(sendudp->data),sendudp->data_len);
data/xorp-1.8.6~wip.20160715/contrib/wrapper/xorp_io.cc:423: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(udppacket.sock_id.xorp_sock_name, sockid.c_str(), udppacket.sock_id.len+1);
data/xorp-1.8.6~wip.20160715/contrib/wrapper/xorp_io.cc:424: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(udppacket.ifname, if_name.c_str(), if_name.length()+1);
data/xorp-1.8.6~wip.20160715/contrib/wrapper/xorp_io.cc:425: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(udppacket.vifname,vif_name.c_str(), vif_name.length()+1);
data/xorp-1.8.6~wip.20160715/contrib/wrapper/xorp_io.cc:426: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(udppacket.src_addr,srchost.c_str(),srchost.length()+1);
data/xorp-1.8.6~wip.20160715/contrib/wrapper/xorp_io.cc:451: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(policy.network,network.c_str(),network.length()+1);
data/xorp-1.8.6~wip.20160715/contrib/wrapper/xorp_io.cc:455: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(policy.network,network.c_str(),network.length()+1);
data/xorp-1.8.6~wip.20160715/contrib/wrapper/xorp_io.cc:456: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(policy.next_hop,nexthop.c_str(),nexthop.length()+1);
data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/print_rtmsg.c:136:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char line[MAXHOSTNAMELEN + 1];
data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/print_rtmsg.c:138:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char domain[MAXHOSTNAMELEN + 1];
data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/print_rtmsg.c:211:20:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	char *cp = line + sprintf(line, "(%d)", sa->sa_family);
data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/print_rtmsg.c:242:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char line[MAXHOSTNAMELEN + 1];
data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/print_rtmsg.c:286:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    (void) sprintf(line, "%u", C(in.s_addr >> 24));
data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/print_rtmsg.c:288:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    (void) sprintf(line, "%u.%u", C(in.s_addr >> 24),
data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/print_rtmsg.c:291:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    (void) sprintf(line, "%u.%u.%u", C(in.s_addr >> 24),
data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/print_rtmsg.c:294:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    (void) sprintf(line, "%u.%u.%u.%u", C(in.s_addr >> 24),
data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/print_rtmsg.c:334:20:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	char *cp = line + sprintf(line, "af %d:", sa->sa_family);
data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/print_rtmsg.c:426:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    int len = atoi(s), q, r;
data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/print_rtmsg.c:469: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 m_space[512];
data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/test_monitor.c:51: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 msg[2048];
data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/xorprtm_internal.h:91: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     rbuf[PIPE_READBUF_SIZE];     /* XXX */
data/xorp-1.8.6~wip.20160715/fea/data_plane/control_socket/click_socket.cc:117:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	_kernel_fd = open(click_error_filename.c_str(), O_RDONLY | O_NONBLOCK);
data/xorp-1.8.6~wip.20160715/fea/data_plane/control_socket/click_socket.cc:241: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).
	    major = atoi(version.substr(0, dot1).c_str());
data/xorp-1.8.6~wip.20160715/fea/data_plane/control_socket/click_socket.cc:243: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).
		minor = atoi(version.substr(dot1 + 1, dot2 - dot1 - 1).c_str());
data/xorp-1.8.6~wip.20160715/fea/data_plane/control_socket/click_socket.cc:245: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).
		minor = atoi(version.substr(dot1 + 1).c_str());
data/xorp-1.8.6~wip.20160715/fea/data_plane/control_socket/click_socket.cc:417:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1024];
data/xorp-1.8.6~wip.20160715/fea/data_plane/control_socket/click_socket.cc:418:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[1024];
data/xorp-1.8.6~wip.20160715/fea/data_plane/control_socket/click_socket.cc:420: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).
    FILE* fh = fopen(PROC_LINUX_MODULES_FILE.c_str(), "r");
data/xorp-1.8.6~wip.20160715/fea/data_plane/control_socket/click_socket.cc:901:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	XorpFd fd = ::open(output_handler.c_str(), openflags);
data/xorp-1.8.6~wip.20160715/fea/data_plane/control_socket/click_socket.cc:925: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 error_buf[8 * 1024];
data/xorp-1.8.6~wip.20160715/fea/data_plane/control_socket/click_socket.cc:1090:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	int error_code = atoi(line.substr(0, CLICK_COMMAND_RESPONSE_CODE_SEPARATOR_INDEX).c_str());
data/xorp-1.8.6~wip.20160715/fea/data_plane/control_socket/click_socket.cc:1180:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&message[0], &buffer[0], got);
data/xorp-1.8.6~wip.20160715/fea/data_plane/control_socket/netlink_socket.cc:399:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&message[off], &buffer[0], got);
data/xorp-1.8.6~wip.20160715/fea/data_plane/control_socket/netlink_socket.cc:588:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(&_cache_data[off], nlh, nlh->nlmsg_len);
data/xorp-1.8.6~wip.20160715/fea/data_plane/control_socket/netlink_socket_utilities.cc:787: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 buf[IF_NAMESIZE + 1];
data/xorp-1.8.6~wip.20160715/fea/data_plane/control_socket/netlink_socket_utilities.cc:1098: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 buf[IF_NAMESIZE + 1];
data/xorp-1.8.6~wip.20160715/fea/data_plane/control_socket/routing_socket.cc:172:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&message[off], &buffer[0], got);
data/xorp-1.8.6~wip.20160715/fea/data_plane/control_socket/routing_socket.cc:345:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(&_cache_data[off], rtm, rtm->rtm_msglen);
data/xorp-1.8.6~wip.20160715/fea/data_plane/control_socket/routing_socket_utilities.cc:298:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&sin6, sock, sock->sa_len);
data/xorp-1.8.6~wip.20160715/fea/data_plane/control_socket/windows_rtm_pipe.cc:223:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&message[off], &buffer[0], nbytes);
data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_entry_get_netlink_socket.cc:283:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(data, &uint32_table_id, sizeof(uint32_table_id));
data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_entry_set_netlink_socket.cc:314:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(data, &int_if_index, sizeof(int_if_index));
data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_entry_set_netlink_socket.cc:332: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(data, &int_priority, sizeof(int_priority));
data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_entry_set_netlink_socket.cc:351:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(data, &uint32_table_id, sizeof(uint32_table_id));
data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_entry_set_netlink_socket.cc:492:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(data, &uint32_table_id, sizeof(uint32_table_id));
data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_forwarding_proc_linux.cc:75: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).
    fh = fopen(PROC_LINUX_FORWARDING_FILE_V4.c_str(), "r");
data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_forwarding_proc_linux.cc:119: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).
    fh = fopen(PROC_LINUX_FORWARDING_FILE_V6.c_str(), "r");
data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_forwarding_proc_linux.cc:203: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).
    fh = fopen(PROC_LINUX_FORWARDING_FILE_V4.c_str(), "w");
data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_forwarding_proc_linux.cc:267: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).
    fh = fopen(PROC_LINUX_FORWARDING_FILE_V6.c_str(), "w");
data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_forwarding_solaris.cc:77:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[256];
data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_forwarding_solaris.cc:91:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(DEV_SOLARIS_DRIVER_FORWARDING_V4, O_RDONLY);
data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_forwarding_solaris.cc:157:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[256];
data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_forwarding_solaris.cc:171:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(DEV_SOLARIS_DRIVER_FORWARDING_V6, O_RDONLY);
data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_forwarding_solaris.cc:236:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[256];
data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_forwarding_solaris.cc:252:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(DEV_SOLARIS_DRIVER_FORWARDING_V6, O_RDONLY);
data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_forwarding_solaris.cc:330:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[256];
data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_forwarding_solaris.cc:358:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(DEV_SOLARIS_DRIVER_FORWARDING_V4, O_WRONLY);
data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_forwarding_solaris.cc: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 buf[256];
data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_forwarding_solaris.cc:450:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(DEV_SOLARIS_DRIVER_FORWARDING_V6, O_WRONLY);
data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_forwarding_solaris.cc:505:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[256];
data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_forwarding_solaris.cc:547:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(DEV_SOLARIS_DRIVER_FORWARDING_V6, O_WRONLY);
data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_table_get_netlink_socket.cc:225:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(data, &uint32_table_id, sizeof(uint32_table_id));
data/xorp-1.8.6~wip.20160715/fea/data_plane/firewall/firewall_get_pf.cc:87: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).
    _fd = open(_pf_device_name.c_str(), O_RDONLY);
data/xorp-1.8.6~wip.20160715/fea/data_plane/firewall/firewall_set_netfilter.cc:91: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				error[IPT_TABLE_MAXNAMELEN];
data/xorp-1.8.6~wip.20160715/fea/data_plane/firewall/firewall_set_netfilter.cc:115: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				error[IP6T_TABLE_MAXNAMELEN];
data/xorp-1.8.6~wip.20160715/fea/data_plane/firewall/firewall_set_pf.cc:86: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).
    _fd = open(_pf_device_name.c_str(), O_RDWR);
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_get_ioctl.cc:162:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&buffer[0], ifconf.ifc_buf, ifconf.ifc_len);
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_get_ioctl.cc:177:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&buffer[0], ifconf.ifc_buf, ifconf.ifc_len);
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_get_iphelper.cc:136: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	if_name[MAX_ADAPTER_NAME_LENGTH+4];
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_get_proc_linux.cc:270:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[512];
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_get_proc_linux.cc:271: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 *s, ifname[IFNAMSIZ];
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_get_proc_linux.cc:273: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).
    fh = fopen(proc_linux_net_device_file.c_str(), "r");
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_get_proc_linux.cc:316:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&buffer[0], &ifreq, sizeof(ifreq));
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_get_proc_linux.cc:354: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 devname[IFNAMSIZ+20+1];
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_get_proc_linux.cc:355: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 addr6p[8][5], addr6[40];
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_get_proc_linux.cc:362: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).
    fh = fopen(proc_linux_net_device_file.c_str(), "r");
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_get_proc_linux.cc:386: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 tmp_if_name[IFNAMSIZ+1];
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_media.cc:260:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&ifreq.ifr_addr, &mii, sizeof(mii));
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_media.cc:290:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char dummy[4];
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_parse_getifaddrs.cc:92: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 tmp_if_name[IFNAMSIZ+1];
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_parse_getifaddrs.cc:194:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&ea, sdl->sdl_data + sdl->sdl_nlen,
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_parse_ioctl.cc:119: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 tmp_if_name[IFNAMSIZ+1];
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_parse_ioctl.cc:204:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&ea, sdl->sdl_data + sdl->sdl_nlen,
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_parse_routing_socket.cc:403: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 name_buf[IF_NAMESIZE];
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_parse_routing_socket.cc:484: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(&ea, sdl->sdl_data + sdl->sdl_nlen,
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_set_ioctl.cc:646: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(ifreq.ifr_addr.sa_data, &ether_addr, sizeof(ether_addr));
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_set_ioctl.cc:666: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(ifreq.ifr_hwaddr.sa_data, &ether_addr, ETH_ALEN);
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_set_netlink_socket.cc:781: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(RTA_DATA(rtattr), &ether_addr, ETH_ALEN);
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_set_netlink_socket.cc:826: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(ifreq.ifr_hwaddr.sa_data, &ether_addr, ETH_ALEN);
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_set_netlink_socket.cc:903: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(RTA_DATA(rtattr), &uint_mtu, sizeof(uint_mtu));
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_vlan_set_linux.cc:185: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).
	int vid = atoi(config_if.vid().c_str());
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_vlan_set_linux.cc:306: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 new_vlan_name[sizeof(ifreq.ifr_name)];
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_vlan_set_linux.cc:387: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 new_vlan_name[sizeof(ifreq.ifr_newname)];
data/xorp-1.8.6~wip.20160715/fea/data_plane/io/io_ip_socket.cc:251: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(&ra_opt6[2], (caddr_t)&rtalert_code6, sizeof(rtalert_code6));
data/xorp-1.8.6~wip.20160715/fea/data_plane/io/io_ip_socket.cc:1633:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(&payload[0], _rcvbuf, nbytes);
data/xorp-1.8.6~wip.20160715/fea/data_plane/io/io_ip_socket.cc:1670:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(&payload[0], _rcvbuf, nbytes);
data/xorp-1.8.6~wip.20160715/fea/data_plane/io/io_ip_socket.cc:1972: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(&opt_payload[0], cmsg_data, cmsgp->cmsg_len);
data/xorp-1.8.6~wip.20160715/fea/data_plane/io/io_ip_socket.cc:1987: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(&opt_payload[0], cmsg_data, cmsgp->cmsg_len);
data/xorp-1.8.6~wip.20160715/fea/data_plane/io/io_ip_socket.cc:2113: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(&payload[0], _rcvbuf + ip_hdr_len, nbytes - ip_hdr_len);
data/xorp-1.8.6~wip.20160715/fea/data_plane/io/io_ip_socket.cc:2384:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(_sndbuf, &payload[0], payload.size()); // XXX: _sndiov[0].iov_base
data/xorp-1.8.6~wip.20160715/fea/data_plane/io/io_ip_socket.cc:2515:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    	memcpy(_sndbuf + ip_hdr_len, &payload[0], payload.size()); // XXX: _sndiov[0].iov_base
data/xorp-1.8.6~wip.20160715/fea/data_plane/io/io_ip_socket.cc:2546:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(_sndbuf, &ip_fragment[0], ip_fragment.size());
data/xorp-1.8.6~wip.20160715/fea/data_plane/io/io_ip_socket.cc:2755:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(cmsg_data, &opt_payload[0], opt_payload.size());
data/xorp-1.8.6~wip.20160715/fea/data_plane/io/io_ip_socket.cc:2763:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(_sndbuf, &payload[0], payload.size()); // XXX: _sndiov[0].iov_base
data/xorp-1.8.6~wip.20160715/fea/data_plane/io/io_link_pcap.cc:436:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(LLADDR(sdl), &ether_addr, sizeof(ether_addr));
data/xorp-1.8.6~wip.20160715/fea/io_link.cc:167: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(&payload[0], packet + payload_offset, payload_size);
data/xorp-1.8.6~wip.20160715/fea/io_link.cc:268: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(ptr, &payload[0], payload.size());
data/xorp-1.8.6~wip.20160715/fea/tests/test_fea_rawlink.cc:738: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).
	finder_port = atoi(p + 1);
data/xorp-1.8.6~wip.20160715/fea/tests/test_xrl_sockets4_tcp.cc:1202: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).
	finder_port = atoi(p + 1);
data/xorp-1.8.6~wip.20160715/fea/tests/test_xrl_sockets4_udp.cc:587: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).
	finder_port = atoi(p + 1);
data/xorp-1.8.6~wip.20160715/fea/tools/show_interfaces.cc:745:39:  [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).
		finder_port = static_cast<uint16_t>(atoi(p));
data/xorp-1.8.6~wip.20160715/fea/xorp_fea.cc:164:39:  [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).
		finder_port = static_cast<uint16_t>(atoi(p));
data/xorp-1.8.6~wip.20160715/fib2mrib/xorp_fib2mrib.cc:159:39:  [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).
		finder_port = static_cast<uint16_t>(atoi(p));
data/xorp-1.8.6~wip.20160715/libcomm/comm_sock.c:77: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 addr_str_255[sizeof "ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255"];
data/xorp-1.8.6~wip.20160715/libcomm/comm_sock.c:433: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 mcast_addr_str[32], my_addr_str[32];
data/xorp-1.8.6~wip.20160715/libcomm/comm_sock.c:470: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(&imr6.ipv6mr_multiaddr, mcast_addr, sizeof(*mcast_addr));
data/xorp-1.8.6~wip.20160715/libcomm/comm_sock.c:513: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 mcast_addr_str[32], my_addr_str[32];
data/xorp-1.8.6~wip.20160715/libcomm/comm_sock.c:550: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(&imr6.ipv6mr_multiaddr, mcast_addr, sizeof(*mcast_addr));
data/xorp-1.8.6~wip.20160715/libcomm/comm_sock.c:1307: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 tmp_ifname[IFNAMSIZ];
data/xorp-1.8.6~wip.20160715/libcomm/comm_sock.c:1468: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		data[MAXSOCKADDR];
data/xorp-1.8.6~wip.20160715/libcomm/comm_user.c:111:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char msgbuf[1024];
data/xorp-1.8.6~wip.20160715/libcomm/tests/test_connect.cc:200: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).
    dst_port = atoi(argv[1]);
data/xorp-1.8.6~wip.20160715/libproto/packet.cc:89: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(&frag_buf[0], _data, IpHeader4::SIZE);
data/xorp-1.8.6~wip.20160715/libproto/packet.cc:136:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dp, cp, optlen);
data/xorp-1.8.6~wip.20160715/libproto/packet.cc:164:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&first_frag[0], _data, first_frag_len);
data/xorp-1.8.6~wip.20160715/libproto/packet.cc:197:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&frag_buf[0] + frag_ip_hl, _data + data_start, frag_data_len);
data/xorp-1.8.6~wip.20160715/libproto/packet.cc:243: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(this, &pkt[0], pkt.size());
data/xorp-1.8.6~wip.20160715/libproto/packet.cc:294: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(&reply, this, sz);
data/xorp-1.8.6~wip.20160715/libproto/packet.cc:301: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(&reply.ah_data_store[sz], ah_data_store, sz);
data/xorp-1.8.6~wip.20160715/libproto/packet.cc:306: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(&reply.ah_data_store[ah_hw_len], &ah_data_store[sz], ah_proto_len);
data/xorp-1.8.6~wip.20160715/libproto/packet.cc:309:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&out[0], &reply, reply.size());
data/xorp-1.8.6~wip.20160715/libproto/packet.cc:364: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(&data[0], &arp, sz);
data/xorp-1.8.6~wip.20160715/libproto/tests/test_spt.cc:106:26:  [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).
	spt->add_edge(words[0], atoi(words[1].c_str()), words[2]);
data/xorp-1.8.6~wip.20160715/libxipc/call_xrl.cc:278: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).
	    retry_count = atoi(optarg);
data/xorp-1.8.6~wip.20160715/libxipc/call_xrl.cc:281:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    wait_time = atoi(optarg) * 1000;
data/xorp-1.8.6~wip.20160715/libxipc/call_xrl.cc:288:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		port = atoi(tmpport);
data/xorp-1.8.6~wip.20160715/libxipc/finder_main.cc:137:40:  [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).
	    bind_port = static_cast<uint16_t>(atoi(optarg));
data/xorp-1.8.6~wip.20160715/libxipc/finder_server.cc:58: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 port = atoi(value);
data/xorp-1.8.6~wip.20160715/libxipc/hmac_md5.c:47:30:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void hmac_md5(const unsigned char   *data,
data/xorp-1.8.6~wip.20160715/libxipc/hmac_md5.c:49:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	      const unsigned char   *key,
data/xorp-1.8.6~wip.20160715/libxipc/hmac_md5.c:51:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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    digest[16])
data/xorp-1.8.6~wip.20160715/libxipc/hmac_md5.c:54:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char k_ipad[65];    /* inner padding - key XORd with ipad */
data/xorp-1.8.6~wip.20160715/libxipc/hmac_md5.c:55:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char k_opad[65];    /* outer padding - key XORd with opad */
data/xorp-1.8.6~wip.20160715/libxipc/hmac_md5.c:56:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char tk[16];
data/xorp-1.8.6~wip.20160715/libxipc/hmac_md5.c:85: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(k_ipad, key, key_len);
data/xorp-1.8.6~wip.20160715/libxipc/hmac_md5.c:86: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(k_opad, key, key_len);
data/xorp-1.8.6~wip.20160715/libxipc/hmac_md5.c:110:35:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
hmac_md5_digest_to_ascii(unsigned char	digest[16],
data/xorp-1.8.6~wip.20160715/libxipc/hmac_md5.c:160:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char	 digest[16];
data/xorp-1.8.6~wip.20160715/libxipc/hmac_md5.h:53:31:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	void hmac_md5(const unsigned char *data, int data_bytes,
data/xorp-1.8.6~wip.20160715/libxipc/hmac_md5.h:54:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		      const unsigned char *key,  int key_bytes,
data/xorp-1.8.6~wip.20160715/libxipc/hmac_md5.h:55:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		      unsigned char  digest[16]);
data/xorp-1.8.6~wip.20160715/libxipc/hmac_md5.h:67:48:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char* hmac_md5_digest_to_ascii(unsigned char digest[16],
data/xorp-1.8.6~wip.20160715/libxipc/sockutil.cc:96:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    char hname[MAXHOSTNAMELEN + 1];
data/xorp-1.8.6~wip.20160715/libxipc/sockutil.cc:134: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 pbuf[8];
data/xorp-1.8.6~wip.20160715/libxipc/sockutil.cc:200: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).
    port = atoi(address_slash_port.c_str() + slash + 1);
data/xorp-1.8.6~wip.20160715/libxipc/sockutil.cc:333:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&buffer[0], ifconf.ifc_buf, ifconf.ifc_len);
data/xorp-1.8.6~wip.20160715/libxipc/sockutil.cc:371: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 tmp_if_name[IFNAMSIZ+1];
data/xorp-1.8.6~wip.20160715/libxipc/tests/test_finder_events.cc:881: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).
	finder_port = atoi(p + 1);
data/xorp-1.8.6~wip.20160715/libxipc/tests/test_finder_events.cc:957: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).
	    reps = atoi(optarg);
data/xorp-1.8.6~wip.20160715/libxipc/tests/test_finder_events.cc:964: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).
	    which = atoi(optarg);
data/xorp-1.8.6~wip.20160715/libxipc/tests/test_finder_tcp.cc:114:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char	_buf[255];
data/xorp-1.8.6~wip.20160715/libxipc/tests/test_xrl_receiver.cc:168:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    g_aggressiveness = atoi(optarg);
data/xorp-1.8.6~wip.20160715/libxipc/tests/test_xrl_receiver.cc:182:39:  [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).
		finder_port = static_cast<uint16_t>(atoi(p));
data/xorp-1.8.6~wip.20160715/libxipc/tests/test_xrl_sender.cc:346:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	_batch_per_run = atoi(g_param1);
data/xorp-1.8.6~wip.20160715/libxipc/tests/test_xrl_sender.cc:349: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).
	_batch_size = atoi(g_param2);
data/xorp-1.8.6~wip.20160715/libxipc/tests/test_xrl_sender.cc:758:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    g_aggressiveness = atoi(optarg);
data/xorp-1.8.6~wip.20160715/libxipc/tests/test_xrl_sender.cc:780:39:  [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).
		finder_port = static_cast<uint16_t>(atoi(p));
data/xorp-1.8.6~wip.20160715/libxipc/tests/test_xrl_sender.cc:785:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    g_send_method = atoi(optarg);
data/xorp-1.8.6~wip.20160715/libxipc/tests/test_xrl_sender.cc:791:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    g_atoms_per_xrl = atoi(optarg);
data/xorp-1.8.6~wip.20160715/libxipc/tests/test_xrl_sender.cc:794: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).
	    g_max_xrls_per_run = atoi(optarg);
data/xorp-1.8.6~wip.20160715/libxipc/tests/test_xrl_sender.cc:800: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).
	    g_send_style = atoi(optarg);
data/xorp-1.8.6~wip.20160715/libxipc/xrl_args.cc:723:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buffer, &header, sizeof(header));
data/xorp-1.8.6~wip.20160715/libxipc/xrl_atom.cc:578: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 tmp[32];
data/xorp-1.8.6~wip.20160715/libxipc/xrl_atom.cc:841:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buffer + sizeof(sz), name().c_str(), name().size());
data/xorp-1.8.6~wip.20160715/libxipc/xrl_atom.cc:911:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buffer, &u, sizeof(u));
data/xorp-1.8.6~wip.20160715/libxipc/xrl_atom.cc:926:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buffer, &ul, sizeof(ul));
data/xorp-1.8.6~wip.20160715/libxipc/xrl_atom.cc:945:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buffer, a, 4 * sizeof(*a));
data/xorp-1.8.6~wip.20160715/libxipc/xrl_atom.cc:967:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buffer, a, 4 * sizeof(*a));
data/xorp-1.8.6~wip.20160715/libxipc/xrl_atom.cc:993:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buffer, &ul, sizeof(ul));
data/xorp-1.8.6~wip.20160715/libxipc/xrl_atom.cc:995:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buffer + sizeof(ul), ser.c_str(), sz);
data/xorp-1.8.6~wip.20160715/libxipc/xrl_atom.cc:1037:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buffer, &ul, sizeof(ul));
data/xorp-1.8.6~wip.20160715/libxipc/xrl_atom.cc:1039:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buffer + sizeof(ul), _text->c_str(), sz);
data/xorp-1.8.6~wip.20160715/libxipc/xrl_atom.cc:1106:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buffer, &nelem, sizeof(nelem));
data/xorp-1.8.6~wip.20160715/libxipc/xrl_atom.cc:1156:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buffer, &ul, sizeof(ul));
data/xorp-1.8.6~wip.20160715/libxipc/xrl_atom.cc:1158:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buffer + sizeof(ul), &(_binary->operator[](0)), sz);
data/xorp-1.8.6~wip.20160715/libxipc/xrl_atom_encoding.cc:153: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 encoded_data[val_bytes * 4 + 1];
data/xorp-1.8.6~wip.20160715/libxipc/xrl_parser_input.cc:67: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 c[2];
data/xorp-1.8.6~wip.20160715/libxipc/xrl_pf_stcp.cc:355:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&r[0] + STCPPacketHeader::header_size(),
data/xorp-1.8.6~wip.20160715/libxipc/xrl_router.cc:129: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 asc_digest[33];
data/xorp-1.8.6~wip.20160715/libxipc/xrl_router.cc:195: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 port = atoi(value);
data/xorp-1.8.6~wip.20160715/libxipc/xuid.cc:52:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[MAXHOSTNAMELEN];
data/xorp-1.8.6~wip.20160715/libxipc/xuid.cc:152: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 dst[XUID_CSTR_BYTES + 1];
data/xorp-1.8.6~wip.20160715/libxorp/daemon.c:97:24:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!noclose && (fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1) {
data/xorp-1.8.6~wip.20160715/libxorp/debug.h:37:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    _do_trace = atoi(elt);
data/xorp-1.8.6~wip.20160715/libxorp/ether_compat.c:117:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buf[sizeof("00:00:00:00:00:00")];
data/xorp-1.8.6~wip.20160715/libxorp/ether_compat.h:73: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	octet[ETHER_ADDR_LEN];
data/xorp-1.8.6~wip.20160715/libxorp/eventloop.cc:40: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 xorp_sig_msg_buffer[64];
data/xorp-1.8.6~wip.20160715/libxorp/heap.cc:87: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(p, _p, _size * sizeof(*p));
data/xorp-1.8.6~wip.20160715/libxorp/inet_ntop.c:100: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 tmp[sizeof "255.255.255.255"];
data/xorp-1.8.6~wip.20160715/libxorp/inet_ntop.c:128: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 tmp[sizeof "ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255"];
data/xorp-1.8.6~wip.20160715/libxorp/inet_pton.c:149:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dst, tmp, NS_INADDRSZ);
data/xorp-1.8.6~wip.20160715/libxorp/inet_pton.c:245:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dst, tmp, NS_IN6ADDRSZ);
data/xorp-1.8.6~wip.20160715/libxorp/ipv4.cc:89: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(to_uint8, &_addr, addr_bytelen());
data/xorp-1.8.6~wip.20160715/libxorp/ipv4.cc:149: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(&_addr, from_uint8, addr_bytelen());
data/xorp-1.8.6~wip.20160715/libxorp/ipv6.cc:97: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(to_uint8, _addr, addr_bytelen());
data/xorp-1.8.6~wip.20160715/libxorp/ipv6.cc:175: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(_addr, from_uint8, addr_bytelen());
data/xorp-1.8.6~wip.20160715/libxorp/ipv6.cc:358:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_buffer[sizeof "ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255"];
data/xorp-1.8.6~wip.20160715/libxorp/ipvx.cc:68: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(_addr, from_uint8, addr_bytelen());
data/xorp-1.8.6~wip.20160715/libxorp/ipvx.cc:78: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(_addr, &ipv4, 4);
data/xorp-1.8.6~wip.20160715/libxorp/ipvx.cc:87: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(_addr, &ipv6, 16);
data/xorp-1.8.6~wip.20160715/libxorp/ipvx.cc:301: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(to_uint8, _addr, addr_bytelen());
data/xorp-1.8.6~wip.20160715/libxorp/ipvx.cc:461:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(_addr, from_uint8, addr_bytelen());
data/xorp-1.8.6~wip.20160715/libxorp/mac.cc:57: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(to_uint8, _addr, sizeof(_addr));
data/xorp-1.8.6~wip.20160715/libxorp/mac.cc:64: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(&to_ether_addr, _addr, sizeof(_addr));
data/xorp-1.8.6~wip.20160715/libxorp/mac.cc:170:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_buffer[sizeof "ff:ff:ff:ff:ff:ff"];
data/xorp-1.8.6~wip.20160715/libxorp/popen.cc:312:19:  [2] (race) vfork:
  On some old systems, vfork() permits race conditions, and it's very
  difficult to use correctly (CWE-362). Use fork() instead.
    switch (pid = vfork()) {
data/xorp-1.8.6~wip.20160715/libxorp/random.c:367:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open("/dev/random", O_RDONLY, 0);
data/xorp-1.8.6~wip.20160715/libxorp/selector.cc:339: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(testfds, _fds, sizeof(_fds));
data/xorp-1.8.6~wip.20160715/libxorp/selector.cc:383: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(_testfds, _fds, sizeof(_fds));
data/xorp-1.8.6~wip.20160715/libxorp/strptime.c:126:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char *abday[7];
data/xorp-1.8.6~wip.20160715/libxorp/strptime.c:127:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char *day[7];
data/xorp-1.8.6~wip.20160715/libxorp/strptime.c:128:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char *abmon[12];
data/xorp-1.8.6~wip.20160715/libxorp/strptime.c:129:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char *mon[12];
data/xorp-1.8.6~wip.20160715/libxorp/strptime.c:130:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char *am_pm[2];
data/xorp-1.8.6~wip.20160715/libxorp/tests/test_asyncio.cc:523:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[500];
data/xorp-1.8.6~wip.20160715/libxorp/tests/test_ipv6.cc:103: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(&ui8[0], &in6_addr, sizeof(in6_addr));
data/xorp-1.8.6~wip.20160715/libxorp/tests/test_ipv6.cc:104: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(&ui32[0], &in6_addr, sizeof(in6_addr));
data/xorp-1.8.6~wip.20160715/libxorp/tests/test_ipv6.cc:260: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(&ui8[0], &in6_addr, sizeof(in6_addr));
data/xorp-1.8.6~wip.20160715/libxorp/tests/test_ipv6.cc:261: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(&ui32[0], &in6_addr, sizeof(in6_addr));
data/xorp-1.8.6~wip.20160715/libxorp/tests/test_ipv6.cc:384: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(&ui8[0], &in6_addr, sizeof(in6_addr));
data/xorp-1.8.6~wip.20160715/libxorp/tests/test_ipv6.cc:385: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(&ui32[0], &in6_addr, sizeof(in6_addr));
data/xorp-1.8.6~wip.20160715/libxorp/tests/test_ipv6.cc:742: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(&ui32[0], &in6_addr, sizeof(in6_addr));
data/xorp-1.8.6~wip.20160715/libxorp/tests/test_ipv6.cc:752: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(&ui8[0], &in6_addr, sizeof(in6_addr));
data/xorp-1.8.6~wip.20160715/libxorp/tests/test_ipv6net.cc:116: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(&ui8[0], &in6_addr, sizeof(in6_addr));
data/xorp-1.8.6~wip.20160715/libxorp/tests/test_ipv6net.cc:117: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(&ui32[0], &in6_addr, sizeof(in6_addr));
data/xorp-1.8.6~wip.20160715/libxorp/tests/test_ipvx.cc:116: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(&ui8[0], &in6_addr, sizeof(in6_addr));
data/xorp-1.8.6~wip.20160715/libxorp/tests/test_ipvx.cc:117: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(&ui32[0], &in6_addr, sizeof(in6_addr));
data/xorp-1.8.6~wip.20160715/libxorp/tests/test_ipvx.cc:278: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(&ui8[0], &in6_addr, sizeof(in6_addr));
data/xorp-1.8.6~wip.20160715/libxorp/tests/test_ipvx.cc:279: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(&ui32[0], &in6_addr, sizeof(in6_addr));
data/xorp-1.8.6~wip.20160715/libxorp/tests/test_ipvx.cc:476: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(&ui8[0], &in6_addr, sizeof(in6_addr));
data/xorp-1.8.6~wip.20160715/libxorp/tests/test_ipvx.cc:477: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(&ui32[0], &in6_addr, sizeof(in6_addr));
data/xorp-1.8.6~wip.20160715/libxorp/tests/test_ipvx.cc:705: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(&ui8[0], &in6_addr, sizeof(in6_addr));
data/xorp-1.8.6~wip.20160715/libxorp/tests/test_ipvx.cc:706: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(&ui32[0], &in6_addr, sizeof(in6_addr));
data/xorp-1.8.6~wip.20160715/libxorp/tests/test_ipvxnet.cc:129: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(&ui8[0], &in6_addr, sizeof(in6_addr));
data/xorp-1.8.6~wip.20160715/libxorp/tests/test_ipvxnet.cc:130: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(&ui32[0], &in6_addr, sizeof(in6_addr));
data/xorp-1.8.6~wip.20160715/libxorp/tests/test_mac.cc:116: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(&ether_addr, ui8_addr, sizeof(ui8_addr));
data/xorp-1.8.6~wip.20160715/libxorp/tests/test_mac.cc:118: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(sa.sa_data, ui8_addr, sizeof(ui8_addr));
data/xorp-1.8.6~wip.20160715/libxorp/tests/test_mac.cc:199: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(&ether_addr, ui8_addr, sizeof(ui8_addr));
data/xorp-1.8.6~wip.20160715/libxorp/tests/test_mac.cc:201: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(sa.sa_data, ui8_addr, sizeof(ui8_addr));
data/xorp-1.8.6~wip.20160715/libxorp/utils.cc:136: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 dirname[MAXPATHLEN];
data/xorp-1.8.6~wip.20160715/libxorp/utils.cc:138: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[MAXPATHLEN];
data/xorp-1.8.6~wip.20160715/libxorp/utils.cc:220:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(filename, "w+");
data/xorp-1.8.6~wip.20160715/libxorp/utils.cc:232:11:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
	int fd = mkstemp(filename);
data/xorp-1.8.6~wip.20160715/libxorp/win_io.c:102:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buf[WIN_STRERROR_BUF_SIZE];
data/xorp-1.8.6~wip.20160715/libxorp/xlog.c:82:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char	*xlog_level_names[XLOG_LEVEL_MAX] = {
data/xorp-1.8.6~wip.20160715/libxorp/xlog.c:404:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char where_buf[8000]; // we are single threaded, global buffer is good enough.
data/xorp-1.8.6~wip.20160715/libxorp/xlog.c:791:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen("CONOUT$", "w");
data/xorp-1.8.6~wip.20160715/libxorp/xlog.c:849:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buf[64];
data/xorp-1.8.6~wip.20160715/libxorp/xlog.c:860:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char ret_buf[64];
data/xorp-1.8.6~wip.20160715/mld6igmp/xorp_igmp.cc:174:39:  [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).
		finder_port = static_cast<uint16_t>(atoi(p));
data/xorp-1.8.6~wip.20160715/mld6igmp/xorp_mld.cc:185:39:  [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).
		finder_port = static_cast<uint16_t>(atoi(p));
data/xorp-1.8.6~wip.20160715/mrt/netstream_access.h:78:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((to), (cp), (datalen));					\
data/xorp-1.8.6~wip.20160715/mrt/netstream_access.h:86:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((cp), (from), (datalen));				\
data/xorp-1.8.6~wip.20160715/ospf/area_router.cc:848: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(&lsa[0], ptr, len);
data/xorp-1.8.6~wip.20160715/ospf/auth.cc:235: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(&ptr[Packet::AUTH_PAYLOAD_OFFSET], &_key_data[0],
data/xorp-1.8.6~wip.20160715/ospf/auth.cc:250: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(&_key_data[0], _key.c_str(), len);
data/xorp-1.8.6~wip.20160715/ospf/auth.cc:518:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	    FILE *fp = fopen(badmd5, "w");
data/xorp-1.8.6~wip.20160715/ospf/lsa.cc:510: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(&addr[0], ptr, bytes);
data/xorp-1.8.6~wip.20160715/ospf/lsa.cc:534: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(ptr, &buf[0], bytes);
data/xorp-1.8.6~wip.20160715/ospf/packet.cc:110: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(&temp[0], &data[0], len);
data/xorp-1.8.6~wip.20160715/ospf/packet.cc:277:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&_auth[0], &ptr[Packet::AUTH_PAYLOAD_OFFSET], sizeof(_auth));
data/xorp-1.8.6~wip.20160715/ospf/packet.cc:297:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&ptr[Packet::AUTH_PAYLOAD_OFFSET], &_auth[0], sizeof(_auth));
data/xorp-1.8.6~wip.20160715/ospf/packet.cc:362:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&ptr[Packet::AUTH_PAYLOAD_OFFSET], &_auth[0], sizeof(_auth));
data/xorp-1.8.6~wip.20160715/ospf/packet.cc:997:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&ptr[offset], lsa_ptr, lsa_len);
data/xorp-1.8.6~wip.20160715/ospf/tests/test_packet.cc:150: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(ptr, &pkt[0], pkt.size());
data/xorp-1.8.6~wip.20160715/ospf/tests/test_peering.cc:132: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(&_pkt[0], data, len);
data/xorp-1.8.6~wip.20160715/ospf/tests/test_peering.cc:527:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	hello_interval = atoi(hello_interval_arg.c_str());
data/xorp-1.8.6~wip.20160715/ospf/tests/test_routing.cc:637:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!tlv.open(fname, true /* read */)) {
data/xorp-1.8.6~wip.20160715/ospf/tests/test_routing_database.cc:89:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!tlv.open(fname, true /* read */)) {
data/xorp-1.8.6~wip.20160715/ospf/tests/test_routing_database.cc:178:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!tlv.open(fname, true /* read */)) {
data/xorp-1.8.6~wip.20160715/ospf/tools/print_lsas.cc:433:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!_tlv.open(_fname, false /* write */)) {
data/xorp-1.8.6~wip.20160715/ospf/tools/print_lsas.cc:449:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&data[0], host.c_str(), len);
data/xorp-1.8.6~wip.20160715/ospf/tools/print_lsas.cc:474:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&data[0], ptr, len);
data/xorp-1.8.6~wip.20160715/ospf/xrl_io.cc:106: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(&payload[0], data, len);
data/xorp-1.8.6~wip.20160715/ospf/xrl_io.cc:1145: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(&payload[0], data, len);
data/xorp-1.8.6~wip.20160715/pim/xorp_pimsm4.cc:201:39:  [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).
		finder_port = static_cast<uint16_t>(atoi(p));
data/xorp-1.8.6~wip.20160715/pim/xorp_pimsm6.cc:200:39:  [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).
		finder_port = static_cast<uint16_t>(atoi(p));
data/xorp-1.8.6~wip.20160715/policy/common/policy_utils.cc:97:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buff[4096];
data/xorp-1.8.6~wip.20160715/policy/common/policy_utils.cc:103: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).
    FILE* f = fopen(fname.c_str(),"r");
data/xorp-1.8.6~wip.20160715/policy/common/policy_utils.cc:156: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 tmp[128];
data/xorp-1.8.6~wip.20160715/policy/tests/compilepolicy.cc:214:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					 atoi(tokens[4].c_str()));
data/xorp-1.8.6~wip.20160715/policy/tests/compilepolicy.cc:305: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).
		filterid = atoi(optarg);
data/xorp-1.8.6~wip.20160715/policy/tests/file_varrw.cc:37: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).
    FILE* f = fopen(fname.c_str(), "r");
data/xorp-1.8.6~wip.20160715/policy/tests/file_varrw.cc:47: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[1024];
data/xorp-1.8.6~wip.20160715/policy/tests/policybench.cc:291:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		_conf.c_type = atoi(optarg);
data/xorp-1.8.6~wip.20160715/policy/tests/policybench.cc:303:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		_conf.c_iterations = atoi(optarg);
data/xorp-1.8.6~wip.20160715/rib/add_route.cc:128:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    char buf[1024];
data/xorp-1.8.6~wip.20160715/rib/rib.cc:268: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).
	static_distance = atoi(v);
data/xorp-1.8.6~wip.20160715/rib/routemap.cc:85:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[20];
data/xorp-1.8.6~wip.20160715/rib/tools/show_distances.cc:382: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).
        uint32_t t_port = atoi(s_port.c_str());
data/xorp-1.8.6~wip.20160715/rib/tools/show_routes.cc:753: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).
        uint32_t t_port = atoi(s_port.c_str());
data/xorp-1.8.6~wip.20160715/rip/auth.cc:598:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	    FILE *fp = fopen(badmd5, "w");
data/xorp-1.8.6~wip.20160715/rip/tools/common.cc:73: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).
        uint32_t t_port = atoi(s_port.c_str());
data/xorp-1.8.6~wip.20160715/rip/tools/rip_announcer.cc:220:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		cost = atoi(optarg);
data/xorp-1.8.6~wip.20160715/rip/tools/rip_announcer.cc:238:9:  [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).
		tag = atoi(optarg);
data/xorp-1.8.6~wip.20160715/rip/tools/ripng_announcer.cc:238:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		cost = atoi(optarg);
data/xorp-1.8.6~wip.20160715/rip/tools/ripng_announcer.cc:244: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).
		if_num = atoi(optarg);
data/xorp-1.8.6~wip.20160715/rip/tools/ripng_announcer.cc:253:9:  [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).
		tag = atoi(optarg);
data/xorp-1.8.6~wip.20160715/rip/tools/show_peer_stats.cc:88: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 whenbuf[12];
data/xorp-1.8.6~wip.20160715/rip/tools/show_peer_stats.cc:140: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 whenbuf[12];
data/xorp-1.8.6~wip.20160715/rip/xorp_rip_main.cc:210: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).
	uint32_t t_port = atoi(s_port.c_str());
data/xorp-1.8.6~wip.20160715/rtrmgr/cli.cc:124: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 buf[MAXHOSTNAMELEN];
data/xorp-1.8.6~wip.20160715/rtrmgr/glob_win32.c:112: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        szRelative[1 + _MAX_PATH];
data/xorp-1.8.6~wip.20160715/rtrmgr/main_rtrmgr.cc:460:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((logfile = fopen(logfilename.c_str(), "a")) != NULL) {
data/xorp-1.8.6~wip.20160715/rtrmgr/main_rtrmgr.cc:637:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    quit_time = atoi(optarg);
data/xorp-1.8.6~wip.20160715/rtrmgr/main_rtrmgr.cc:660:40:  [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).
	    bind_port = static_cast<uint16_t>(atoi(optarg));
data/xorp-1.8.6~wip.20160715/rtrmgr/main_rtrmgr.cc:701: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).
	pidfile = fopen(pidfilename.c_str(), "w");
data/xorp-1.8.6~wip.20160715/rtrmgr/main_rtrmgr.cc:752:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    tstf.open(tmp_fname.c_str());
data/xorp-1.8.6~wip.20160715/rtrmgr/main_rtrmgr.cc:755: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 tmpb[500];
data/xorp-1.8.6~wip.20160715/rtrmgr/master_conf_tree.cc:204:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE* file = fopen(config_file.c_str(), "r");
data/xorp-1.8.6~wip.20160715/rtrmgr/master_conf_tree.cc:212:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[MCT_READBUF + 1];
data/xorp-1.8.6~wip.20160715/rtrmgr/master_conf_tree.cc:834:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	file = fopen(full_filename.c_str(), "r");
data/xorp-1.8.6~wip.20160715/rtrmgr/master_conf_tree.cc:837:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    char line[80];
data/xorp-1.8.6~wip.20160715/rtrmgr/master_conf_tree.cc:880:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen(full_filename.c_str(), "w");
data/xorp-1.8.6~wip.20160715/rtrmgr/master_conf_tree.cc:902: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 hbuf[MAXHOSTNAMELEN];
data/xorp-1.8.6~wip.20160715/rtrmgr/op_commands.cc:282:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    int pos = atoi(pos_str.c_str());
data/xorp-1.8.6~wip.20160715/rtrmgr/randomness.cc:50:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen("/dev/urandom", "r");
data/xorp-1.8.6~wip.20160715/rtrmgr/randomness.cc:59:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen("/dev/random", "r");
data/xorp-1.8.6~wip.20160715/rtrmgr/randomness.cc:68:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	file = fopen("/dev/random", "r");
data/xorp-1.8.6~wip.20160715/rtrmgr/randomness.cc:215:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	file = fopen("/tmp/rtrmgr-seed", "w");
data/xorp-1.8.6~wip.20160715/rtrmgr/randomness.cc:217:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	    file = fopen("/usr/tmp/rtrmgr-seed", "w");
data/xorp-1.8.6~wip.20160715/rtrmgr/randomness.cc:219:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	    file = fopen("/var/tmp/rtrmgr-seed", "w");
data/xorp-1.8.6~wip.20160715/rtrmgr/randomness.cc:246:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE* file = fopen(filename.c_str(), "r");
data/xorp-1.8.6~wip.20160715/rtrmgr/randomness.cc:264: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 ixb[4];
data/xorp-1.8.6~wip.20160715/rtrmgr/randomness.cc:293: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(tbuf + (i * 16), chain, 16);
data/xorp-1.8.6~wip.20160715/rtrmgr/randomness.cc:317:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(&ix, ixb, 4);
data/xorp-1.8.6~wip.20160715/rtrmgr/randomness.cc:352: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).
	FILE *file = fopen("/dev/urandom", "r");    
data/xorp-1.8.6~wip.20160715/rtrmgr/randomness.cc:366: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).
	FILE *file = fopen("/dev/random", "r");   
data/xorp-1.8.6~wip.20160715/rtrmgr/randomness.cc:402:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf + bytes_written, outbuf,
data/xorp-1.8.6~wip.20160715/rtrmgr/userdb.cc:52: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 msg[128];
data/xorp-1.8.6~wip.20160715/rtrmgr/userdb.cc:194: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 msg[128];
data/xorp-1.8.6~wip.20160715/rtrmgr/util.cc:107:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char rp[MAXPATHLEN];
data/xorp-1.8.6~wip.20160715/rtrmgr/xorpsh_main.cc:279:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE* file = fopen(_authfile.c_str(), "r");
data/xorp-1.8.6~wip.20160715/rtrmgr/xorpsh_main.cc:283:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[256];
data/xorp-1.8.6~wip.20160715/rtrmgr/xorpsh_main.cc:882: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 hostname[MAXHOSTNAMELEN];
data/xorp-1.8.6~wip.20160715/rtrmgr/xrl_rtrmgr_interface.cc:149: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 tmppath[128];
data/xorp-1.8.6~wip.20160715/rtrmgr/xrl_rtrmgr_interface.cc:159:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE* file = fopen(filename.c_str(), "w+");
data/xorp-1.8.6~wip.20160715/static_routes/xorp_static_routes.cc:160:39:  [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).
		finder_port = static_cast<uint16_t>(atoi(p));
data/xorp-1.8.6~wip.20160715/utils/runit.cc:225:3:  [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).
		open(output, O_RDONLY);
data/xorp-1.8.6~wip.20160715/utils/runit.cc:226:3:  [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).
		open(output, O_WRONLY);
data/xorp-1.8.6~wip.20160715/utils/runit.cc:232:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    char *argv[tokens.size() + 1];
data/xorp-1.8.6~wip.20160715/vrrp/test/vrrp_test.cc:205: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 tmp[64];
data/xorp-1.8.6~wip.20160715/vrrp/vrrp.cc:69: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 tmp[sizeof "ff:ff:ff:ff:ff:ff"];
data/xorp-1.8.6~wip.20160715/bgp/bgp.cc:782: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).
		  static_cast<char>(strlen(date) - 1), date,
data/xorp-1.8.6~wip.20160715/bgp/harness/peer.cc:1274:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		       strlen(tmpdirprefix))) {
data/xorp-1.8.6~wip.20160715/bgp/harness/peer.cc:1281:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	filename.replace(0, strlen(tmpdirprefix), string(tmpexp));
data/xorp-1.8.6~wip.20160715/cli/cli_node_net.cc:562:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	strncpy(hostname, "xorp", sizeof(hostname) - 1);
data/xorp-1.8.6~wip.20160715/cli/cli_node_net.cc:749:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    n = read(fd, buf, sizeof(buf) - 1);
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplfile.c:235:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
      strncpy(cf->errmsg, "_cf_complete_file: Invalid arguments", sizeof(cf->errmsg));
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplfile.c:261: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).
    slen = strlen(cf->usrnam);
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplfile.c:329:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
      strncpy(cf->errmsg, "Insufficient memory to complete filename", sizeof(cf->errmsg));
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplfile.c:352: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).
      nlen = strlen(cf->envnam);
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplfile.c:361:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	snprintf(cf->errmsg, sizeof(cf->errmsg), fmt, ERRLEN - strlen(fmt),
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplfile.c:365: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).
      vlen = strlen(value);
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplfile.c:390:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if(_pn_append_to_path(cf->path, value, strlen(value), escaped)==NULL) {
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplfile.c:391:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	  strncpy(cf->errmsg, "Insufficient memory to complete filename", sizeof(cf->errmsg));
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplfile.c:426:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	  strncpy(cf->errmsg, cpl_last_error(cpl), ERRLEN);
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplfile.c:476:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(cf->errmsg, _hd_last_home_dir_error(cf->home), ERRLEN);
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplfile.c:484:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(cf->errmsg, "Insufficient memory for home directory expansion", sizeof(cf->errmsg));
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplfile.c:529:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(cf->errmsg, _hd_last_home_dir_error(cf->home), ERRLEN);
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplfile.c:551:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int prefix_len = strlen(args->prefix);
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplfile.c:556: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).
  int name_len = strlen(usrnam);
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplfile.c:567:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(errmsg, cf->errmsg, maxerr);
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplfile.c:576:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(errmsg, cpl_last_error(cpl), maxerr);
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplfile.c:625: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).
  int pathlen = strlen(pathname);
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplfile.c:665:60:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    snprintf(cf->errmsg, sizeof(cf->errmsg), fmt, ERRLEN - strlen(fmt),
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplfile.c:681: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).
  prefix_len = strlen(prefix);
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplfile.c:687:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int name_len = strlen(file_name);
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplfile.c:716:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	    strncpy(cf->errmsg, "Insufficient memory to complete filename.", sizeof(cf->errmsg));
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplfile.c:794:60:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    snprintf(cf->errmsg, sizeof(cf->errmsg), fmt, ERRLEN - strlen(fmt), type);
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplfile.c:825:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int suffix_len = strlen(suffix);
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplfile.c:849:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(cf->errmsg, "Insufficient memory to complete filename", sizeof(cf->errmsg));
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplfile.c:857:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(cf->buff->name, suffix, cf->buff->dim);
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplmatch.c:258:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
      strncpy(cpl->errmsg, "Insufficient memory to extend array of matches.", sizeof(cpl->errmsg));
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplmatch.c:268:60:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  string = _sg_alloc_string(cpl->sg, word_end-word_start + strlen(suffix));
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplmatch.c:270:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(cpl->errmsg, "Insufficient memory to extend array of matches.", sizeof(cpl->errmsg));
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplmatch.c:276:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(string, line + word_start, word_end - word_start);
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplmatch.c:277:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(string + word_end - word_start, suffix, strlen(suffix)+1);
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplmatch.c:277:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  strncpy(string + word_end - word_start, suffix, strlen(suffix)+1);
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplmatch.c:405:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(cpl->errmsg,
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplmatch.c:412:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(result->suffix, result->matches[0].suffix, length);
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplmatch.c:475: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).
    line_len = strlen(line);
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplmatch.c:481:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
      strncpy(cpl->errmsg, "cpl_complete_word: Invalid arguments.", sizeof(cpl->errmsg));
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplmatch.c:494:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
      strncpy(cpl->errmsg, "Error completing word.", sizeof(cpl->errmsg));
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplmatch.c:561: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).
    int len = strlen(match->completion) +
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplmatch.c:562: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).
              strlen(match->type_suffix);
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplmatch.c:601:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    int len = strlen(match->type_suffix);
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplmatch.c:607:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    len = strlen(match->completion);
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplmatch.c:615:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		   (int) (((!onewline) && ncol > 1) ? maxlen - strlen(match->completion):0),
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplmatch.c:655:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(cpl->errmsg, errmsg, ERRLEN);
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplmatch.c:696:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(cpl->errmsg, "cpl_file_completions: Invalid arguments.", sizeof(cpl->errmsg));
data/xorp-1.8.6~wip.20160715/cli/libtecla/cplmatch.c:731:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
      strncpy(cpl->errmsg, "Unable to find the start of the filename.", sizeof(cpl->errmsg));
data/xorp-1.8.6~wip.20160715/cli/libtecla/direader.c:162:62:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      snprintf(dr->errmsg, sizeof(dr->errmsg), fmt, ERRLEN - strlen(fmt),
data/xorp-1.8.6~wip.20160715/cli/libtecla/direader.c:175:62:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      snprintf(dr->errmsg, sizeof(dr->errmsg), fmt, ERRLEN - strlen(fmt),
data/xorp-1.8.6~wip.20160715/cli/libtecla/direader.c:194:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	strncpy(dr->errmsg, "Unable to deduce readdir() buffer size.", sizeof(dr->errmsg));
data/xorp-1.8.6~wip.20160715/cli/libtecla/direader.c:213:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	  strncpy(dr->errmsg, "Insufficient memory for readdir() buffer.", sizeof(dr->errmsg));
data/xorp-1.8.6~wip.20160715/cli/libtecla/enhance.c:222: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(name)+1 > PTY_MAX_NAME) {
data/xorp-1.8.6~wip.20160715/cli/libtecla/enhance.c:226:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(slave_name, name, PTY_MAX_NAME);
data/xorp-1.8.6~wip.20160715/cli/libtecla/enhance.c:260:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if(strlen(ext) > PTY_MAX_SUFFIX)
data/xorp-1.8.6~wip.20160715/cli/libtecla/enhance.c:410:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if(pty_write_to_fd(cntrl, line, strlen(line)))
data/xorp-1.8.6~wip.20160715/cli/libtecla/enhance.c:549: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).
    int len = strlen(rbuff);
data/xorp-1.8.6~wip.20160715/cli/libtecla/enhance.c:553:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int nnew = read(fd, rbuff + len, PTY_MAX_READ - len);
data/xorp-1.8.6~wip.20160715/cli/libtecla/expand.c:316:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
      strncpy(ef->errmsg, "ef_expand_file: NULL path argument", sizeof(ef->errmsg));
data/xorp-1.8.6~wip.20160715/cli/libtecla/expand.c:325:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(pathlen < 0 || pathlen > strlen(path))
data/xorp-1.8.6~wip.20160715/cli/libtecla/expand.c:326: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).
    pathlen = strlen(path);
data/xorp-1.8.6~wip.20160715/cli/libtecla/expand.c:391:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	  strncpy(ef->errmsg, "Insufficient memory to record path", sizeof(ef->errmsg));
data/xorp-1.8.6~wip.20160715/cli/libtecla/expand.c:420:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
      strncpy(ef->errmsg, "No files match", sizeof(ef->errmsg));
data/xorp-1.8.6~wip.20160715/cli/libtecla/expand.c:466: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).
  pathlen = strlen(ef->path->name);
data/xorp-1.8.6~wip.20160715/cli/libtecla/expand.c:490:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	strncpy(ef->errmsg, "Insufficient memory to record path", sizeof(ef->errmsg));
data/xorp-1.8.6~wip.20160715/cli/libtecla/expand.c:604:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(ef->errmsg, "Insufficient memory to store pathname", sizeof(ef->errmsg));
data/xorp-1.8.6~wip.20160715/cli/libtecla/expand.c:688:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(ef->errmsg, errmsg, ERRLEN);
data/xorp-1.8.6~wip.20160715/cli/libtecla/expand.c:1027:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	strncpy(ef->errmsg, "Insufficient memory to expand path", sizeof(ef->errmsg));
data/xorp-1.8.6~wip.20160715/cli/libtecla/expand.c:1048:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	strncpy(ef->errmsg, "Environment variable name too long", sizeof(ef->errmsg));
data/xorp-1.8.6~wip.20160715/cli/libtecla/expand.c:1061:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	snprintf(ef->errmsg, sizeof(ef->errmsg), fmt, ERRLEN - strlen(fmt),
data/xorp-1.8.6~wip.20160715/cli/libtecla/expand.c:1069:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	strncpy(ef->errmsg, "Insufficient memory to expand path", sizeof(ef->errmsg));
data/xorp-1.8.6~wip.20160715/cli/libtecla/expand.c:1083:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(ef->errmsg, "Insufficient memory to expand path", sizeof(ef->errmsg));
data/xorp-1.8.6~wip.20160715/cli/libtecla/expand.c:1100: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).
    plen = strlen(ef->path->name);
data/xorp-1.8.6~wip.20160715/cli/libtecla/expand.c:1117:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
      strncpy(ef->errmsg, "Username too long", sizeof(ef->errmsg));
data/xorp-1.8.6~wip.20160715/cli/libtecla/expand.c:1129:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(ef->errmsg, _hd_last_home_dir_error(ef->home), ERRLEN);
data/xorp-1.8.6~wip.20160715/cli/libtecla/expand.c:1133: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).
    homelen = strlen(homedir);
data/xorp-1.8.6~wip.20160715/cli/libtecla/expand.c:1151:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
      strncpy(ef->errmsg, "Insufficient memory to expand filename", sizeof(ef->errmsg));
data/xorp-1.8.6~wip.20160715/cli/libtecla/expand.c:1222: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).
    int len = strlen(result->files[i]);
data/xorp-1.8.6~wip.20160715/cli/libtecla/expand.c:1256: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).
		   (int) (ncol > 1 ? maxlen - strlen(filename):0), "",
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:2071:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(gl->line, start_line, gl->linelen);
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:2073: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).
    gl->ntotal = strlen(gl->line);
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:2110: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).
	gl->ntotal = strlen(gl->line);
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:2111:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	gl->buff_curpos = strlen(gl->line);
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:2308: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).
  buff_slen = strlen(s);
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:2426:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      while(read(gl->input_fd, (void *)c, 1) != 1) {
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:2923: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).
    return strlen(string);
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:2952: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).
    nc = strlen(string);
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:2978:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int slen = strlen(string);
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:3180: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).
    nchar = strlen(string);
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:3339:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(gl->cutbuf, gl->line, gl->linelen+2);
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:3372:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(gl->cutbuf, gl->line + gl->buff_curpos, gl->linelen+2);
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:4319: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).
  gl->ntotal = strlen(gl->line);
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:4323: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).
  gl->buff_curpos = strlen(gl->line);
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:4367: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).
  gl->ntotal = strlen(gl->line);
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:4371: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).
  gl->buff_curpos = strlen(gl->line);
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:4422: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).
  gl->ntotal = strlen(gl->line);
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:4426: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).
  gl->buff_curpos = strlen(gl->line);
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:4483: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).
  gl->ntotal = strlen(gl->line);
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:4487: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).
  gl->buff_curpos = strlen(gl->line);
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:4562: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).
    suffix_len = strlen(matches->suffix);
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:4563: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).
    cont_len = strlen(matches->cont_suffix);
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:4980: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).
      gl->term = (char *) malloc(strlen(term)+1);
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:4982:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(gl->term, term, strlen(term)+1);
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:4982:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	strncpy(gl->term, term, strlen(term)+1);
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:5261:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(_kt_lookup_keybinding(bindings, name, strlen(name), &first, &last)
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:5554:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return fgetc((FILE *) stream);
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:5693: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).
  gl->ntotal = strlen(gl->line);
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:5697: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).
  gl->buff_curpos = strlen(gl->line);
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:5728: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).
  gl->ntotal = strlen(gl->line);
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:5732: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).
  gl->buff_curpos = strlen(gl->line);
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:6726:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(gl->vi.undo.line, gl->line, gl->linelen + 2);
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:6765:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(undo_ptr, line_ptr, gl->linelen + 2);
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:6768:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(line_ptr, undo_ptr, gl->linelen + 2);
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:7374: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).
    *sptr = (char *) malloc(strlen(string) + 1);
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:7380:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(*sptr, string, strlen(string) + 1);
data/xorp-1.8.6~wip.20160715/cli/libtecla/getline.c:7380:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    strncpy(*sptr, string, strlen(string) + 1);
data/xorp-1.8.6~wip.20160715/cli/libtecla/hash.c:507: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).
					  strlen(name) + 1);
data/xorp-1.8.6~wip.20160715/cli/libtecla/hash.c:515:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(node->symbol.name, name, strlen(name) + 1);
data/xorp-1.8.6~wip.20160715/cli/libtecla/hash.c:515: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).
    strncpy(node->symbol.name, name, strlen(name) + 1);
data/xorp-1.8.6~wip.20160715/cli/libtecla/history.c:252: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).
    nchar = strlen(line) + 1;
data/xorp-1.8.6~wip.20160715/cli/libtecla/history.c:275:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     list->tail && strlen(glh->buffer + list->tail->start) == nchar-1 &&
data/xorp-1.8.6~wip.20160715/cli/libtecla/history.c:291:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(glh->buffer, line, nchar);
data/xorp-1.8.6~wip.20160715/cli/libtecla/history.c:429: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).
  if(dim < strlen(line) + 1) {
data/xorp-1.8.6~wip.20160715/cli/libtecla/history.c:482:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(line, glh->buffer + node->start, dim);
data/xorp-1.8.6~wip.20160715/cli/libtecla/history.c:525: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).
  if(dim < strlen(line) + 1) {
data/xorp-1.8.6~wip.20160715/cli/libtecla/history.c:565:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(line, glh->buffer + node->start, dim);
data/xorp-1.8.6~wip.20160715/cli/libtecla/history.c:712: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).
  if(dim < strlen(line) + 1) {
data/xorp-1.8.6~wip.20160715/cli/libtecla/history.c:750:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(line, glh->buffer + node->start, dim);
data/xorp-1.8.6~wip.20160715/cli/libtecla/history.c:785: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).
  if(dim < strlen(line) + 1) {
data/xorp-1.8.6~wip.20160715/cli/libtecla/history.c:832:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(line, glh->buffer + tail->start, dim);
data/xorp-1.8.6~wip.20160715/cli/libtecla/history.c:930:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(line, glh->buffer + node->start, dim);
data/xorp-1.8.6~wip.20160715/cli/libtecla/history.c:1056: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).
  comment_len = strlen(comment);
data/xorp-1.8.6~wip.20160715/cli/libtecla/history.c:1278: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(string) < TSLEN) {
data/xorp-1.8.6~wip.20160715/cli/libtecla/history.c:1285:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(timestr, string, TSLEN);
data/xorp-1.8.6~wip.20160715/cli/libtecla/history.c:1372: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).
  idlen = strlen(buffer);
data/xorp-1.8.6~wip.20160715/cli/libtecla/history.c:1385: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).
  grplen = strlen(buffer);
data/xorp-1.8.6~wip.20160715/cli/libtecla/homedir.c:233:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
      strncpy(home->errmsg, "Cannot determine current directory.", ERRLEN);
data/xorp-1.8.6~wip.20160715/cli/libtecla/homedir.c:257:66:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      snprintf(home->errmsg, sizeof(home->errmsg), fmt, ERRLEN - strlen(fmt),
data/xorp-1.8.6~wip.20160715/cli/libtecla/homedir.c:274:66:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      snprintf(home->errmsg, sizeof(home->errmsg), fmt, ERRLEN - strlen(fmt),
data/xorp-1.8.6~wip.20160715/cli/libtecla/homedir.c:330:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
      strncpy(home->errmsg,
data/xorp-1.8.6~wip.20160715/cli/libtecla/homedir.c:370:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
      strncpy(home->errmsg, "Cannot determine current directory.", ERRLEN);
data/xorp-1.8.6~wip.20160715/cli/libtecla/nettest_libtecla.c:234:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    write(fd, buf, strlen(buf));
data/xorp-1.8.6~wip.20160715/cli/libtecla/nettest_libtecla.c:236:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    write(fd, buf, strlen(buf));
data/xorp-1.8.6~wip.20160715/cli/libtecla/pathutil.c:167: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).
  pathlen = strlen(path->name);
data/xorp-1.8.6~wip.20160715/cli/libtecla/pathutil.c:171: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(slen < 0 || slen > strlen(string))
data/xorp-1.8.6~wip.20160715/cli/libtecla/pathutil.c:172: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).
    slen = strlen(string);
data/xorp-1.8.6~wip.20160715/cli/libtecla/pathutil.c:238: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).
  pathlen = strlen(path->name);
data/xorp-1.8.6~wip.20160715/cli/libtecla/pathutil.c:242: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(slen < 0 || slen > strlen(string))
data/xorp-1.8.6~wip.20160715/cli/libtecla/pathutil.c:243: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).
    slen = strlen(string);
data/xorp-1.8.6~wip.20160715/cli/libtecla/pcache.c:577: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(pca_expand_tilde(pc, path, strlen(path), 0, &pptr))
data/xorp-1.8.6~wip.20160715/cli/libtecla/pcache.c:594:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(pc->errmsg, "Insufficient memory to record directory name", sizeof(pc->errmsg));
data/xorp-1.8.6~wip.20160715/cli/libtecla/pcache.c:603: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).
    int dirlen = strlen(pc->path->name);
data/xorp-1.8.6~wip.20160715/cli/libtecla/pcache.c:608:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	strncpy(pc->errmsg, "Insufficient memory to record directory name", sizeof(pc->errmsg));
data/xorp-1.8.6~wip.20160715/cli/libtecla/pcache.c:675:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(pc->errmsg, "Username too long", sizeof(pc->errmsg));
data/xorp-1.8.6~wip.20160715/cli/libtecla/pcache.c:828:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(pc->errmsg, "Insufficient memory to store directory name.", sizeof(pc->errmsg));
data/xorp-1.8.6~wip.20160715/cli/libtecla/pcache.c:891:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
      strncpy(pc->errmsg, "Insufficient memory to record filename", sizeof(pc->errmsg));
data/xorp-1.8.6~wip.20160715/cli/libtecla/pcache.c:899:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
      strncpy(pc->errmsg, "Insufficient memory to cache file name.", sizeof(pc->errmsg));
data/xorp-1.8.6~wip.20160715/cli/libtecla/pcache.c:913:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	strncpy(pc->errmsg, "Insufficient memory to extend filename cache.", sizeof(pc->errmsg));
data/xorp-1.8.6~wip.20160715/cli/libtecla/pcache.c:1005: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).
    name_len = strlen(name);
data/xorp-1.8.6~wip.20160715/cli/libtecla/pcache.c:1126:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(pc->errmsg, "Insufficient memory.", sizeof(pc->errmsg));
data/xorp-1.8.6~wip.20160715/cli/libtecla/pcache.c:1333:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	  strncpy(pc->errmsg, "Insufficient memory to complete file name", sizeof(pc->errmsg));
data/xorp-1.8.6~wip.20160715/cli/libtecla/pcache.c:1427:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int suffix_len = strlen(suffix);
data/xorp-1.8.6~wip.20160715/cli/libtecla/pcache.c:1451:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(pc->errmsg, "Insufficient memory to complete file name", sizeof(pc->errmsg));
data/xorp-1.8.6~wip.20160715/cli/libtecla/pcache.c:1459:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(pc->path->name, suffix, pc->path->dim);
data/xorp-1.8.6~wip.20160715/cli/libtecla/pcache.c:1546:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
      strncpy(pc->errmsg, "Insufficient memory to complete filename", sizeof(pc->errmsg));
data/xorp-1.8.6~wip.20160715/cli/libtecla/pcache.c:1636:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(pc->errmsg, _hd_last_home_dir_error(pc->home), ERRLEN);
data/xorp-1.8.6~wip.20160715/cli/libtecla/pcache.c:1644:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
      strncpy(pc->errmsg, "Insufficient memory for home directory expansion", sizeof(pc->errmsg));
data/xorp-1.8.6~wip.20160715/cli/libtecla/stringrp.c:171:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  copy = _sg_alloc_string(sg, strlen(string));
data/xorp-1.8.6~wip.20160715/cli/libtecla/stringrp.c:198:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(copy, string, strlen(string));
data/xorp-1.8.6~wip.20160715/cli/libtecla/stringrp.c:198: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).
      strncpy(copy, string, strlen(string));
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/ldwrapper.cpp:1339:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    dest_network, nexthop_addr, if_name, strlen(if_name));
data/xorp-1.8.6~wip.20160715/contrib/ldwrapper/src/ldwrapper.cpp:1347:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    dest_network, nexthop_addr, if_name, strlen(if_name));
data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/print_rtmsg.c:171:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(line, cp, sizeof(line) - 1);
data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/print_rtmsg.c:201:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	    strncpy(line, "invalid", sizeof(line));
data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/print_rtmsg.c:284:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(line, cp, sizeof(line));
data/xorp-1.8.6~wip.20160715/contrib/xorprtm/xorprtm/print_rtmsg.c:325:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	    strncpy(line, "invalid", sizeof(line));
data/xorp-1.8.6~wip.20160715/fea/data_plane/control_socket/click_socket.cc:927:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	error_bytes = ::read(_kernel_fd, error_buf, sizeof(error_buf));
data/xorp-1.8.6~wip.20160715/fea/data_plane/control_socket/click_socket.cc:1171:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	got = read(fd, &buffer[0], buffer.size());
data/xorp-1.8.6~wip.20160715/fea/data_plane/control_socket/routing_socket.cc:163:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	got = read(_fd, &buffer[0], buffer.size());
data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_entry_set_routing_socket.cc:387:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(sdl->sdl_data, fte.vifname().c_str(), sizeof(sdl->sdl_data));
data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_forwarding_solaris.cc:121:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(buf, DEV_SOLARIS_DRIVER_PARAMETER_FORWARDING_V4, sizeof(buf) - 1);
data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_forwarding_solaris.cc:200:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(buf, DEV_SOLARIS_DRIVER_PARAMETER_FORWARDING_V6, sizeof(buf) - 1);
data/xorp-1.8.6~wip.20160715/fea/data_plane/fibconfig/fibconfig_forwarding_solaris.cc:282:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(buf, DEV_SOLARIS_DRIVER_PARAMETER_IGNORE_REDIRECT_V6,
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_get_netlink_socket.cc:166:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy(ifr.ifr_name, device_name, IFNAMSIZ); //max length of a device name.
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_get_proc_linux.cc:314:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ifreq.ifr_name, ifname, sizeof(ifreq.ifr_name) - 1);
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_get_proc_linux.cc:376:12:  [1] (buffer) fscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    while (fscanf(fh, "%4s%4s%4s%4s%4s%4s%4s%4s %02x %02x %02x %02x %20s\n",
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_get_proc_linux.cc:387:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(tmp_if_name, devname, sizeof(tmp_if_name) - 1);
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_get_proc_linux.cc:429:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(ifreq.ifr_name, if_name.c_str(),
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_get_proc_linux.cc:451:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ifreq.ifr_name, if_name.c_str(), sizeof(ifreq.ifr_name) - 1);
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_get_proc_linux.cc:467:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ifreq.ifr_name, if_name.c_str(), sizeof(ifreq.ifr_name) - 1);
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_media.cc:90:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ifmr.ifm_name, if_name.c_str(), sizeof(ifmr.ifm_name) - 1);
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_media.cc:162:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ifreq.ifr_name, if_name.c_str(), sizeof(ifreq.ifr_name) - 1);
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_media.cc:218:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ifreq.ifr_name, if_name.c_str(), sizeof(ifreq.ifr_name) - 1);
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_media.cc:292:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    cf.read(dummy, 1);
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_parse_getifaddrs.cc:93:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(tmp_if_name, ifa->ifa_name, sizeof(tmp_if_name) - 1);
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_parse_getifaddrs.cc:133:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(ifridx.ifr_name, if_name.c_str(),
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_parse_getifaddrs.cc:213:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(ifridx.ifr_name, if_name.c_str(),
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_parse_getifaddrs.cc:267:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(ifridx.ifr_name, if_name.c_str(),
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_parse_ioctl.cc:120:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(tmp_if_name, ifreq.ifr_name, sizeof(tmp_if_name) - 1);
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_parse_ioctl.cc:150:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(ifridx.ifr_name, if_name.c_str(),
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_parse_ioctl.cc:377:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(ifrcopy.ifr_name, if_name.c_str(),
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_parse_ioctl.cc:397:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(ifrcopy6.ifr_name, if_name.c_str(),
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_parse_routing_socket.cc:436:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(ifridx.ifr_name, if_name.c_str(),
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_parse_routing_socket.cc:501:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(ifridx.ifr_name, if_name.c_str(),
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_parse_routing_socket.cc:744:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(ifrcopy6.ifr_name, vifp->vifname().c_str(),
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_set_ioctl.cc:616:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(ifreq.ifr_name, ifname.c_str(), sizeof(ifreq.ifr_name) - 1);
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_set_ioctl.cc:639:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(ifreq.ifr_name, ifname.c_str(), sizeof(ifreq.ifr_name) - 1);
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_set_ioctl.cc:702:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(ifreq.ifr_name, ifname.c_str(), sizeof(ifreq.ifr_name) - 1);
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_set_ioctl.cc:738:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(ifra.ifra_name, vifname.c_str(), sizeof(ifra.ifra_name) - 1);
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_set_ioctl.cc:766:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(ifreq.ifr_name, vifname.c_str(), sizeof(ifreq.ifr_name) - 1);
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_set_ioctl.cc:848:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(ifreq.ifr_name, vifname.c_str(), sizeof(ifreq.ifr_name) - 1);
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_set_ioctl.cc:935:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(ifra.ifra_name, vifname.c_str(), sizeof(ifra.ifra_name) - 1);
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_set_ioctl.cc:1062:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(in6_ifreq.ifr_name, vifname.c_str(),
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_set_netlink_socket.cc:619:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(ifreq.ifr_name, ifname.c_str(), sizeof(ifreq.ifr_name) - 1);
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_set_netlink_socket.cc:662:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ifreq.ifr_name, ifname.c_str(), sizeof(ifreq.ifr_name) - 1);
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_set_netlink_socket.cc:677:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(ifreq.ifr_name, ifname.c_str(), sizeof(ifreq.ifr_name) - 1);
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_set_netlink_socket.cc:824:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(ifreq.ifr_name, ifname.c_str(), sizeof(ifreq.ifr_name) - 1);
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_set_netlink_socket.cc:941:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(ifreq.ifr_name, ifname.c_str(), sizeof(ifreq.ifr_name) - 1);
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_vlan_get_linux.cc:208:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ifreq.ifr_name, ifp->ifname().c_str(),
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_vlan_get_linux.cc:226:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(vlanreq.device1, ifp->ifname().c_str(),
data/xorp-1.8.6~wip.20160715/fea/data_plane/ifconfig/ifconfig_vlan_get_linux.cc:243:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(vlanreq.device1, ifp->ifname().c_str(),
data/xorp-1.8.6~wip.20160715/fea/data_plane/io/io_link_pcap.cc:288:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(&program_buf[0], pcap_filter_program.c_str(),
data/xorp-1.8.6~wip.20160715/libcomm/comm_sock.c:435:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(mcast_addr_str, inet_ntoa(*mcast_addr),
data/xorp-1.8.6~wip.20160715/libcomm/comm_sock.c:439:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(my_addr_str, inet_ntoa(*my_addr),
data/xorp-1.8.6~wip.20160715/libcomm/comm_sock.c:442:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	    strncpy(my_addr_str, "ANY", sizeof(my_addr_str) - 1);
data/xorp-1.8.6~wip.20160715/libcomm/comm_sock.c:515:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(mcast_addr_str, inet_ntoa(*mcast_addr),
data/xorp-1.8.6~wip.20160715/libcomm/comm_sock.c:519:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(my_addr_str, inet_ntoa(*my_addr),
data/xorp-1.8.6~wip.20160715/libcomm/comm_sock.c:522:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	    strncpy(my_addr_str, "ANY", sizeof(my_addr_str) - 1);
data/xorp-1.8.6~wip.20160715/libcomm/comm_sock.c:1323:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(tmp_ifname, my_ifname, IFNAMSIZ-1);
data/xorp-1.8.6~wip.20160715/libcomm/comm_user.c:826: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(path) >= sizeof(s_un->sun_path)) {
data/xorp-1.8.6~wip.20160715/libcomm/comm_user.c:828: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).
		   path, XORP_UINT_CAST(strlen(path)),
data/xorp-1.8.6~wip.20160715/libxipc/sockutil.cc:372:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(tmp_if_name, ifreq.ifr_name, sizeof(tmp_if_name) - 1);
data/xorp-1.8.6~wip.20160715/libxipc/sockutil.cc:423:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(ifrcopy.ifr_name, if_name.c_str(),
data/xorp-1.8.6~wip.20160715/libxipc/tests/test_finder_tcp.cc:102:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(_buf, s.c_str(), sizeof(_buf) - 1);
data/xorp-1.8.6~wip.20160715/libxipc/tests/test_finder_tcp.cc:104:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	write_data(reinterpret_cast<const uint8_t*>(_buf), strlen(_buf));
data/xorp-1.8.6~wip.20160715/libxipc/xrl_atom.cc:150:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ssize_t bad_pos = xrlatom_decode_value(c_str, strlen(c_str), *_binary);
data/xorp-1.8.6~wip.20160715/libxipc/xrl_atom.cc:160:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ssize_t bad_pos = xrlatom_decode_value(c_str, strlen(c_str), decoded);
data/xorp-1.8.6~wip.20160715/libxipc/xrl_atom.cc:587:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return xrlatom_encode_value(tmp, strlen(tmp));
data/xorp-1.8.6~wip.20160715/libxipc/xrl_atom.cc:592:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return xrlatom_encode_value(tmp, strlen(tmp));
data/xorp-1.8.6~wip.20160715/libxipc/xrl_atom.cc:597:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return xrlatom_encode_value(tmp, strlen(tmp));
data/xorp-1.8.6~wip.20160715/libxipc/xrl_atom.cc:623:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return xrlatom_encode_value(tmp, strlen(tmp));
data/xorp-1.8.6~wip.20160715/libxipc/xrl_atom.cc:632:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return xrlatom_encode_value(tmp, strlen(tmp));
data/xorp-1.8.6~wip.20160715/libxipc/xrl_atom.cc:636:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return xrlatom_encode_value(tmp, strlen(tmp));
data/xorp-1.8.6~wip.20160715/libxipc/xrl_parser_input.cc:69:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    stack_top().input()->read(&c[0], 1);
data/xorp-1.8.6~wip.20160715/libxorp/asyncio.cc:167:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
AsyncFileReader::read(XorpFd fd, IoEventType type)
data/xorp-1.8.6~wip.20160715/libxorp/asyncio.cc:233:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    done = ::read(_fd, head->buffer() + head->offset(),
data/xorp-1.8.6~wip.20160715/libxorp/asyncio.cc:267:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		callback(this, &AsyncFileReader::read, _fd, IOT_READ));
data/xorp-1.8.6~wip.20160715/libxorp/asyncio.cc:320:38:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			 callback(this, &AsyncFileReader::read),
data/xorp-1.8.6~wip.20160715/libxorp/buffered_asyncio.cc:212:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read_bytes = ::read(fd, tail, tail_bytes);
data/xorp-1.8.6~wip.20160715/libxorp/debug.c:54:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    req_bytes = 2 * 20 + strlen(file) + 1;
data/xorp-1.8.6~wip.20160715/libxorp/debug.c:56: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).
	req_bytes += strlen(func);
data/xorp-1.8.6~wip.20160715/libxorp/eventloop.cc:55:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	strncpy(xorp_sig_msg_buffer, "SIGTERM received", sizeof(xorp_sig_msg_buffer));
data/xorp-1.8.6~wip.20160715/libxorp/eventloop.cc:58:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	strncpy(xorp_sig_msg_buffer, "SIGINT received", sizeof(xorp_sig_msg_buffer));
data/xorp-1.8.6~wip.20160715/libxorp/eventloop.cc:62:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	strncpy(xorp_sig_msg_buffer, "SIGINT received", sizeof(xorp_sig_msg_buffer));
data/xorp-1.8.6~wip.20160715/libxorp/eventloop.cc:65:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	strncpy(xorp_sig_msg_buffer, "SIGINT received", sizeof(xorp_sig_msg_buffer));
data/xorp-1.8.6~wip.20160715/libxorp/inet_ntop.c:193: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).
			tp += strlen(tp);
data/xorp-1.8.6~wip.20160715/libxorp/random.c:369:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(fd, (void *) state, len) == (ssize_t) len)
data/xorp-1.8.6~wip.20160715/libxorp/strptime.c:522:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			len = strlen(*n1);
data/xorp-1.8.6~wip.20160715/libxorp/tests/test_sched.cc:74:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    void     read(unsigned len);
data/xorp-1.8.6~wip.20160715/libxorp/tests/test_sched.cc:107:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    void	read(unsigned len);
data/xorp-1.8.6~wip.20160715/libxorp/tests/test_sched.cc:212:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
Socket::read(unsigned len)
data/xorp-1.8.6~wip.20160715/libxorp/tests/test_sched.cc:329:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
SocketPair::read(unsigned len)
data/xorp-1.8.6~wip.20160715/libxorp/tests/test_sched.cc:331:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return s0().read(len);
data/xorp-1.8.6~wip.20160715/libxorp/tests/test_sched.cc:378:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	s[i].read(len);
data/xorp-1.8.6~wip.20160715/libxorp/tests/test_sched.cc:435:4:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	s.read(1);
data/xorp-1.8.6~wip.20160715/libxorp/timer.cc:290:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep(tv.usec());
data/xorp-1.8.6~wip.20160715/ospf/ospf.cc:747:28:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
		   uint32_t metric, bool equal, bool discard,
data/xorp-1.8.6~wip.20160715/ospf/ospf.cc:751:59:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	      cstring(net), cstring(nexthop), metric, bool_c_str(equal),
data/xorp-1.8.6~wip.20160715/ospf/ospf.cc:757:60:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	       cstring(net), cstring(nexthop), metric, bool_c_str(equal),
data/xorp-1.8.6~wip.20160715/ospf/ospf.cc:760:61:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    return _io->add_route(net, nexthop, nexthop_id, metric, equal, discard,
data/xorp-1.8.6~wip.20160715/ospf/ospf.cc:767:32:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
		       uint32_t metric, bool equal, bool discard,
data/xorp-1.8.6~wip.20160715/ospf/ospf.cc:771:59:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	      cstring(net), cstring(nexthop), metric, bool_c_str(equal),
data/xorp-1.8.6~wip.20160715/ospf/ospf.cc:777:60:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	       cstring(net), cstring(nexthop), metric, bool_c_str(equal),
data/xorp-1.8.6~wip.20160715/ospf/ospf.cc:780:65:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    return _io->replace_route(net, nexthop, nexthop_id, metric, equal, discard,
data/xorp-1.8.6~wip.20160715/ospf/tests/test_routing.cc:646:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!tlv.read(type, data)) {
data/xorp-1.8.6~wip.20160715/ospf/tests/test_routing.cc:663:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!tlv.read(type, data)) {
data/xorp-1.8.6~wip.20160715/ospf/tests/test_routing.cc:677:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!tlv.read(type, data)) {
data/xorp-1.8.6~wip.20160715/ospf/tests/test_routing.cc:694:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!tlv.read(type, data)) {
data/xorp-1.8.6~wip.20160715/ospf/tests/test_routing.cc:713:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!tlv.read(type, data)) {
data/xorp-1.8.6~wip.20160715/ospf/tests/test_routing.cc:736:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (!tlv.read(type, data))
data/xorp-1.8.6~wip.20160715/ospf/tests/test_routing_database.cc:96:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while (tlv.read(type, data)) {
data/xorp-1.8.6~wip.20160715/ospf/tests/test_routing_database.cc:187:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!tlv.read(type, data)) {
data/xorp-1.8.6~wip.20160715/ospf/tests/test_routing_database.cc:204:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!tlv.read(type, data)) {
data/xorp-1.8.6~wip.20160715/ospf/tests/test_routing_database.cc:218:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!tlv.read(type, data)) {
data/xorp-1.8.6~wip.20160715/ospf/tests/test_routing_database.cc:235:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!tlv.read(type, data)) {
data/xorp-1.8.6~wip.20160715/ospf/tests/test_routing_database.cc:254:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!tlv.read(type, data)) {
data/xorp-1.8.6~wip.20160715/ospf/tests/test_routing_database.cc:277:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while (tlv.read(type, data)) {
data/xorp-1.8.6~wip.20160715/ospf/tests/test_routing_interactive.cc:214:58:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	    if (!_io.routing_table_verify(net, nexthop, metric, equal,discard))
data/xorp-1.8.6~wip.20160715/ospf/xrl_io.cc:665:29:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
		    uint32_t metric, bool equal, bool discard,
data/xorp-1.8.6~wip.20160715/ospf/xrl_io.cc:670:19:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	      bool_c_str(equal), bool_c_str(discard), cstring(policytags));
data/xorp-1.8.6~wip.20160715/ospf/xrl_io.cc:681:26:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
			uint32_t metric, bool equal, bool discard,
data/xorp-1.8.6~wip.20160715/ospf/xrl_io.cc:686:19:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	      bool_c_str(equal), bool_c_str(discard), cstring(policytags));
data/xorp-1.8.6~wip.20160715/policy/backend/single_varrw.cc:42:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
SingleVarRW::read(const Id& id)
data/xorp-1.8.6~wip.20160715/policy/backend/version_filter.cc:80:63:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	const ElemFilter& ef = dynamic_cast<const ElemFilter&>(varrw.read(_fname));
data/xorp-1.8.6~wip.20160715/policy/backend/version_filter.cc:83:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	const Element& e = varrw.read(_fname);
data/xorp-1.8.6~wip.20160715/policy/common/element.cc:91: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).
    int len = strlen(c_str);
data/xorp-1.8.6~wip.20160715/policy/common/policy_utils.cc:138:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    const char* end = &x[strlen(x)];
data/xorp-1.8.6~wip.20160715/policy/common/varrw.cc:43:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    const Element& e = read(id);
data/xorp-1.8.6~wip.20160715/policy/semantic_varrw.cc:42:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
SemanticVarRW::read(const Id& id) {
data/xorp-1.8.6~wip.20160715/policy/test_varrw.cc:29:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
TestVarRW::read(const Id& id) {
data/xorp-1.8.6~wip.20160715/policy/tests/file_varrw.cc:117:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
FileVarRW::read(const Id& id) {
data/xorp-1.8.6~wip.20160715/policy/tests/lex.yy_compile_policy.cc:1691:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     (c = getc( yy_compile_policyin )) != EOF && c != '\n'; ++n ) \
data/xorp-1.8.6~wip.20160715/policy/tests/lex.yy_compile_policy.cc:2723:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return yy_compile_policy_scan_bytes(yystr,strlen(yystr) );
data/xorp-1.8.6~wip.20160715/policy/visitor_semantic.cc:200:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    const Element* left = &_varrw.read(id);
data/xorp-1.8.6~wip.20160715/policy/visitor_semantic.cc:222:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return &_varrw.read(id);
data/xorp-1.8.6~wip.20160715/policy/visitor_test.cc:190:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	const Element& left = read(node.varid());
data/xorp-1.8.6~wip.20160715/policy/visitor_test.cc:203:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    const Element& e = read(node.val());
data/xorp-1.8.6~wip.20160715/policy/visitor_test.cc:299:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
VisitorTest::read(const string& id)
data/xorp-1.8.6~wip.20160715/policy/visitor_test.cc:304:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	const Element& e = _varrw->read(i);
data/xorp-1.8.6~wip.20160715/rip/update_queue.cc:316:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(uint32_t id)
data/xorp-1.8.6~wip.20160715/rip/update_queue.cc:440:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return _impl->read(r->id());
data/xorp-1.8.6~wip.20160715/rtrmgr/master_conf_tree.cc:61:8:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
#ifdef umask
data/xorp-1.8.6~wip.20160715/rtrmgr/master_conf_tree.cc:62:8:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
#undef umask
data/xorp-1.8.6~wip.20160715/rtrmgr/master_conf_tree.cc:64:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
#define umask(x)
data/xorp-1.8.6~wip.20160715/rtrmgr/master_conf_tree.cc:812:24:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    mode_t orig_mask = umask(S_IWOTH);
data/xorp-1.8.6~wip.20160715/rtrmgr/master_conf_tree.cc:829:6:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	    umask(orig_mask);
data/xorp-1.8.6~wip.20160715/rtrmgr/master_conf_tree.cc:846:3:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		umask(orig_mask);
data/xorp-1.8.6~wip.20160715/rtrmgr/master_conf_tree.cc:859:3:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		umask(orig_mask);
data/xorp-1.8.6~wip.20160715/rtrmgr/master_conf_tree.cc:875:6:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	    umask(orig_mask);
data/xorp-1.8.6~wip.20160715/rtrmgr/master_conf_tree.cc:886:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(orig_mask);
data/xorp-1.8.6~wip.20160715/rtrmgr/master_conf_tree.cc:940:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(orig_mask);
data/xorp-1.8.6~wip.20160715/rtrmgr/master_conf_tree.cc:962:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(orig_mask);
data/xorp-1.8.6~wip.20160715/rtrmgr/master_conf_tree.cc:985:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask(orig_mask);
data/xorp-1.8.6~wip.20160715/rtrmgr/xrl_rtrmgr_interface.cc:154:22:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    mode_t oldmode = umask(S_IRWXG|S_IRWXO);
data/xorp-1.8.6~wip.20160715/rtrmgr/xrl_rtrmgr_interface.cc:166:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask(oldmode);

ANALYSIS SUMMARY:

Hits = 1245
Lines analyzed = 426561 in approximately 8.25 seconds (51708 lines/second)
Physical Source Lines of Code (SLOC) = 289588
Hits@level = [0] 2214 [1] 326 [2] 658 [3] 147 [4] 112 [5]   2
Hits@level+ = [0+] 3459 [1+] 1245 [2+] 919 [3+] 261 [4+] 114 [5+]   2
Hits/KSLOC@level+ = [0+] 11.9446 [1+] 4.29921 [2+] 3.17347 [3+] 0.90128 [4+] 0.393663 [5+] 0.00690636
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.