]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
perf tools: Initialize output buffer in build_id__sprintf
authorJiri Olsa <jolsa@kernel.org>
Sun, 1 Nov 2020 23:31:02 +0000 (00:31 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 3 Nov 2020 12:14:45 +0000 (09:14 -0300)
commit6311951d4f8f28c43b554ff0719027884bedd7e3
tree75f2db97d40d52fdd64b4fad34ff48ddd1a106b4
parent86449b12f626a65d2a2ecfada1e024488471f9e2
perf tools: Initialize output buffer in build_id__sprintf

We display garbage for undefined build_id objects, because we don't
initialize the output buffer.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20201101233103.3537427-1-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/build-id.c