aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-annotate.c
diff options
context:
space:
mode:
authorAdrian Hunter <[email protected]>2023-03-16 19:41:56 +0000
committerArnaldo Carvalho de Melo <[email protected]>2023-04-04 12:39:56 +0000
commitf5ceb159d30b87975a49b8a230ffa76bae6684b2 (patch)
tree799e9a43e84d5a9e583bd4ad68103c07ae2903ac /tools/perf/builtin-annotate.c
parentperf symbols: Fix unaligned access in get_x86_64_plt_disp() (diff)
downloadkernel-f5ceb159d30b87975a49b8a230ffa76bae6684b2.tar.gz
kernel-f5ceb159d30b87975a49b8a230ffa76bae6684b2.zip
perf tools: Avoid warning in do_realloc_array_as_needed()
do_realloc_array_as_needed() used memcpy() of zero size with a NULL pointer. Check the size first to avoid sanitize warning. Discovered using EXTRA_CFLAGS="-fsanitize=undefined -fsanitize=address". Reported-by: kernel test robot <[email protected]> Signed-off-by: Adrian Hunter <[email protected]> Acked-by: Ian Rogers <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Link: https://lore.kernel.org/oe-lkp/[email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/builtin-annotate.c')
0 files changed, 0 insertions, 0 deletions