commit | a12d94bef509cbf7a38a2391a2eceb53f22e2f85 | [log] [tgz] |
---|---|---|
author | Ian Rogers <[email protected]> | Thu Sep 26 15:00:18 2019 -0700 |
committer | Greg Kroah-Hartman <[email protected]> | Thu Oct 17 13:42:42 2019 -0700 |
tree | 4c270ca1cdaab780ea911bfa5a9faea82fc80563 | |
parent | e6b988d92005dd55bddb5945f02b90369be46cdf [diff] |
perf llvm: Don't access out-of-scope array commit 7d4c85b7035eb2f9ab217ce649dcd1bfaf0cacd3 upstream. The 'test_dir' variable is assigned to the 'release' array which is out-of-scope 3 lines later. Extend the scope of the 'release' array so that an out-of-scope array isn't accessed. Bug detected by clang's address sanitizer. Fixes: 07bc5c699a3d ("perf tools: Make fetch_kernel_version() publicly available") Cc: [email protected] # v4.4+ Signed-off-by: Ian Rogers <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Andi Kleen <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephane Eranian <[email protected]> Cc: Wang Nan <[email protected]> Link: http://lore.kernel.org/lkml/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>