summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/libxed.py
diff options
context:
space:
mode:
authorMatthew Maurer <mmaurer@google.com>2024-10-16 02:16:45 +0300
committerLuis Chamberlain <mcgrof@kernel.org>2024-10-20 00:35:07 +0300
commitd979e3dffa93c9284f244ef64f7a68042c2f8b80 (patch)
treee264d3c6e50bd1d7dfca1495594ebd40947605e6 /tools/perf/scripts/python/libxed.py
parent837031e052af32c747906238fb1feb87778e4fe0 (diff)
downloadlinux-d979e3dffa93c9284f244ef64f7a68042c2f8b80.tar.xz
module: Additional validation in elf_validity_cache_strtab
Validate properties of the strtab that are depended on elsewhere, but were previously unchecked: * String table nonempty (offset 0 is valid) * String table has a leading NUL (offset 0 corresponds to "") * String table is NUL terminated (strfoo functions won't run out of the table while reading). * All symbols names are inbounds of the string table. Signed-off-by: Matthew Maurer <mmaurer@google.com> Reviewed-by: Sami Tolvanen <samitolvanen@google.com> Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions