diff options
author | 2021-03-15 13:08:35 +0100 | |
---|---|---|
committer | 2021-03-18 11:36:01 +0100 | |
commit | e20f67026b5ead2afc5627e98b45e6b65e7fb38c (patch) | |
tree | cc2daafd2dc8234c51457061defba8da4996212a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | selftests/x86: Add a missing .note.GNU-stack section to thunks_32.S (diff) | |
download | linux-dev-e20f67026b5ead2afc5627e98b45e6b65e7fb38c.tar.xz linux-dev-e20f67026b5ead2afc5627e98b45e6b65e7fb38c.zip |
tools/x86/kcpuid: Check last token too
Input lines like
0x8000001E, 0, EAX, 31:0, Extended APIC ID
where the short name is missing lead to a segfault because the loop
takes the long name for the short name and tokens[5] becomes NULL which
explodes later in strcpy().
Check its value too before further processing.
Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Feng Tang <feng.tang@intel.com>
Link: https://lkml.kernel.org/r/20210315125901.30315-1-bp@alien8.de
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions