]> The Tcpdump Group git mirrors - tcpdump/commit
More bounds checking when fetching addresses and converting to strings.
authorGuy Harris <[email protected]>
Mon, 20 Jan 2020 03:55:38 +0000 (19:55 -0800)
committerGuy Harris <[email protected]>
Mon, 20 Jan 2020 03:55:38 +0000 (19:55 -0800)
commit306c2a0384af923a73bf234f3c8bc186ceff0b58
tree0598390b879d6e9a76ff3b906989a920222d2654
parent2cd0a90c24ccf01ad9a034d7d5a6a651c82a4785
More bounds checking when fetching addresses and converting to strings.

Replace more calls to ipaddr_string()/ip6addr_string() with calls to
GET_IPADDR_STRING()/GET_IP6ADDR_STRING() macros performing bounds
checking.

Add similar bounds-checking inline functions and macros to wrap
linkaddr_string(), etheraddr_string(), and isonsap_string() and convert
calls to them to use the macros as well.

Shuffle the inline functions in addrtoname.h around a bit, so that the
inline functions, external declarations, and macros are all in the same
order.
65 files changed:
addrtoname.h
print-802_11.c
print-ahcp.c
print-aodv.c
print-aoe.c
print-arp.c
print-atalk.c
print-babel.c
print-bgp.c
print-bootp.c
print-cdp.c
print-cfm.c
print-chdlc.c
print-dhcp6.c
print-dtp.c
print-dvmrp.c
print-egp.c
print-eigrp.c
print-ether.c
print-geonet.c
print-hncp.c
print-hsrp.c
print-icmp.c
print-icmp6.c
print-igmp.c
print-ip.c
print-ip6.c
print-ip6opts.c
print-isakmp.c
print-isoclns.c
print-juniper.c
print-lisp.c
print-lldp.c
print-lmp.c
print-loopback.c
print-lspping.c
print-lwapp.c
print-lwres.c
print-mobile.c
print-mobility.c
print-mptcp.c
print-msdp.c
print-msnlb.c
print-nfs.c
print-ntp.c
print-olsr.c
print-openflow-1.0.c
print-ospf.c
print-ospf6.c
print-pim.c
print-ppp.c
print-radius.c
print-rip.c
print-ripng.c
print-rpki-rtr.c
print-rrcp.c
print-rsvp.c
print-rt6.c
print-sflow.c
print-sll.c
print-slow.c
print-vqp.c
print-vrrp.c
print-vtp.c
print-wb.c