From 21c64e0895b4ad050474d417ccd1d43a30eb9ab9 Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Thu, 21 Nov 2019 19:00:11 -0500 Subject: [PATCH] bgpd: remove extra ecom attr ptr increment Copy paste leads to invalid read of 1 byte off the heap when converting extended community attributes into strings. Signed-off-by: Quentin Young --- bgpd/bgp_ecommunity.c | 1 - 1 file changed, 1 deletion(-) diff --git a/bgpd/bgp_ecommunity.c b/bgpd/bgp_ecommunity.c index 11f5a326df..942f0ae415 100644 --- a/bgpd/bgp_ecommunity.c +++ b/bgpd/bgp_ecommunity.c @@ -822,7 +822,6 @@ char *ecommunity_ecom2str(struct ecommunity *ecom, int format, int filter) == ECOMMUNITY_EVPN_SUBTYPE_ES_IMPORT_RT) { struct ethaddr mac; - pnt++; memcpy(&mac, pnt, ETH_ALEN); len = sprintf( str_buf + str_pnt, -- 2.39.5