iproute2/lib
Phil Sutter f63ed3e629 lib/ll_addr: improve ll_addr_n2a() a bit
Apart from making the code a bit more compact and efficient, this also
prevents a potential buffer overflow if the passed buffer is really too
small: Although correctly decrementing the size parameter passed to
snprintf, it could become negative which would then wrap since snprintf
uses (unsigned) size_t for the parameter.

Signed-off-by: Phil Sutter <phil@nwl.cc>
2016-03-27 10:37:35 -07:00
..
Makefile provide common json output formatter 2015-08-23 10:05:29 -07:00
color.c color: introduce color helpers and COLOR_CLEAR 2016-03-27 10:37:34 -07:00
coverity_model.c add coverity model file 2015-12-30 18:06:12 -08:00
dnet_ntop.c dnet: fix strict aliasing warnings 2010-07-23 12:30:48 -07:00
dnet_pton.c dnet: fix strict aliasing warnings 2010-07-23 12:30:48 -07:00
inet_proto.c lib: make string arguments const 2013-02-12 11:39:07 -08:00
ipx_ntop.c include needed files 2012-12-23 11:49:06 -08:00
ipx_pton.c include needed files 2012-12-23 11:49:06 -08:00
json_writer.c provide common json output formatter 2015-08-23 10:05:29 -07:00
libgenl.c libnetlink: add size argument to rtnl_talk 2015-05-27 13:00:21 -07:00
libnetlink.c libnetlink: Double the dump buffer size 2016-03-06 12:51:18 -08:00
ll_addr.c lib/ll_addr: improve ll_addr_n2a() a bit 2016-03-27 10:37:35 -07:00
ll_map.c netns: allow to dump and monitor nsid 2015-04-20 10:02:38 -07:00
ll_proto.c ip: iplink_vlan: add 802.1ad support 2013-06-21 08:59:24 -07:00
ll_types.c ll_types: add netlink ARPHRD 2014-08-29 00:13:22 -07:00
mpls_ntop.c add basic mpls support to iproute 2015-03-24 15:45:23 -07:00
mpls_pton.c add basic mpls support to iproute 2015-03-24 15:45:23 -07:00
names.c tc class: Ignore if default class name file does not exist 2015-04-07 08:31:56 -07:00
namespace.c lib/namespace: fix fd leakage in non-error case 2015-08-19 16:32:56 -07:00
rt_names.c iproute2: fix building with musl 2016-02-02 15:58:33 +11:00
utils.c utils: make rt_addr_n2a() non-reentrant by default 2016-03-27 10:37:34 -07:00