]> git.ipfire.org Git - thirdparty/linux.git/commit
perf strlist: Don't write to const memory
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 27 Jan 2026 05:03:01 +0000 (02:03 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 27 Jan 2026 05:03:01 +0000 (02:03 -0300)
commit678ed6b707e4b2db250f255d2f959322896dae65
treec3fba3eba416a8037eb597b1c706d92582d0ef3b
parentb42868624c7d00206f77d19a6fbfea73a44ff6f2
perf strlist: Don't write to const memory

Do a strdup to the list string and parse from it, free at the end.

This is to deal with newer glibcs const-correctness.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/strlist.c