trace: fix metadata dump
authorDavid Marchand <david.marchand@redhat.com>
Wed, 28 Oct 2020 21:02:48 +0000 (22:02 +0100)
committerDavid Marchand <david.marchand@redhat.com>
Thu, 29 Oct 2020 21:49:22 +0000 (22:49 +0100)
commitfd43b50113a84608a690acdeeb7fdd8c38be48b8
tree6560bdf467381ea70fe325a1e0e09f5edf3d9054
parent721cfcaf04cf2484b8388c99ad89441af248444d
trace: fix metadata dump

The ctf metadata is written to the metadata file without any check for
length, so this string must be null terminated.

Fixes: f1a099f5b1f1 ("trace: create CTF TDSL metadata in memory")

Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Sunil Kumar Kori <skori@mavell.com>
lib/librte_eal/common/eal_common_trace_ctf.c