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/libnl3-3.4.0/include/linux-private/linux/can/netlink.h Examining data/libnl3-3.4.0/include/linux-private/linux/netfilter/nf_conntrack_common.h Examining data/libnl3-3.4.0/include/linux-private/linux/netfilter/nfnetlink.h Examining data/libnl3-3.4.0/include/linux-private/linux/netfilter/nfnetlink_compat.h Examining data/libnl3-3.4.0/include/linux-private/linux/netfilter/nfnetlink_conntrack.h Examining data/libnl3-3.4.0/include/linux-private/linux/netfilter/nfnetlink_log.h Examining data/libnl3-3.4.0/include/linux-private/linux/netfilter/nfnetlink_queue.h Examining data/libnl3-3.4.0/include/linux-private/linux/tc_act/tc_gact.h Examining data/libnl3-3.4.0/include/linux-private/linux/tc_act/tc_mirred.h Examining data/libnl3-3.4.0/include/linux-private/linux/tc_act/tc_skbedit.h Examining data/libnl3-3.4.0/include/linux-private/linux/tc_ematch/tc_em_meta.h Examining data/libnl3-3.4.0/include/linux-private/linux/fib_rules.h Examining data/libnl3-3.4.0/include/linux-private/linux/gen_stats.h Examining data/libnl3-3.4.0/include/linux-private/linux/genetlink.h Examining data/libnl3-3.4.0/include/linux-private/linux/if.h Examining data/libnl3-3.4.0/include/linux-private/linux/if_addr.h Examining data/libnl3-3.4.0/include/linux-private/linux/if_arp.h Examining data/libnl3-3.4.0/include/linux-private/linux/if_bridge.h Examining data/libnl3-3.4.0/include/linux-private/linux/if_ether.h Examining data/libnl3-3.4.0/include/linux-private/linux/if_link.h Examining data/libnl3-3.4.0/include/linux-private/linux/if_macsec.h Examining data/libnl3-3.4.0/include/linux-private/linux/if_tunnel.h Examining data/libnl3-3.4.0/include/linux-private/linux/if_vlan.h Examining data/libnl3-3.4.0/include/linux-private/linux/in.h Examining data/libnl3-3.4.0/include/linux-private/linux/in6.h Examining data/libnl3-3.4.0/include/linux-private/linux/inet_diag.h Examining data/libnl3-3.4.0/include/linux-private/linux/ip.h Examining data/libnl3-3.4.0/include/linux-private/linux/ip_mp_alg.h Examining data/libnl3-3.4.0/include/linux-private/linux/ipv6.h Examining data/libnl3-3.4.0/include/linux-private/linux/libc-compat.h Examining data/libnl3-3.4.0/include/linux-private/linux/lwtunnel.h Examining data/libnl3-3.4.0/include/linux-private/linux/mpls.h Examining data/libnl3-3.4.0/include/linux-private/linux/mpls_iptunnel.h Examining data/libnl3-3.4.0/include/linux-private/linux/neighbour.h Examining data/libnl3-3.4.0/include/linux-private/linux/netconf.h Examining data/libnl3-3.4.0/include/linux-private/linux/netfilter.h Examining data/libnl3-3.4.0/include/linux-private/linux/netlink.h Examining data/libnl3-3.4.0/include/linux-private/linux/pkt_cls.h Examining data/libnl3-3.4.0/include/linux-private/linux/pkt_sched.h Examining data/libnl3-3.4.0/include/linux-private/linux/rtnetlink.h Examining data/libnl3-3.4.0/include/linux-private/linux/snmp.h Examining data/libnl3-3.4.0/include/linux-private/linux/sock_diag.h Examining data/libnl3-3.4.0/include/linux-private/linux/socket.h Examining data/libnl3-3.4.0/include/linux-private/linux/veth.h Examining data/libnl3-3.4.0/include/linux-private/linux/xfrm.h Examining data/libnl3-3.4.0/include/netlink/cli/addr.h Examining data/libnl3-3.4.0/include/netlink/cli/class.h Examining data/libnl3-3.4.0/include/netlink/cli/cls.h Examining data/libnl3-3.4.0/include/netlink/cli/ct.h Examining data/libnl3-3.4.0/include/netlink/cli/exp.h Examining data/libnl3-3.4.0/include/netlink/cli/link.h Examining data/libnl3-3.4.0/include/netlink/cli/neigh.h Examining data/libnl3-3.4.0/include/netlink/cli/qdisc.h Examining data/libnl3-3.4.0/include/netlink/cli/route.h Examining data/libnl3-3.4.0/include/netlink/cli/rule.h Examining data/libnl3-3.4.0/include/netlink/cli/tc.h Examining data/libnl3-3.4.0/include/netlink/cli/utils.h Examining data/libnl3-3.4.0/include/netlink/fib_lookup/lookup.h Examining data/libnl3-3.4.0/include/netlink/fib_lookup/request.h Examining data/libnl3-3.4.0/include/netlink/genl/ctrl.h Examining data/libnl3-3.4.0/include/netlink/genl/family.h Examining data/libnl3-3.4.0/include/netlink/genl/genl.h Examining data/libnl3-3.4.0/include/netlink/genl/mngt.h Examining data/libnl3-3.4.0/include/netlink/idiag/idiagnl.h Examining data/libnl3-3.4.0/include/netlink/idiag/meminfo.h Examining data/libnl3-3.4.0/include/netlink/idiag/msg.h Examining data/libnl3-3.4.0/include/netlink/idiag/req.h Examining data/libnl3-3.4.0/include/netlink/idiag/vegasinfo.h Examining data/libnl3-3.4.0/include/netlink/netfilter/ct.h Examining data/libnl3-3.4.0/include/netlink/netfilter/exp.h Examining data/libnl3-3.4.0/include/netlink/netfilter/log.h Examining data/libnl3-3.4.0/include/netlink/netfilter/log_msg.h Examining data/libnl3-3.4.0/include/netlink/netfilter/netfilter.h Examining data/libnl3-3.4.0/include/netlink/netfilter/nfnl.h Examining data/libnl3-3.4.0/include/netlink/netfilter/queue.h Examining data/libnl3-3.4.0/include/netlink/netfilter/queue_msg.h Examining data/libnl3-3.4.0/include/netlink/route/act/gact.h Examining data/libnl3-3.4.0/include/netlink/route/act/mirred.h Examining data/libnl3-3.4.0/include/netlink/route/act/skbedit.h Examining data/libnl3-3.4.0/include/netlink/route/cls/ematch/cmp.h Examining data/libnl3-3.4.0/include/netlink/route/cls/ematch/meta.h Examining data/libnl3-3.4.0/include/netlink/route/cls/ematch/nbyte.h Examining data/libnl3-3.4.0/include/netlink/route/cls/ematch/text.h Examining data/libnl3-3.4.0/include/netlink/route/cls/basic.h Examining data/libnl3-3.4.0/include/netlink/route/cls/cgroup.h Examining data/libnl3-3.4.0/include/netlink/route/cls/ematch.h Examining data/libnl3-3.4.0/include/netlink/route/cls/fw.h Examining data/libnl3-3.4.0/include/netlink/route/cls/police.h Examining data/libnl3-3.4.0/include/netlink/route/cls/u32.h Examining data/libnl3-3.4.0/include/netlink/route/link/api.h Examining data/libnl3-3.4.0/include/netlink/route/link/bonding.h Examining data/libnl3-3.4.0/include/netlink/route/link/bridge.h Examining data/libnl3-3.4.0/include/netlink/route/link/can.h Examining data/libnl3-3.4.0/include/netlink/route/link/inet.h Examining data/libnl3-3.4.0/include/netlink/route/link/inet6.h Examining data/libnl3-3.4.0/include/netlink/route/link/info-api.h Examining data/libnl3-3.4.0/include/netlink/route/link/ip6tnl.h Examining data/libnl3-3.4.0/include/netlink/route/link/ipgre.h Examining data/libnl3-3.4.0/include/netlink/route/link/ipip.h Examining data/libnl3-3.4.0/include/netlink/route/link/ipvlan.h Examining data/libnl3-3.4.0/include/netlink/route/link/ipvti.h Examining data/libnl3-3.4.0/include/netlink/route/link/macsec.h Examining data/libnl3-3.4.0/include/netlink/route/link/macvlan.h Examining data/libnl3-3.4.0/include/netlink/route/link/macvtap.h Examining data/libnl3-3.4.0/include/netlink/route/link/ppp.h Examining data/libnl3-3.4.0/include/netlink/route/link/sit.h Examining data/libnl3-3.4.0/include/netlink/route/link/sriov.h Examining data/libnl3-3.4.0/include/netlink/route/link/veth.h Examining data/libnl3-3.4.0/include/netlink/route/link/vlan.h Examining data/libnl3-3.4.0/include/netlink/route/link/vrf.h Examining data/libnl3-3.4.0/include/netlink/route/link/vxlan.h Examining data/libnl3-3.4.0/include/netlink/route/qdisc/cbq.h Examining data/libnl3-3.4.0/include/netlink/route/qdisc/dsmark.h Examining data/libnl3-3.4.0/include/netlink/route/qdisc/fifo.h Examining data/libnl3-3.4.0/include/netlink/route/qdisc/fq_codel.h Examining data/libnl3-3.4.0/include/netlink/route/qdisc/hfsc.h Examining data/libnl3-3.4.0/include/netlink/route/qdisc/htb.h Examining data/libnl3-3.4.0/include/netlink/route/qdisc/netem.h Examining data/libnl3-3.4.0/include/netlink/route/qdisc/plug.h Examining data/libnl3-3.4.0/include/netlink/route/qdisc/prio.h Examining data/libnl3-3.4.0/include/netlink/route/qdisc/red.h Examining data/libnl3-3.4.0/include/netlink/route/qdisc/sfq.h Examining data/libnl3-3.4.0/include/netlink/route/qdisc/tbf.h Examining data/libnl3-3.4.0/include/netlink/route/action.h Examining data/libnl3-3.4.0/include/netlink/route/addr.h Examining data/libnl3-3.4.0/include/netlink/route/class.h Examining data/libnl3-3.4.0/include/netlink/route/classifier.h Examining data/libnl3-3.4.0/include/netlink/route/link.h Examining data/libnl3-3.4.0/include/netlink/route/neighbour.h Examining data/libnl3-3.4.0/include/netlink/route/neightbl.h Examining data/libnl3-3.4.0/include/netlink/route/netconf.h Examining data/libnl3-3.4.0/include/netlink/route/nexthop.h Examining data/libnl3-3.4.0/include/netlink/route/pktloc.h Examining data/libnl3-3.4.0/include/netlink/route/qdisc.h Examining data/libnl3-3.4.0/include/netlink/route/route.h Examining data/libnl3-3.4.0/include/netlink/route/rtnl.h Examining data/libnl3-3.4.0/include/netlink/route/rule.h Examining data/libnl3-3.4.0/include/netlink/route/tc-api.h Examining data/libnl3-3.4.0/include/netlink/route/tc.h Examining data/libnl3-3.4.0/include/netlink/xfrm/ae.h Examining data/libnl3-3.4.0/include/netlink/xfrm/lifetime.h Examining data/libnl3-3.4.0/include/netlink/xfrm/sa.h Examining data/libnl3-3.4.0/include/netlink/xfrm/selector.h Examining data/libnl3-3.4.0/include/netlink/xfrm/sp.h Examining data/libnl3-3.4.0/include/netlink/xfrm/template.h Examining data/libnl3-3.4.0/include/netlink/addr.h Examining data/libnl3-3.4.0/include/netlink/attr.h Examining data/libnl3-3.4.0/include/netlink/cache-api.h Examining data/libnl3-3.4.0/include/netlink/cache.h Examining data/libnl3-3.4.0/include/netlink/data.h Examining data/libnl3-3.4.0/include/netlink/errno.h Examining data/libnl3-3.4.0/include/netlink/handlers.h Examining data/libnl3-3.4.0/include/netlink/hash.h Examining data/libnl3-3.4.0/include/netlink/hashtable.h Examining data/libnl3-3.4.0/include/netlink/list.h Examining data/libnl3-3.4.0/include/netlink/msg.h Examining data/libnl3-3.4.0/include/netlink/netlink-compat.h Examining data/libnl3-3.4.0/include/netlink/netlink-kernel.h Examining data/libnl3-3.4.0/include/netlink/netlink.h Examining data/libnl3-3.4.0/include/netlink/object-api.h Examining data/libnl3-3.4.0/include/netlink/object.h Examining data/libnl3-3.4.0/include/netlink/socket.h Examining data/libnl3-3.4.0/include/netlink/types.h Examining data/libnl3-3.4.0/include/netlink/utils.h Examining data/libnl3-3.4.0/include/netlink/version.h Examining data/libnl3-3.4.0/include/netlink-private/route/link/api.h Examining data/libnl3-3.4.0/include/netlink-private/route/link/sriov.h Examining data/libnl3-3.4.0/include/netlink-private/route/mpls.h Examining data/libnl3-3.4.0/include/netlink-private/route/nexthop-encap.h Examining data/libnl3-3.4.0/include/netlink-private/route/tc-api.h Examining data/libnl3-3.4.0/include/netlink-private/cache-api.h Examining data/libnl3-3.4.0/include/netlink-private/genl.h Examining data/libnl3-3.4.0/include/netlink-private/netlink.h Examining data/libnl3-3.4.0/include/netlink-private/object-api.h Examining data/libnl3-3.4.0/include/netlink-private/socket.h Examining data/libnl3-3.4.0/include/netlink-private/tc.h Examining data/libnl3-3.4.0/include/netlink-private/types.h Examining data/libnl3-3.4.0/include/netlink-private/utils.h Examining data/libnl3-3.4.0/lib/cli/cls/basic.c Examining data/libnl3-3.4.0/lib/cli/cls/cgroup.c Examining data/libnl3-3.4.0/lib/cli/qdisc/bfifo.c Examining data/libnl3-3.4.0/lib/cli/qdisc/blackhole.c Examining data/libnl3-3.4.0/lib/cli/qdisc/fq_codel.c Examining data/libnl3-3.4.0/lib/cli/qdisc/hfsc.c Examining data/libnl3-3.4.0/lib/cli/qdisc/htb.c Examining data/libnl3-3.4.0/lib/cli/qdisc/ingress.c Examining data/libnl3-3.4.0/lib/cli/qdisc/pfifo.c Examining data/libnl3-3.4.0/lib/cli/qdisc/plug.c Examining data/libnl3-3.4.0/lib/fib_lookup/lookup.c Examining data/libnl3-3.4.0/lib/fib_lookup/request.c Examining data/libnl3-3.4.0/lib/genl/ctrl.c Examining data/libnl3-3.4.0/lib/genl/family.c Examining data/libnl3-3.4.0/lib/genl/genl.c Examining data/libnl3-3.4.0/lib/genl/mngt.c Examining data/libnl3-3.4.0/lib/idiag/idiag_meminfo_obj.c Examining data/libnl3-3.4.0/lib/idiag/idiag_vegasinfo_obj.c Examining data/libnl3-3.4.0/lib/idiag/idiag_msg_obj.c Examining data/libnl3-3.4.0/lib/idiag/idiag_req_obj.c Examining data/libnl3-3.4.0/lib/idiag/idiag.c Examining data/libnl3-3.4.0/lib/netfilter/ct.c Examining data/libnl3-3.4.0/lib/netfilter/ct_obj.c Examining data/libnl3-3.4.0/lib/netfilter/log.c Examining data/libnl3-3.4.0/lib/netfilter/log_msg.c Examining data/libnl3-3.4.0/lib/netfilter/log_msg_obj.c Examining data/libnl3-3.4.0/lib/netfilter/log_obj.c Examining data/libnl3-3.4.0/lib/netfilter/netfilter.c Examining data/libnl3-3.4.0/lib/netfilter/nfnl.c Examining data/libnl3-3.4.0/lib/netfilter/queue.c Examining data/libnl3-3.4.0/lib/netfilter/queue_msg.c Examining data/libnl3-3.4.0/lib/netfilter/queue_msg_obj.c Examining data/libnl3-3.4.0/lib/netfilter/queue_obj.c Examining data/libnl3-3.4.0/lib/netfilter/exp.c Examining data/libnl3-3.4.0/lib/netfilter/exp_obj.c Examining data/libnl3-3.4.0/lib/route/act/gact.c Examining data/libnl3-3.4.0/lib/route/act/mirred.c Examining data/libnl3-3.4.0/lib/route/act/skbedit.c Examining data/libnl3-3.4.0/lib/route/cls/ematch/cmp.c Examining data/libnl3-3.4.0/lib/route/cls/ematch/container.c Examining data/libnl3-3.4.0/lib/route/cls/ematch/meta.c Examining data/libnl3-3.4.0/lib/route/cls/ematch/nbyte.c Examining data/libnl3-3.4.0/lib/route/cls/ematch/text.c Examining data/libnl3-3.4.0/lib/route/cls/basic.c Examining data/libnl3-3.4.0/lib/route/cls/cgroup.c Examining data/libnl3-3.4.0/lib/route/cls/ematch.c Examining data/libnl3-3.4.0/lib/route/cls/fw.c Examining data/libnl3-3.4.0/lib/route/cls/police.c Examining data/libnl3-3.4.0/lib/route/cls/u32.c Examining data/libnl3-3.4.0/lib/route/link/api.c Examining data/libnl3-3.4.0/lib/route/link/bonding.c Examining data/libnl3-3.4.0/lib/route/link/bridge.c Examining data/libnl3-3.4.0/lib/route/link/can.c Examining data/libnl3-3.4.0/lib/route/link/dummy.c Examining data/libnl3-3.4.0/lib/route/link/ifb.c Examining data/libnl3-3.4.0/lib/route/link/inet6.c Examining data/libnl3-3.4.0/lib/route/link/inet.c Examining data/libnl3-3.4.0/lib/route/link/ip6tnl.c Examining data/libnl3-3.4.0/lib/route/link/ipgre.c Examining data/libnl3-3.4.0/lib/route/link/ipip.c Examining data/libnl3-3.4.0/lib/route/link/ipvlan.c Examining data/libnl3-3.4.0/lib/route/link/ipvti.c Examining data/libnl3-3.4.0/lib/route/link/macsec.c Examining data/libnl3-3.4.0/lib/route/link/macvlan.c Examining data/libnl3-3.4.0/lib/route/link/ppp.c Examining data/libnl3-3.4.0/lib/route/link/sit.c Examining data/libnl3-3.4.0/lib/route/link/sriov.c Examining data/libnl3-3.4.0/lib/route/link/veth.c Examining data/libnl3-3.4.0/lib/route/link/vlan.c Examining data/libnl3-3.4.0/lib/route/link/vrf.c Examining data/libnl3-3.4.0/lib/route/link/vxlan.c Examining data/libnl3-3.4.0/lib/route/qdisc/blackhole.c Examining data/libnl3-3.4.0/lib/route/qdisc/cbq.c Examining data/libnl3-3.4.0/lib/route/qdisc/dsmark.c Examining data/libnl3-3.4.0/lib/route/qdisc/fifo.c Examining data/libnl3-3.4.0/lib/route/qdisc/fq_codel.c Examining data/libnl3-3.4.0/lib/route/qdisc/hfsc.c Examining data/libnl3-3.4.0/lib/route/qdisc/htb.c Examining data/libnl3-3.4.0/lib/route/qdisc/ingress.c Examining data/libnl3-3.4.0/lib/route/qdisc/netem.c Examining data/libnl3-3.4.0/lib/route/qdisc/plug.c Examining data/libnl3-3.4.0/lib/route/qdisc/prio.c Examining data/libnl3-3.4.0/lib/route/qdisc/red.c Examining data/libnl3-3.4.0/lib/route/qdisc/sfq.c Examining data/libnl3-3.4.0/lib/route/qdisc/tbf.c Examining data/libnl3-3.4.0/lib/route/act.c Examining data/libnl3-3.4.0/lib/route/addr.c Examining data/libnl3-3.4.0/lib/route/class.c Examining data/libnl3-3.4.0/lib/route/classid.c Examining data/libnl3-3.4.0/lib/route/cls.c Examining data/libnl3-3.4.0/lib/route/link.c Examining data/libnl3-3.4.0/lib/route/neigh.c Examining data/libnl3-3.4.0/lib/route/neightbl.c Examining data/libnl3-3.4.0/lib/route/netconf.c Examining data/libnl3-3.4.0/lib/route/nexthop.c Examining data/libnl3-3.4.0/lib/route/nexthop_encap.c Examining data/libnl3-3.4.0/lib/route/nh_encap_mpls.c Examining data/libnl3-3.4.0/lib/route/pktloc.c Examining data/libnl3-3.4.0/lib/route/qdisc.c Examining data/libnl3-3.4.0/lib/route/route.c Examining data/libnl3-3.4.0/lib/route/route_obj.c Examining data/libnl3-3.4.0/lib/route/route_utils.c Examining data/libnl3-3.4.0/lib/route/rtnl.c Examining data/libnl3-3.4.0/lib/route/rule.c Examining data/libnl3-3.4.0/lib/route/tc.c Examining data/libnl3-3.4.0/lib/xfrm/ae.c Examining data/libnl3-3.4.0/lib/xfrm/lifetime.c Examining data/libnl3-3.4.0/lib/xfrm/sa.c Examining data/libnl3-3.4.0/lib/xfrm/selector.c Examining data/libnl3-3.4.0/lib/xfrm/sp.c Examining data/libnl3-3.4.0/lib/xfrm/template.c Examining data/libnl3-3.4.0/lib/addr.c Examining data/libnl3-3.4.0/lib/attr.c Examining data/libnl3-3.4.0/lib/cache.c Examining data/libnl3-3.4.0/lib/cache_mngr.c Examining data/libnl3-3.4.0/lib/data.c Examining data/libnl3-3.4.0/lib/error.c Examining data/libnl3-3.4.0/lib/handlers.c Examining data/libnl3-3.4.0/lib/msg.c Examining data/libnl3-3.4.0/lib/nl.c Examining data/libnl3-3.4.0/lib/object.c Examining data/libnl3-3.4.0/lib/utils.c Examining data/libnl3-3.4.0/lib/version.c Examining data/libnl3-3.4.0/lib/hash.c Examining data/libnl3-3.4.0/lib/hashtable.c Examining data/libnl3-3.4.0/lib/mpls.c Examining data/libnl3-3.4.0/lib/cache_mngt.c Examining data/libnl3-3.4.0/lib/socket.c Examining data/libnl3-3.4.0/python/netlink/fixes.h Examining data/libnl3-3.4.0/python/netlink/utils.h Examining data/libnl3-3.4.0/src/lib/utils.c Examining data/libnl3-3.4.0/src/lib/addr.c Examining data/libnl3-3.4.0/src/lib/ct.c Examining data/libnl3-3.4.0/src/lib/link.c Examining data/libnl3-3.4.0/src/lib/neigh.c Examining data/libnl3-3.4.0/src/lib/rule.c Examining data/libnl3-3.4.0/src/lib/route.c Examining data/libnl3-3.4.0/src/lib/tc.c Examining data/libnl3-3.4.0/src/lib/qdisc.c Examining data/libnl3-3.4.0/src/lib/class.c Examining data/libnl3-3.4.0/src/lib/cls.c Examining data/libnl3-3.4.0/src/lib/exp.c Examining data/libnl3-3.4.0/src/genl-ctrl-list.c Examining data/libnl3-3.4.0/src/idiag-socket-details.c Examining data/libnl3-3.4.0/src/nf-ct-add.c Examining data/libnl3-3.4.0/src/nf-ct-list.c Examining data/libnl3-3.4.0/src/nf-exp-add.c Examining data/libnl3-3.4.0/src/nf-exp-delete.c Examining data/libnl3-3.4.0/src/nf-exp-list.c Examining data/libnl3-3.4.0/src/nf-log.c Examining data/libnl3-3.4.0/src/nf-monitor.c Examining data/libnl3-3.4.0/src/nf-queue.c Examining data/libnl3-3.4.0/src/nl-addr-add.c Examining data/libnl3-3.4.0/src/nl-addr-delete.c Examining data/libnl3-3.4.0/src/nl-addr-list.c Examining data/libnl3-3.4.0/src/nl-class-add.c Examining data/libnl3-3.4.0/src/nl-class-delete.c Examining data/libnl3-3.4.0/src/nl-class-list.c Examining data/libnl3-3.4.0/src/nl-classid-lookup.c Examining data/libnl3-3.4.0/src/nl-cls-add.c Examining data/libnl3-3.4.0/src/nl-cls-delete.c Examining data/libnl3-3.4.0/src/nl-cls-list.c Examining data/libnl3-3.4.0/src/nl-fib-lookup.c Examining data/libnl3-3.4.0/src/nl-link-enslave.c Examining data/libnl3-3.4.0/src/nl-link-ifindex2name.c Examining data/libnl3-3.4.0/src/nl-link-list.c Examining data/libnl3-3.4.0/src/nl-link-name2ifindex.c Examining data/libnl3-3.4.0/src/nl-link-release.c Examining data/libnl3-3.4.0/src/nl-link-set.c Examining data/libnl3-3.4.0/src/nl-link-stats.c Examining data/libnl3-3.4.0/src/nl-list-caches.c Examining data/libnl3-3.4.0/src/nl-list-sockets.c Examining data/libnl3-3.4.0/src/nl-monitor.c Examining data/libnl3-3.4.0/src/nl-neigh-add.c Examining data/libnl3-3.4.0/src/nl-neigh-delete.c Examining data/libnl3-3.4.0/src/nl-neigh-list.c Examining data/libnl3-3.4.0/src/nl-neightbl-list.c Examining data/libnl3-3.4.0/src/nl-pktloc-lookup.c Examining data/libnl3-3.4.0/src/nl-qdisc-add.c Examining data/libnl3-3.4.0/src/nl-qdisc-delete.c Examining data/libnl3-3.4.0/src/nl-qdisc-list.c Examining data/libnl3-3.4.0/src/nl-route-add.c Examining data/libnl3-3.4.0/src/nl-route-delete.c Examining data/libnl3-3.4.0/src/nl-route-get.c Examining data/libnl3-3.4.0/src/nl-route-list.c Examining data/libnl3-3.4.0/src/nl-rule-list.c Examining data/libnl3-3.4.0/src/nl-tctree-list.c Examining data/libnl3-3.4.0/src/nl-util-addr.c Examining data/libnl3-3.4.0/tests/util.h Examining data/libnl3-3.4.0/tests/check-all.c Examining data/libnl3-3.4.0/tests/check-addr.c Examining data/libnl3-3.4.0/tests/check-attr.c Examining data/libnl3-3.4.0/tests/test-cache-mngr.c Examining data/libnl3-3.4.0/tests/test-complex-HTB-with-hash-filters.c Examining data/libnl3-3.4.0/tests/test-create-bond.c Examining data/libnl3-3.4.0/tests/test-create-bridge.c Examining data/libnl3-3.4.0/tests/test-create-ifb.c Examining data/libnl3-3.4.0/tests/test-create-ip6tnl.c Examining data/libnl3-3.4.0/tests/test-create-ipgre.c Examining data/libnl3-3.4.0/tests/test-create-ipgretap.c Examining data/libnl3-3.4.0/tests/test-create-ipip.c Examining data/libnl3-3.4.0/tests/test-create-ipvlan.c Examining data/libnl3-3.4.0/tests/test-create-ipvti.c Examining data/libnl3-3.4.0/tests/test-create-macsec.c Examining data/libnl3-3.4.0/tests/test-create-macvlan.c Examining data/libnl3-3.4.0/tests/test-create-macvtap.c Examining data/libnl3-3.4.0/tests/test-create-sit.c Examining data/libnl3-3.4.0/tests/test-create-veth.c Examining data/libnl3-3.4.0/tests/test-create-vlan.c Examining data/libnl3-3.4.0/tests/test-create-vrf.c Examining data/libnl3-3.4.0/tests/test-create-vxlan.c Examining data/libnl3-3.4.0/tests/test-delete-link.c Examining data/libnl3-3.4.0/tests/test-genl.c Examining data/libnl3-3.4.0/tests/test-nf-cache-mngr.c Examining data/libnl3-3.4.0/tests/test-socket-creation.c Examining data/libnl3-3.4.0/tests/test-u32-filter-with-actions.c FINAL RESULTS: data/libnl3-3.4.0/include/netlink-private/netlink.h:90:4: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, \ data/libnl3-3.4.0/include/netlink-private/types.h:1226:34: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. struct xfrmnl_algo* crypt; data/libnl3-3.4.0/lib/route/addr.c:847:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(addr->a_label, label); data/libnl3-3.4.0/lib/route/rule.c:667:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(rule->r_iifname, dev); data/libnl3-3.4.0/lib/route/rule.c:685:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(rule->r_oifname, dev); data/libnl3-3.4.0/lib/utils.c:936:3: [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(parms->dp_fd, fmt, args); data/libnl3-3.4.0/lib/xfrm/ae.c:320:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (flags, "%s", "-"); data/libnl3-3.4.0/lib/xfrm/ae.c:331:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (buf, "%s", "-"); data/libnl3-3.4.0/lib/xfrm/sa.c:110:10: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. if (sa->crypt) data/libnl3-3.4.0/lib/xfrm/sa.c:111:13: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. free (sa->crypt); data/libnl3-3.4.0/lib/xfrm/sa.c:165:11: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. if (src->crypt) data/libnl3-3.4.0/lib/xfrm/sa.c:170:24: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. memcpy ((void *)dst->crypt, (void *)src->crypt, len); data/libnl3-3.4.0/lib/xfrm/sa.c:170:44: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. memcpy ((void *)dst->crypt, (void *)src->crypt, len); data/libnl3-3.4.0/lib/xfrm/sa.c:416:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (flags, "%" PRIu64, sa->lft->soft_byte_limit); data/libnl3-3.4.0/lib/xfrm/sa.c:420:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (mode, "%" PRIu64, sa->lft->soft_packet_limit); data/libnl3-3.4.0/lib/xfrm/sa.c:425:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (flags, "%" PRIu64, sa->lft->hard_byte_limit); data/libnl3-3.4.0/lib/xfrm/sa.c:429:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (mode, "%" PRIu64, sa->lft->hard_packet_limit); data/libnl3-3.4.0/lib/xfrm/sa.c:446:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (flags, "%s", "-"); data/libnl3-3.4.0/lib/xfrm/sa.c:457:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (mode, "%s", "-"); data/libnl3-3.4.0/lib/xfrm/sa.c:475:10: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. if (sa->crypt) data/libnl3-3.4.0/lib/xfrm/sa.c:796:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(sa->auth->alg_name, auth->alg_name); data/libnl3-3.4.0/lib/xfrm/sa.c:810:23: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. memcpy ((void *)sa->crypt, (void *)crypt, len); data/libnl3-3.4.0/lib/xfrm/sa.c:810:38: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. memcpy ((void *)sa->crypt, (void *)crypt, len); data/libnl3-3.4.0/lib/xfrm/sa.c:1205:45: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. NLA_PUT (msg, XFRMA_ALG_CRYPT, len, tmpl->crypt); data/libnl3-3.4.0/lib/xfrm/sa.c:1666:4: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (alg_name, sa->aead->alg_name); data/libnl3-3.4.0/lib/xfrm/sa.c:1692:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (sa->aead->alg_name, alg_name); data/libnl3-3.4.0/lib/xfrm/sa.c:1723:4: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (alg_name, sa->auth->alg_name); data/libnl3-3.4.0/lib/xfrm/sa.c:1749:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (sa->auth->alg_name, alg_name); data/libnl3-3.4.0/lib/xfrm/sa.c:1779:4: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (alg_name, sa->crypt->alg_name); data/libnl3-3.4.0/lib/xfrm/sa.c:1797:10: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. if (sa->crypt) data/libnl3-3.4.0/lib/xfrm/sa.c:1798:13: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. free (sa->crypt); data/libnl3-3.4.0/lib/xfrm/sa.c:1803:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (sa->crypt->alg_name, alg_name); data/libnl3-3.4.0/lib/xfrm/sa.c:1832:4: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (alg_name, sa->comp->alg_name); data/libnl3-3.4.0/lib/xfrm/sa.c:1856:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (sa->comp->alg_name, alg_name); data/libnl3-3.4.0/lib/xfrm/sp.c:346:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (dir, "%" PRIu64, sp->lft->soft_byte_limit); data/libnl3-3.4.0/lib/xfrm/sp.c:350:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (action, "%" PRIu64, sp->lft->soft_packet_limit); data/libnl3-3.4.0/lib/xfrm/sp.c:354:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (flags, "%" PRIu64, sp->lft->hard_byte_limit); data/libnl3-3.4.0/lib/xfrm/sp.c:358:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (share, "%" PRIu64, sp->lft->hard_packet_limit); data/libnl3-3.4.0/lib/xfrm/sp.c:377:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (dst, "%s", "-"); data/libnl3-3.4.0/lib/xfrm/sp.c:388:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (src, "%s", "-"); data/libnl3-3.4.0/python/netlink/utils.h:38:2: [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, "%s: " fmt, __func__, __VA_ARGS__) data/libnl3-3.4.0/src/lib/utils.c:85:3: [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/libnl3-3.4.0/src/nl-pktloc-lookup.c:78:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(buf, align_txt[loc->align]); data/libnl3-3.4.0/include/netlink-private/netlink.h:226: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. sysconfdir = getenv("NLSYSCONFDIR"); data/libnl3-3.4.0/lib/cli/cls/basic.c:53:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "ht:e:", long_opts, &optidx); data/libnl3-3.4.0/lib/cli/cls/cgroup.c:43:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "he:", long_opts, &optidx); data/libnl3-3.4.0/lib/cli/qdisc/bfifo.c:46:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "h", long_opts, &optidx); data/libnl3-3.4.0/lib/cli/qdisc/blackhole.c:37:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "h", long_opts, &optidx); data/libnl3-3.4.0/lib/cli/qdisc/fq_codel.c:59:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "h", long_opts, &optidx); data/libnl3-3.4.0/lib/cli/qdisc/hfsc.c:46:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "hv", long_opts, &optidx); data/libnl3-3.4.0/lib/cli/qdisc/hfsc.c:168:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "h", long_opts, &optidx); data/libnl3-3.4.0/lib/cli/qdisc/htb.c:48:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "hv", long_opts, &optidx); data/libnl3-3.4.0/lib/cli/qdisc/htb.c:113:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "h", long_opts, &optidx); data/libnl3-3.4.0/lib/cli/qdisc/ingress.c:38:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "h", long_opts, &optidx); data/libnl3-3.4.0/lib/cli/qdisc/pfifo.c:46:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "h", long_opts, &optidx); data/libnl3-3.4.0/lib/cli/qdisc/plug.c:70:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "h", long_opts, &optidx); data/libnl3-3.4.0/lib/route/cls/ematch/meta.c:170:28: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. __ADD(TCF_META_ID_RANDOM, random), data/libnl3-3.4.0/lib/socket.c:49: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. if ((nlcb = getenv("NLCB"))) { data/libnl3-3.4.0/lib/utils.c:65: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. if ((nldbg = getenv("NLDBG"))) { data/libnl3-3.4.0/lib/utils.c:453: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. if ((ev = getenv("HZ"))) { data/libnl3-3.4.0/lib/utils.c:467: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. if ((ev = getenv("TICKS_PER_USEC"))) { data/libnl3-3.4.0/lib/utils.c:472: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. if ((ev = getenv("PROC_NET_PSCHED"))) data/libnl3-3.4.0/lib/utils.c:474:18: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. else if ((ev = getenv("PROC_ROOT"))) data/libnl3-3.4.0/src/genl-ctrl-list.c:58:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "df:hv", long_opts, &optidx); data/libnl3-3.4.0/src/idiag-socket-details.c:61:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "hv", long_opts, &optidx); data/libnl3-3.4.0/src/nf-ct-add.c:99:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "46q:hv:p:F:", long_opts, &optidx); data/libnl3-3.4.0/src/nf-ct-list.c:101:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "46f:hvi:p:F:", long_opts, &optidx); data/libnl3-3.4.0/src/nf-exp-add.c:136:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "46f:hvi:p:F:", long_opts, &optidx); data/libnl3-3.4.0/src/nf-exp-delete.c:121:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "46f:hvi:p:F:", long_opts, &optidx); data/libnl3-3.4.0/src/nf-exp-list.c:103:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "46f:hvi:p:F:", long_opts, &optidx); data/libnl3-3.4.0/src/nl-addr-add.c:90:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "qhva:d:", long_opts, &optidx); data/libnl3-3.4.0/src/nl-addr-delete.c:114:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "iqhva:d:", long_opts, &optidx); data/libnl3-3.4.0/src/nl-addr-list.c:166:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "46hva:d:", long_opts, &optidx); data/libnl3-3.4.0/src/nl-class-add.c:102:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "+qhvd:p:i:", data/libnl3-3.4.0/src/nl-class-delete.c:101:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "qhvd:p:i:k:", long_opts, &optidx); data/libnl3-3.4.0/src/nl-class-list.c:97:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "hvd:p:i:k:", long_opts, &optidx); data/libnl3-3.4.0/src/nl-classid-lookup.c:53:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "hvr", long_opts, &optidx); data/libnl3-3.4.0/src/nl-cls-add.c:106:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "+qhvd:p:i:", data/libnl3-3.4.0/src/nl-cls-delete.c:126:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "qhvd:p:i:k:", long_opts, &optidx); data/libnl3-3.4.0/src/nl-cls-list.c:105:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "hvd:p:i:k:", long_opts, &optidx); data/libnl3-3.4.0/src/nl-fib-lookup.c:53:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "t:f:s:T:h", long_opts, &idx); data/libnl3-3.4.0/src/nl-link-list.c:76:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "hvn:i:", long_opts, &optidx); data/libnl3-3.4.0/src/nl-link-set.c:110:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "qhvn:i:", long_opts, &optidx); data/libnl3-3.4.0/src/nl-link-stats.c:103:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "lhvn:i:", long_opts, &optidx); data/libnl3-3.4.0/src/nl-monitor.c:97:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "f:h", long_opts, &optidx); data/libnl3-3.4.0/src/nl-neigh-add.c:82:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "qhva:l:d:", long_opts, &optidx); data/libnl3-3.4.0/src/nl-neigh-delete.c:100:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "qhva:l:d:", long_opts, &optidx); data/libnl3-3.4.0/src/nl-neigh-list.c:72:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "f:hva:l:d:", long_opts, &optidx); data/libnl3-3.4.0/src/nl-neightbl-list.c:54:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "f:hv", long_opts, &optidx); data/libnl3-3.4.0/src/nl-pktloc-lookup.c:127:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "hvl", long_opts, &optidx); data/libnl3-3.4.0/src/nl-qdisc-add.c:95:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "+qhvd:p:i:", data/libnl3-3.4.0/src/nl-qdisc-delete.c:103:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "qhvd:p:i:k:", long_opts, &optidx); data/libnl3-3.4.0/src/nl-qdisc-list.c:163:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "rhvd:p:i:k:", long_opts, &optidx); data/libnl3-3.4.0/src/nl-route-add.c:102:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "qhvd:n:t:", long_opts, &optidx); data/libnl3-3.4.0/src/nl-route-delete.c:133:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "iqhvd:n:t:", long_opts, &optidx); data/libnl3-3.4.0/src/nl-route-list.c:101:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "cf:hvd:n:t:", long_opts, &optidx); data/libnl3-3.4.0/src/nl-rule-list.c:64:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "f:hv", long_opts, &optidx); data/libnl3-3.4.0/src/nl-tctree-list.c:153:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "f:hv", long_opts, &optidx); data/libnl3-3.4.0/include/linux-private/linux/can/netlink.h:39: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[16]; /* Name of the CAN controller hardware */ data/libnl3-3.4.0/include/linux-private/linux/if_arp.h:118:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char arp_dev[16]; data/libnl3-3.4.0/include/linux-private/linux/if_arp.h:152: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 ar_sha[ETH_ALEN]; /* sender hardware address */ data/libnl3-3.4.0/include/linux-private/linux/if_arp.h:153: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 ar_sip[4]; /* sender IP address */ data/libnl3-3.4.0/include/linux-private/linux/if_arp.h:154: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 ar_tha[ETH_ALEN]; /* target hardware address */ data/libnl3-3.4.0/include/linux-private/linux/if_arp.h:155: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 ar_tip[4]; /* target IP address */ data/libnl3-3.4.0/include/linux-private/linux/if_ether.h:121: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 h_dest[ETH_ALEN]; /* destination eth addr */ data/libnl3-3.4.0/include/linux-private/linux/if_ether.h:122: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 h_source[ETH_ALEN]; /* source ether addr */ data/libnl3-3.4.0/include/linux-private/linux/if_tunnel.h:31: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[IFNAMSIZ]; data/libnl3-3.4.0/include/linux-private/linux/if_vlan.h:49: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 device1[24]; data/libnl3-3.4.0/include/linux-private/linux/if_vlan.h:52: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 device2[24]; data/libnl3-3.4.0/include/linux-private/linux/in.h:236: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. unsigned char __pad[__SOCK_SIZE__ - sizeof(short int) - data/libnl3-3.4.0/include/linux-private/linux/socket.h:16: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[_K_SS_MAXSIZE - sizeof(unsigned short)]; data/libnl3-3.4.0/include/linux-private/linux/xfrm.h:33: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 ctx_str[0]; data/libnl3-3.4.0/include/linux-private/linux/xfrm.h:98: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 alg_name[64]; data/libnl3-3.4.0/include/linux-private/linux/xfrm.h: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 alg_key[0]; data/libnl3-3.4.0/include/linux-private/linux/xfrm.h:104: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 alg_name[64]; data/libnl3-3.4.0/include/linux-private/linux/xfrm.h:107: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 alg_key[0]; data/libnl3-3.4.0/include/linux-private/linux/xfrm.h:111: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 alg_name[64]; data/libnl3-3.4.0/include/linux-private/linux/xfrm.h:114: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 alg_key[0]; data/libnl3-3.4.0/include/netlink-private/types.h:142: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 a_addr[0]; data/libnl3-3.4.0/include/netlink-private/types.h:193: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 l_name[IFNAMSIZ]; data/libnl3-3.4.0/include/netlink-private/types.h:207: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 l_qdisc[IFQDISCSIZ]; data/libnl3-3.4.0/include/netlink-private/types.h:231: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 l_phys_port_name[IFNAMSIZ]; data/libnl3-3.4.0/include/netlink-private/types.h:299: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 a_label[IFNAMSIZ]; data/libnl3-3.4.0/include/netlink-private/types.h:370: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 r_iifname[IFNAMSIZ]; data/libnl3-3.4.0/include/netlink-private/types.h: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 r_oifname[IFNAMSIZ]; data/libnl3-3.4.0/include/netlink-private/types.h:477: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 nt_name[NTBLNAMSIZ]; data/libnl3-3.4.0/include/netlink-private/types.h:598: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 cu_indev[IFNAMSIZ]; data/libnl3-3.4.0/include/netlink-private/types.h:613: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 cf_indev[IFNAMSIZ]; data/libnl3-3.4.0/include/netlink-private/types.h:843: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 name[GENL_NAMSIZ]; data/libnl3-3.4.0/include/netlink-private/types.h:852: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 gf_name[GENL_NAMSIZ]; data/libnl3-3.4.0/include/netlink-private/types.h:1183: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 alg_name[64]; data/libnl3-3.4.0/include/netlink-private/types.h:1186: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 alg_key[0]; data/libnl3-3.4.0/include/netlink-private/types.h:1190: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 alg_name[64]; data/libnl3-3.4.0/include/netlink-private/types.h:1193: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 alg_key[0]; data/libnl3-3.4.0/include/netlink-private/types.h:1197: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 alg_name[64]; data/libnl3-3.4.0/include/netlink-private/types.h:1199: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 alg_key[0]; data/libnl3-3.4.0/include/netlink-private/types.h:1259: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 ctx[0]; data/libnl3-3.4.0/lib/addr.c:236: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(addr->a_addr, buf, size); data/libnl3-3.4.0/lib/addr.c:664: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[256]; /* MPLS has N-labels at 4-bytes / label */ data/libnl3-3.4.0/lib/addr.c:739: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(&sai->sin_addr, addr->a_addr, 4); data/libnl3-3.4.0/lib/addr.c:757: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(&sa6->sin6_addr, addr->a_addr, 16); data/libnl3-3.4.0/lib/addr.c:799: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[INET6_ADDRSTRLEN+5]; data/libnl3-3.4.0/lib/addr.c:919: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(addr->a_addr, buf, len); data/libnl3-3.4.0/lib/addr.c:994: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[16]; data/libnl3-3.4.0/lib/attr.c:361: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(dest, nla_data(src), minlen); data/libnl3-3.4.0/lib/attr.c:390: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(dst, src, len); data/libnl3-3.4.0/lib/attr.c:513: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(nla_data(nla), data, datalen); data/libnl3-3.4.0/lib/cache_mngr.c:567: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[128]; data/libnl3-3.4.0/lib/data.c:67: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(data->d_data, buf, size); data/libnl3-3.4.0/lib/data.c:119: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(d_data + data->d_size, buf, size); data/libnl3-3.4.0/lib/error.c:15: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 *errmsg[NLE_MAX+1] = { data/libnl3-3.4.0/lib/fib_lookup/lookup.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 buf[256]; data/libnl3-3.4.0/lib/genl/family.c:121:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[64]; data/libnl3-3.4.0/lib/genl/genl.c: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(nlmsg_data(nlh), &hdr, sizeof(hdr)); data/libnl3-3.4.0/lib/handlers.c:37: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 flags[128]; data/libnl3-3.4.0/lib/handlers.c:38: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 type[32]; data/libnl3-3.4.0/lib/handlers.c:238: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(cb, orig, sizeof(*orig)); data/libnl3-3.4.0/lib/idiag/idiag.c:211:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). __ADD(TCP_CA_Open, open), data/libnl3-3.4.0/lib/idiag/idiag_msg_obj.c:411: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(&msg->idiag_tcpinfo, tinfo, sizeof(struct tcp_info)); data/libnl3-3.4.0/lib/idiag/idiag_msg_obj.c:420: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[64] = { 0 }; data/libnl3-3.4.0/lib/idiag/idiag_msg_obj.c:434: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[64], buf2[64]; data/libnl3-3.4.0/lib/idiag/idiag_msg_obj.c:467: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[64]; data/libnl3-3.4.0/lib/idiag/idiag_req_obj.c:131: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[64] = { 0 }; data/libnl3-3.4.0/lib/idiag/idiag_req_obj.c:143: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[64]; data/libnl3-3.4.0/lib/msg.c:391: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(nm->nm_nlh, hdr, hdr->nlmsg_len); data/libnl3-3.4.0/lib/msg.c:454: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(tmp, data, len); data/libnl3-3.4.0/lib/msg.c:605: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(&msg->nm_src, addr, sizeof(*addr)); data/libnl3-3.4.0/lib/msg.c:615: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(&msg->nm_dst, addr, sizeof(*addr)); data/libnl3-3.4.0/lib/msg.c:625: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(&msg->nm_creds, creds, sizeof(*creds)); data/libnl3-3.4.0/lib/msg.c:693: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 s[32]; data/libnl3-3.4.0/lib/msg.c:767: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 ascii[21] = {0}; data/libnl3-3.4.0/lib/msg.c:802: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[128]; data/libnl3-3.4.0/lib/netfilter/ct_obj.c:110: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[64]; data/libnl3-3.4.0/lib/netfilter/ct_obj.c:179:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[64]; data/libnl3-3.4.0/lib/netfilter/ct_obj.c:217: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[64]; data/libnl3-3.4.0/lib/netfilter/exp_obj.c:161: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[64]; data/libnl3-3.4.0/lib/netfilter/exp_obj.c:189: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[64]; data/libnl3-3.4.0/lib/netfilter/exp_obj.c:239: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[64]; data/libnl3-3.4.0/lib/netfilter/log_msg_obj.c:77: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[64]; data/libnl3-3.4.0/lib/netfilter/log_msg_obj.c:327: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(msg->log_msg_hwaddr, hwaddr, len); data/libnl3-3.4.0/lib/netfilter/log_msg_obj.c:349: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(msg->log_msg_payload, payload, len); data/libnl3-3.4.0/lib/netfilter/log_obj.c:32: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[64]; data/libnl3-3.4.0/lib/netfilter/queue_msg_obj.c: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 buf[64]; data/libnl3-3.4.0/lib/netfilter/queue_msg_obj.c:384: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(msg->queue_msg_hwaddr, hwaddr, len); data/libnl3-3.4.0/lib/netfilter/queue_msg_obj.c:412:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(new_payload, payload, len); data/libnl3-3.4.0/lib/netfilter/queue_obj.c:34: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[64]; data/libnl3-3.4.0/lib/nl.c:383: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[CMSG_SPACE(sizeof(struct ucred))]; data/libnl3-3.4.0/lib/nl.c:404: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(CMSG_DATA(cmsg), creds, sizeof(struct ucred)); data/libnl3-3.4.0/lib/nl.c:785: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(tmpcreds, CMSG_DATA(cmsg), sizeof(*tmpcreds)); data/libnl3-3.4.0/lib/object.c:134: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((void *)new + doff, (void *)obj + doff, size); data/libnl3-3.4.0/lib/route/act.c:401: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 kind[TCKINDSIZ]; data/libnl3-3.4.0/lib/route/act/gact.c: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(&dst->g_parm, &src->g_parm, sizeof(src->g_parm)); data/libnl3-3.4.0/lib/route/act/mirred.c:56: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->m_parm, &src->m_parm, sizeof(src->m_parm)); data/libnl3-3.4.0/lib/route/act/skbedit.c:74: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, src, sizeof(*src)); data/libnl3-3.4.0/lib/route/addr.c:372: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[128]; data/libnl3-3.4.0/lib/route/addr.c:411: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[128]; data/libnl3-3.4.0/lib/route/class.c:33: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[32]; data/libnl3-3.4.0/lib/route/classid.c:185:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[64] = { 0 }; data/libnl3-3.4.0/lib/route/classid.c:196: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(name, str, len); data/libnl3-3.4.0/lib/route/classid.c:315: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[256], *path; data/libnl3-3.4.0/lib/route/classid.c:331: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). if (!(fd = fopen(path, "re"))) { data/libnl3-3.4.0/lib/route/classid.c:405: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). if (!(fd = fopen(path, "ae"))) { data/libnl3-3.4.0/lib/route/cls.c:352: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[32]; data/libnl3-3.4.0/lib/route/cls/basic.c:107: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[32]; data/libnl3-3.4.0/lib/route/cls/ematch/cmp.c:28: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(rtnl_ematch_data(e), cfg, sizeof(*cfg)); data/libnl3-3.4.0/lib/route/cls/ematch/cmp.c:38: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(rtnl_ematch_data(e), data, len); data/libnl3-3.4.0/lib/route/cls/ematch/container.c:25: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(e->e_data, data, sizeof(uint32_t)); data/libnl3-3.4.0/lib/route/cls/ematch/meta.c:56:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(value + 1, data, len); data/libnl3-3.4.0/lib/route/cls/ematch/meta.c:234: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[32]; data/libnl3-3.4.0/lib/route/cls/ematch/meta.c:272: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[32]; data/libnl3-3.4.0/lib/route/cls/ematch/nbyte.c:92:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&n->cfg, data, hdrlen); data/libnl3-3.4.0/lib/route/cls/ematch/nbyte.c:97: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(n->pattern, data + hdrlen, plen); data/libnl3-3.4.0/lib/route/cls/ematch/text.c:110: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(&t->cfg, data, hdrlen); data/libnl3-3.4.0/lib/route/cls/ematch/text.c:119: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(t->pattern, data + hdrlen, t->cfg.pattern_len); data/libnl3-3.4.0/lib/route/cls/ematch/text.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 buf[64]; data/libnl3-3.4.0/lib/route/cls/fw.c:115:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[32]; data/libnl3-3.4.0/lib/route/cls/u32.c:199: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(dst->cu_act, src->cu_act, sizeof(struct rtnl_act)); data/libnl3-3.4.0/lib/route/cls/u32.c:215: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[32]; data/libnl3-3.4.0/lib/route/link.c:584: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(&real_link_policy, rtln_link_policy, sizeof(rtln_link_policy)); data/libnl3-3.4.0/lib/route/link.c:611: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(&real_link_policy[IFLA_PROTINFO], data/libnl3-3.4.0/lib/route/link.c:824: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[128]; data/libnl3-3.4.0/lib/route/link.c:884: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[64]; data/libnl3-3.4.0/lib/route/link.c:952: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 *unit, fmt[64]; data/libnl3-3.4.0/lib/route/link.c:962:2: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(fmt, " RX %X.2f %s %10" PRIu64 " %10" PRIu64 " %10" PRIu64 " %10" PRIu64 " %10" PRIu64 "\n"); data/libnl3-3.4.0/lib/route/link.c:974:2: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(fmt, " TX %X.2f %s %10" PRIu64 " %10" PRIu64 " %10" PRIu64 " %10" PRIu64 " %10" PRIu64 "\n"); data/libnl3-3.4.0/lib/route/link/bridge.c:100: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(bd, data, sizeof(*bd)); data/libnl3-3.4.0/lib/route/link/bridge.c:398: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 hbuf[32]; data/libnl3-3.4.0/lib/route/link/bridge.c:408:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[256]; data/libnl3-3.4.0/lib/route/link/can.c:199: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 [64]; data/libnl3-3.4.0/lib/route/link/can.c:209: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 [64]; data/libnl3-3.4.0/lib/route/link/inet.c:85: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(id, data, sizeof(*id)); data/libnl3-3.4.0/lib/route/link/inet.c:190: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[64]; data/libnl3-3.4.0/lib/route/link/inet6.c:46: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(i6, data, sizeof(*i6)); data/libnl3-3.4.0/lib/route/link/inet6.c:323: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[64], buf2[64]; data/libnl3-3.4.0/lib/route/link/ip6tnl.c:220: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, addr[INET6_ADDRSTRLEN]; data/libnl3-3.4.0/lib/route/link/ip6tnl.c:302: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(ip6_tnl_dst, ip6_tnl_src, sizeof(struct ip6_tnl_info)); data/libnl3-3.4.0/lib/route/link/ip6tnl.c:428: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(&ip6_tnl->local, addr, sizeof(struct in6_addr)); data/libnl3-3.4.0/lib/route/link/ip6tnl.c:446: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, &ip6_tnl->local, sizeof(struct in6_addr)); data/libnl3-3.4.0/lib/route/link/ip6tnl.c:464: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(&ip6_tnl->remote, addr, sizeof(struct in6_addr)); data/libnl3-3.4.0/lib/route/link/ip6tnl.c:482: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, &ip6_tnl->remote, sizeof(struct in6_addr)); data/libnl3-3.4.0/lib/route/link/ipgre.c:228: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, addr[INET_ADDRSTRLEN]; data/libnl3-3.4.0/lib/route/link/ipgre.c:313: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(ipgre_dst, ipgre_src, sizeof(struct ipgre_info)); data/libnl3-3.4.0/lib/route/link/ipgre.c:334: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(ipgre_dst, ipgre_src, sizeof(struct ipgre_info)); data/libnl3-3.4.0/lib/route/link/ipip.c:183: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, addr[INET_ADDRSTRLEN]; data/libnl3-3.4.0/lib/route/link/ipip.c:248: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(ipip_dst, ipip_src, sizeof(struct ipip_info)); data/libnl3-3.4.0/lib/route/link/ipvlan.c:102: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[64]; data/libnl3-3.4.0/lib/route/link/ipvlan.c:124: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(vdst, vsrc, sizeof(struct ipvlan_info)); data/libnl3-3.4.0/lib/route/link/ipvti.c:173: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, addr[INET_ADDRSTRLEN]; data/libnl3-3.4.0/lib/route/link/ipvti.c:233: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(ipvti_dst, ipvti_src, sizeof(struct ipvti_info)); data/libnl3-3.4.0/lib/route/link/macsec.c:214:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "replay_protect on window %d", window); data/libnl3-3.4.0/lib/route/link/macsec.c:216:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "replay_protect off"); data/libnl3-3.4.0/lib/route/link/macsec.c:255:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(tmp, " %d", info->encoding_sa); data/libnl3-3.4.0/lib/route/link/macsec.c:263: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/libnl3-3.4.0/lib/route/link/macsec.c:271: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/libnl3-3.4.0/lib/route/link/macsec.c:294: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(copy, info, sizeof(struct macsec_info)); data/libnl3-3.4.0/lib/route/link/macvlan.c:163: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[64]; data/libnl3-3.4.0/lib/route/link/macvlan.c:202: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(vdst, vsrc, sizeof(struct macvlan_info)); data/libnl3-3.4.0/lib/route/link/ppp.c:106: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(vdst, vsrc, sizeof(struct ppp_info)); data/libnl3-3.4.0/lib/route/link/sit.c:251: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, addr[INET_ADDRSTRLEN], addr6[INET6_ADDRSTRLEN]; data/libnl3-3.4.0/lib/route/link/sit.c:347: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(sit_dst, sit_src, sizeof(struct sit_info)); data/libnl3-3.4.0/lib/route/link/sriov.c:108:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(d_vf, s_vf, sizeof(*s_vf)); data/libnl3-3.4.0/lib/route/link/sriov.c:126: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(dst_vlans, src_vlans, sizeof(nl_vf_vlans_t)); data/libnl3-3.4.0/lib/route/link/sriov.c:142: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[64]; data/libnl3-3.4.0/lib/route/link/sriov.c:169: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[64]; data/libnl3-3.4.0/lib/route/link/sriov.c:391: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(vf_mac.mac, nl_addr_get_binary_addr(vf_data->vf_lladdr), data/libnl3-3.4.0/lib/route/link/vlan.c:213: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[64]; data/libnl3-3.4.0/lib/route/link/vlan.c:278: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(vdst->vi_egress_qos, vsrc->vi_egress_qos, data/libnl3-3.4.0/lib/route/link/vrf.c:116: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(vdst, vsrc, sizeof(struct vrf_info)); data/libnl3-3.4.0/lib/route/link/vxlan.c:318: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, addr[INET6_ADDRSTRLEN]; data/libnl3-3.4.0/lib/route/link/vxlan.c:524: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(vdst, vsrc, sizeof(struct vxlan_info)); data/libnl3-3.4.0/lib/route/link/vxlan.c:1191: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(range, &vxi->vxi_port_range, sizeof(*range)); data/libnl3-3.4.0/lib/route/neigh.c:215: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 n_addr[0]; data/libnl3-3.4.0/lib/route/neigh.c:218: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[INET6_ADDRSTRLEN+5]; data/libnl3-3.4.0/lib/route/neigh.c:248:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(nkey->n_addr, data/libnl3-3.4.0/lib/route/neigh.c:461: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 dst[INET6_ADDRSTRLEN+5], lladdr[INET6_ADDRSTRLEN+5]; data/libnl3-3.4.0/lib/route/neigh.c:464: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 state[128], flags[64]; data/libnl3-3.4.0/lib/route/neigh.c:502: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 rtn_type[32]; data/libnl3-3.4.0/lib/route/neightbl.c:243:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[32]; data/libnl3-3.4.0/lib/route/neightbl.c:258: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 rt[32], rt2[32]; data/libnl3-3.4.0/lib/route/neightbl.c:271: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 x[32], y[32], z[32]; data/libnl3-3.4.0/lib/route/netconf.c:195: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[64]; data/libnl3-3.4.0/lib/route/nexthop.c:147: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[128]; data/libnl3-3.4.0/lib/route/nexthop.c:187: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[128]; data/libnl3-3.4.0/lib/route/nh_encap_mpls.c:17: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[256]; data/libnl3-3.4.0/lib/route/pktloc.c:112: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). if (!(fd = fopen(path, "re"))) { data/libnl3-3.4.0/lib/route/qdisc/cbq.c:118: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 *unit, buf[32]; data/libnl3-3.4.0/lib/route/qdisc/hfsc.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 buf[64]; data/libnl3-3.4.0/lib/route/qdisc/htb.c:120:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[64]; data/libnl3-3.4.0/lib/route/qdisc/htb.c:239: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(&opts.ceil, &opts.rate, sizeof(struct tc_ratespec)); data/libnl3-3.4.0/lib/route/qdisc/netem.c: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 buf[32]; data/libnl3-3.4.0/lib/route/qdisc/netem.c:886: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[NAME_MAX]; data/libnl3-3.4.0/lib/route/qdisc/netem.c:905:12: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((f = fopen(name, "re"))) data/libnl3-3.4.0/lib/route/qdisc/prio.c:88: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 a[32]; data/libnl3-3.4.0/lib/route/qdisc/prio.c:185: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(prio->qp_priomap, priomap, len); data/libnl3-3.4.0/lib/route/route_obj.c:138: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[64]; data/libnl3-3.4.0/lib/route/route_obj.c:215: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[256]; data/libnl3-3.4.0/lib/route/route_obj.c:317: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 rt_addr[0]; data/libnl3-3.4.0/lib/route/route_obj.c:320: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[INET6_ADDRSTRLEN+5]; data/libnl3-3.4.0/lib/route/route_obj.c:340: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(rkey->rt_addr, nl_addr_get_binary_addr(addr), data/libnl3-3.4.0/lib/route/route_obj.c:481: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[INET6_ADDRSTRLEN+5]; data/libnl3-3.4.0/lib/route/route_obj.c:1004: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(via->rtvia_addr, nl_addr_get_binary_addr(addr), alen); data/libnl3-3.4.0/lib/route/rule.c:203: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[128]; data/libnl3-3.4.0/lib/route/tc.c:66: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 kind[TCKINDSIZ]; data/libnl3-3.4.0/lib/route/tc.c:851: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[32]; data/libnl3-3.4.0/lib/route/tc.c:1084:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[64]; data/libnl3-3.4.0/lib/utils.c:78: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[128]; data/libnl3-3.4.0/lib/utils.c:80: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). fd = fopen(path, "re"); data/libnl3-3.4.0/lib/utils.c:438: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[FILENAME_MAX]; data/libnl3-3.4.0/lib/utils.c:479: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). if ((fd = fopen(name, "re"))) { data/libnl3-3.4.0/lib/utils.c:598:15: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char *units[5] = {"d", "h", "m", "s", "msec"}; data/libnl3-3.4.0/lib/utils.c:1145:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[64]; data/libnl3-3.4.0/lib/xfrm/ae.c:179: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 (dst->replay_state_esn, src->replay_state_esn, len); data/libnl3-3.4.0/lib/xfrm/ae.c:292: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 dst[INET6_ADDRSTRLEN+5], src[INET6_ADDRSTRLEN+5]; data/libnl3-3.4.0/lib/xfrm/ae.c:294: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 flags[128], buf[128]; data/libnl3-3.4.0/lib/xfrm/ae.c:377: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 (&ae_id.sa_id.daddr, nl_addr_get_binary_addr (tmpl->sa_id.daddr), sizeof (uint8_t) * nl_addr_get_len (tmpl->sa_id.daddr)); data/libnl3-3.4.0/lib/xfrm/ae.c:383: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 (&ae_id.saddr, nl_addr_get_binary_addr (tmpl->saddr), sizeof (uint8_t) * nl_addr_get_len (tmpl->saddr)); data/libnl3-3.4.0/lib/xfrm/ae.c:549: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 (ae->replay_state_esn->bmp, esn->bmp, sizeof (uint32_t) * esn->bmp_len); data/libnl3-3.4.0/lib/xfrm/ae.c:607: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 (&ae_id.sa_id.daddr, nl_addr_get_binary_addr (daddr), sizeof (uint8_t) * nl_addr_get_len (daddr)); data/libnl3-3.4.0/lib/xfrm/ae.c:930: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 (bmp, ae->replay_state_esn->bmp, ae->replay_state_esn->bmp_len * sizeof (uint32_t)); data/libnl3-3.4.0/lib/xfrm/ae.c:960: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 (ae->replay_state_esn->bmp, bmp, bmp_len * sizeof (uint32_t)); data/libnl3-3.4.0/lib/xfrm/lifetime.c:100: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 ((void*)new, (void*)ltime, sizeof (struct xfrmnl_ltime_cfg)); data/libnl3-3.4.0/lib/xfrm/sa.c:154:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((void *)dst->aead, (void *)src->aead, len); data/libnl3-3.4.0/lib/xfrm/sa.c:162: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 ((void *)dst->auth, (void *)src->auth, len); data/libnl3-3.4.0/lib/xfrm/sa.c:170: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 ((void *)dst->crypt, (void *)src->crypt, len); data/libnl3-3.4.0/lib/xfrm/sa.c:178: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 ((void *)dst->comp, (void *)src->comp, len); data/libnl3-3.4.0/lib/xfrm/sa.c:186: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 ((void *)dst->encap, (void *)src->encap, len); data/libnl3-3.4.0/lib/xfrm/sa.c:198: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 ((void *)dst->sec_ctx, (void *)src->sec_ctx, len); data/libnl3-3.4.0/lib/xfrm/sa.c:206: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 ((void *)dst->replay_state_esn, (void *)src->replay_state_esn, len); data/libnl3-3.4.0/lib/xfrm/sa.c:393: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 dst[INET6_ADDRSTRLEN+5], src[INET6_ADDRSTRLEN+5]; data/libnl3-3.4.0/lib/xfrm/sa.c:395: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 flags[128], mode[128]; data/libnl3-3.4.0/lib/xfrm/sa.c:414:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (flags, "INF"); data/libnl3-3.4.0/lib/xfrm/sa.c:418:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (mode, "INF"); data/libnl3-3.4.0/lib/xfrm/sa.c:423:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (flags, "INF"); data/libnl3-3.4.0/lib/xfrm/sa.c:427:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (mode, "INF"); data/libnl3-3.4.0/lib/xfrm/sa.c:772: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 ((void *)sa->aead, (void *)aead, len); data/libnl3-3.4.0/lib/xfrm/sa.c:784: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 ((void *)sa->auth, (void *)auth, len); data/libnl3-3.4.0/lib/xfrm/sa.c:797: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(sa->auth->alg_key, auth->alg_key, (auth->alg_key_len + 7) / 8); data/libnl3-3.4.0/lib/xfrm/sa.c:810: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 ((void *)sa->crypt, (void *)crypt, len); data/libnl3-3.4.0/lib/xfrm/sa.c:822: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 ((void *)sa->comp, (void *)comp, len); data/libnl3-3.4.0/lib/xfrm/sa.c:878: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 (sa->sec_ctx, sec_ctx, len); data/libnl3-3.4.0/lib/xfrm/sa.c:900: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 ((void *)sa->replay_state_esn, (void *)esn, len); data/libnl3-3.4.0/lib/xfrm/sa.c:1038: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 (&sa_id.daddr, nl_addr_get_binary_addr (daddr), sizeof (uint8_t) * nl_addr_get_len (daddr)); data/libnl3-3.4.0/lib/xfrm/sa.c:1111: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 ((void*)&sa_info.sel.daddr, (void*)nl_addr_get_binary_addr (addr), sizeof (uint8_t) * nl_addr_get_len (addr)); data/libnl3-3.4.0/lib/xfrm/sa.c:1113: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 ((void*)&sa_info.sel.saddr, (void*)nl_addr_get_binary_addr (addr), sizeof (uint8_t) * nl_addr_get_len (addr)); data/libnl3-3.4.0/lib/xfrm/sa.c:1126: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 (&sa_info.id.daddr, nl_addr_get_binary_addr (tmpl->id.daddr), sizeof (uint8_t) * nl_addr_get_len (tmpl->id.daddr)); data/libnl3-3.4.0/lib/xfrm/sa.c:1131: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 (&sa_info.saddr, nl_addr_get_binary_addr (tmpl->saddr), sizeof (uint8_t) * nl_addr_get_len (tmpl->saddr)); data/libnl3-3.4.0/lib/xfrm/sa.c:1194: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(auth->alg_key, tmpl->auth->alg_key, (tmpl->auth->alg_key_len + 7) / 8); data/libnl3-3.4.0/lib/xfrm/sa.c:1225: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 (&encap_tmpl->encap_oa, nl_addr_get_binary_addr (tmpl->encap->encap_oa), sizeof (uint8_t) * nl_addr_get_len (tmpl->encap->encap_oa)); data/libnl3-3.4.0/lib/xfrm/sa.c:1335: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 (&sa_id.daddr, nl_addr_get_binary_addr (tmpl->id.daddr), data/libnl3-3.4.0/lib/xfrm/sa.c:1672: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 (key, sa->aead->alg_key, ((sa->aead->alg_key_len + 7)/8)); data/libnl3-3.4.0/lib/xfrm/sa.c:1695: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 (sa->aead->alg_key, key, keysize); data/libnl3-3.4.0/lib/xfrm/sa.c:1729: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 (key, sa->auth->alg_key, (sa->auth->alg_key_len + 7)/8); data/libnl3-3.4.0/lib/xfrm/sa.c:1752: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 (sa->auth->alg_key, key, keysize); data/libnl3-3.4.0/lib/xfrm/sa.c:1783: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 (key, sa->crypt->alg_key, ((sa->crypt->alg_key_len + 7)/8)); data/libnl3-3.4.0/lib/xfrm/sa.c:1805: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 (sa->crypt->alg_key, key, keysize); data/libnl3-3.4.0/lib/xfrm/sa.c:1836: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 (key, sa->comp->alg_key, ((sa->comp->alg_key_len + 7)/8)); data/libnl3-3.4.0/lib/xfrm/sa.c:1858: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 (sa->comp->alg_key, key, keysize); data/libnl3-3.4.0/lib/xfrm/sa.c:1997: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 (ctx_str, sa->sec_ctx->ctx, sa->sec_ctx->ctx_len); data/libnl3-3.4.0/lib/xfrm/sa.c:2033: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 (sa->sec_ctx->ctx, ctx_str, len); data/libnl3-3.4.0/lib/xfrm/sa.c:2118: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 (bmp, sa->replay_state_esn->bmp, sa->replay_state_esn->bmp_len * sizeof (uint32_t)); data/libnl3-3.4.0/lib/xfrm/sa.c:2147: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 (sa->replay_state_esn->bmp, bmp, bmp_len * sizeof (uint32_t)); data/libnl3-3.4.0/lib/xfrm/selector.c:104:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(new, sel, sizeof(struct xfrmnl_sel)); data/libnl3-3.4.0/lib/xfrm/selector.c:180: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 dst[INET6_ADDRSTRLEN+5], src[INET6_ADDRSTRLEN+5]; data/libnl3-3.4.0/lib/xfrm/selector.c:181: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 [128]; data/libnl3-3.4.0/lib/xfrm/sp.c:126: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 ((void *)dst->sec_ctx, (void *)src->sec_ctx, len); data/libnl3-3.4.0/lib/xfrm/sp.c:318: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 dir[32], action[32], share[32], flags[32]; data/libnl3-3.4.0/lib/xfrm/sp.c:319: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 dst[INET6_ADDRSTRLEN+5], src[INET6_ADDRSTRLEN+5]; data/libnl3-3.4.0/lib/xfrm/sp.c:344:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (dir, "INF"); data/libnl3-3.4.0/lib/xfrm/sp.c:348:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (action, "INF"); data/libnl3-3.4.0/lib/xfrm/sp.c:352:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (flags, "INF"); data/libnl3-3.4.0/lib/xfrm/sp.c:356:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (share, "INF"); data/libnl3-3.4.0/lib/xfrm/sp.c:608: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 ((void *)sp->sec_ctx, (void *)ctx, len); data/libnl3-3.4.0/lib/xfrm/sp.c:614: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 ((void *)&sp->uptype, (void *)up, sizeof (struct xfrm_userpolicy_type)); data/libnl3-3.4.0/lib/xfrm/sp.c:777: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 ((void*)&sp_info.sel.daddr, (void*)nl_addr_get_binary_addr (addr), sizeof (uint8_t) * nl_addr_get_len (addr)); data/libnl3-3.4.0/lib/xfrm/sp.c:779: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 ((void*)&sp_info.sel.saddr, (void*)nl_addr_get_binary_addr (addr), sizeof (uint8_t) * nl_addr_get_len (addr)); data/libnl3-3.4.0/lib/xfrm/sp.c:856: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 ((void *)&tmpl->id.daddr, nl_addr_get_binary_addr (addr), data/libnl3-3.4.0/lib/xfrm/sp.c:862: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 ((void *)&tmpl->saddr, nl_addr_get_binary_addr (addr), data/libnl3-3.4.0/lib/xfrm/sp.c:974: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 ((void*)&spid.sel.daddr, (void*)nl_addr_get_binary_addr (addr), sizeof (uint8_t) * nl_addr_get_len (addr)); data/libnl3-3.4.0/lib/xfrm/sp.c:976: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 ((void*)&spid.sel.saddr, (void*)nl_addr_get_binary_addr (addr), sizeof (uint8_t) * nl_addr_get_len (addr)); data/libnl3-3.4.0/lib/xfrm/sp.c:1238: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 ((void *)ctx_str, (void *)sp->sec_ctx->ctx, sp->sec_ctx->ctx_len); data/libnl3-3.4.0/lib/xfrm/sp.c:1272: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 ((void *)sp->sec_ctx->ctx, (void *)ctx_str, ctx_len); data/libnl3-3.4.0/lib/xfrm/template.c:98:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(new, utmpl, sizeof(struct xfrmnl_user_tmpl)); data/libnl3-3.4.0/lib/xfrm/template.c:165: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 dst[INET6_ADDRSTRLEN+5], src[INET6_ADDRSTRLEN+5]; data/libnl3-3.4.0/lib/xfrm/template.c:166: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 [128]; data/libnl3-3.4.0/src/lib/utils.c:167:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[32] = { 0 }; data/libnl3-3.4.0/src/lib/utils.c:229: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 path[FILENAME_MAX+1]; data/libnl3-3.4.0/src/nf-log.c:86: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). nfnl_log_set_group(log, atoi(argv[2])); data/libnl3-3.4.0/src/nf-log.c:100: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). copy_range = atoi(argv[4]); data/libnl3-3.4.0/src/nf-queue.c:98:30: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). nfnl_queue_set_group(queue, atoi(argv[2])); data/libnl3-3.4.0/src/nf-queue.c:112: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). copy_range = atoi(argv[4]); data/libnl3-3.4.0/src/nl-addr-list.c:59: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[128], pfx[32], *s; data/libnl3-3.4.0/src/nl-classid-lookup.c:80:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[64]; data/libnl3-3.4.0/src/nl-link-ifindex2name.c:27: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[IFNAMSIZ]; data/libnl3-3.4.0/src/nl-link-stats.c:36: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[64]; data/libnl3-3.4.0/src/nl-link-stats.c:50: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[64]; data/libnl3-3.4.0/src/nl-list-caches.c:33: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[64]; data/libnl3-3.4.0/src/nl-list-caches.c:47: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. const char *dump_names[NL_DUMP_MAX+1] = { data/libnl3-3.4.0/src/nl-list-sockets.c:19: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[2048], p[64]; data/libnl3-3.4.0/src/nl-list-sockets.c:21: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). fd = fopen(PROC_NETLINK, "re"); data/libnl3-3.4.0/src/nl-pktloc-lookup.c:75: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[16]; data/libnl3-3.4.0/src/nl-util-addr.c:17: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 host[256]; data/libnl3-3.4.0/tests/check-addr.c:58: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 baddr[4] = { 0x1, 0x2, 0x3, 0x4 }; data/libnl3-3.4.0/tests/check-addr.c:59: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 baddr2[6] = { 0x1, 0x2, 0x3, 0x4, 0x5, 0x6 }; data/libnl3-3.4.0/tests/check-addr.c:108: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[128]; data/libnl3-3.4.0/tests/check-addr.c:149: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[128]; data/libnl3-3.4.0/tests/test-complex-HTB-with-hash-filters.c:509: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 chashlink[16]=""; data/libnl3-3.4.0/tests/test-complex-HTB-with-hash-filters.c:613: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(chashlink, "1:"); data/libnl3-3.4.0/tests/test-u32-filter-with-actions.c: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 chashlink[16]=""; data/libnl3-3.4.0/tests/test-u32-filter-with-actions.c:324: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(chashlink, "1:"); data/libnl3-3.4.0/include/netlink/attr.h:263: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). NLA_PUT(msg, attrtype, (int) strlen(value) + 1, value) data/libnl3-3.4.0/lib/addr.c:1028:5: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat(buf, tmp, size - strlen(buf) - 1); data/libnl3-3.4.0/lib/addr.c:1028:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strncat(buf, tmp, size - strlen(buf) - 1); data/libnl3-3.4.0/lib/addr.c:1037:3: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat(buf, tmp, size - strlen(buf) - 1); data/libnl3-3.4.0/lib/addr.c:1037: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). strncat(buf, tmp, size - strlen(buf) - 1); data/libnl3-3.4.0/lib/attr.c:425: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). int len = strlen(str) + 1; data/libnl3-3.4.0/lib/attr.c:788:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return nla_put(msg, attrtype, strlen(str) + 1, str); data/libnl3-3.4.0/lib/genl/family.c:260:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(family->gf_name, name, GENL_NAMSIZ-1); data/libnl3-3.4.0/lib/genl/family.c:376:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(grp->name, name, GENL_NAMSIZ - 1); data/libnl3-3.4.0/lib/genl/mngt.c:129:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buf, cmd->c_name, len - 1); data/libnl3-3.4.0/lib/genl/mngt.c:135: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(buf, "unknown", len - 1); data/libnl3-3.4.0/lib/msg.c:675:3: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat(buf, #f, len - strlen(buf) - 1); \ data/libnl3-3.4.0/lib/msg.c:675: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). strncat(buf, #f, len - strlen(buf) - 1); \ data/libnl3-3.4.0/lib/msg.c:677:4: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is low because the source is a constant character. strncat(buf, ",", len - strlen(buf) - 1); \ data/libnl3-3.4.0/lib/msg.c:677: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). strncat(buf, ",", len - strlen(buf) - 1); \ data/libnl3-3.4.0/lib/msg.c:695:3: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat(buf, s, len - strlen(buf) - 1); data/libnl3-3.4.0/lib/msg.c:695: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). strncat(buf, s, len - strlen(buf) - 1); data/libnl3-3.4.0/lib/route/addr.c:844: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(label) > sizeof(addr->a_label) - 1) data/libnl3-3.4.0/lib/route/cls/ematch/text.c:94:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(t->cfg.algo, algo, sizeof(t->cfg.algo)); data/libnl3-3.4.0/lib/route/link.c:1469:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(dst, link->l_name, len - 1); data/libnl3-3.4.0/lib/route/link.c:1928:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(link->l_name, name, sizeof(link->l_name) - 1); data/libnl3-3.4.0/lib/route/link.c:2452:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(link->l_qdisc, name, sizeof(link->l_qdisc) - 1); data/libnl3-3.4.0/lib/route/link/inet6.c:376: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). offset = 23 - strlen(buf2); data/libnl3-3.4.0/lib/route/link/inet6.c:380:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for (x = strlen(buf); x < offset; x++) data/libnl3-3.4.0/lib/route/link/inet6.c:383:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(&buf[offset], buf2, strlen(buf2)); data/libnl3-3.4.0/lib/route/link/inet6.c:383: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). strncpy(&buf[offset], buf2, strlen(buf2)); data/libnl3-3.4.0/lib/route/link/sriov.c:1429: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(guid_s) != RTNL_VF_GUID_STR_LEN) data/libnl3-3.4.0/lib/route/neightbl.c:633:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(ntbl->nt_name, name, sizeof(ntbl->nt_name) - 1); data/libnl3-3.4.0/lib/route/qdisc/netem.c:900:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (test_suffix != NULL && strlen(test_suffix) == 5) data/libnl3-3.4.0/lib/route/qdisc/netem.c:901:3: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(dist_suffix, ""); data/libnl3-3.4.0/lib/route/rule.c:664: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(dev) > IFNAMSIZ-1) data/libnl3-3.4.0/lib/route/rule.c:682: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(dev) > IFNAMSIZ-1) data/libnl3-3.4.0/lib/route/tc.c:244:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(t->tc_kind, kind, sizeof(t->tc_kind) - 1); data/libnl3-3.4.0/lib/route/tc.c:522:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(tc->tc_kind, kind, sizeof(tc->tc_kind) - 1); data/libnl3-3.4.0/lib/utils.c:477: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(name, "/proc/net/psched", sizeof(name) - 1); data/libnl3-3.4.0/lib/utils.c:922:5: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is low because the source is a constant character. strncat(params->dp_buf, " ", data/libnl3-3.4.0/lib/utils.c:924: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). strlen(params->dp_buf) - 1); data/libnl3-3.4.0/lib/utils.c:943:5: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat(parms->dp_buf, buf, data/libnl3-3.4.0/lib/utils.c:945: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). strlen(parms->dp_buf) - 1); data/libnl3-3.4.0/lib/utils.c:1056:4: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat(buf, tbl[i].a, len - strlen(buf) - 1); data/libnl3-3.4.0/lib/utils.c:1056: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). strncat(buf, tbl[i].a, len - strlen(buf) - 1); data/libnl3-3.4.0/lib/utils.c:1058:5: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is low because the source is a constant character. strncat(buf, ",", len - strlen(buf) - 1); data/libnl3-3.4.0/lib/utils.c:1058: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). strncat(buf, ",", len - strlen(buf) - 1); data/libnl3-3.4.0/lib/utils.c:1118:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = t ? t - p : strlen(p); data/libnl3-3.4.0/lib/utils.c:1120:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (len == strlen(tbl[i].a) && data/libnl3-3.4.0/lib/xfrm/sa.c:1192:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(auth->alg_name, tmpl->auth->alg_name, sizeof(auth->alg_name)); data/libnl3-3.4.0/lib/xfrm/sa.c:1688: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 (alg_name) >= sizeof (sa->aead->alg_name) || (sa->aead = calloc (1, newlen)) == NULL) data/libnl3-3.4.0/lib/xfrm/sa.c:1745: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 (alg_name) >= sizeof (sa->auth->alg_name) || (sa->auth = calloc (1, newlen)) == NULL) data/libnl3-3.4.0/lib/xfrm/sa.c:1799: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 (alg_name) >= sizeof (sa->crypt->alg_name) || (sa->crypt = calloc (1, newlen)) == NULL) data/libnl3-3.4.0/lib/xfrm/sa.c:1852: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 (alg_name) >= sizeof (sa->comp->alg_name) || (sa->comp = calloc (1, newlen)) == NULL) data/libnl3-3.4.0/src/lib/link.c:106: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(arg) > IFALIASZ) ANALYSIS SUMMARY: Hits = 460 Lines analyzed = 92864 in approximately 2.51 seconds (36938 lines/second) Physical Source Lines of Code (SLOC) = 57965 Hits@level = [0] 316 [1] 51 [2] 311 [3] 55 [4] 43 [5] 0 Hits@level+ = [0+] 776 [1+] 460 [2+] 409 [3+] 98 [4+] 43 [5+] 0 Hits/KSLOC@level+ = [0+] 13.3874 [1+] 7.93582 [2+] 7.05598 [3+] 1.69068 [4+] 0.741827 [5+] 0 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.