map: api: fix tag overflow and leak 70/24470/3
authorBenoît Ganne <bganne@cisco.com>
Tue, 21 Jan 2020 17:24:44 +0000 (18:24 +0100)
committerDamjan Marion <dmarion@me.com>
Mon, 27 Jan 2020 20:37:58 +0000 (20:37 +0000)
The 'tag' parameter is expected to be a NULL-terminated C-string in
callees:
 - make sure it is null-terminated in both API and CLI cases
 - do not allocate & copy the string into a non-NULL-terminated vector
   in API case
 - fix leak in CLI case

Type: fix

Change-Id: I221a489a226240548cdeb5e3663bbfb94eee4600
Signed-off-by: Benoît Ganne <bganne@cisco.com>

No differences found