1// Section name offset overflows section name string table. 2RUN: not llvm-readobj %p/Inputs/corrupt.elf-x86-64 -sections \ 3RUN: 2>&1 | FileCheck --check-prefix=SECNAME %s 4 5// Section data offset past end of file. 6RUN: not llvm-readobj %p/Inputs/corrupt.elf-x86-64 -sections -section-data \ 7RUN: 2>&1 | FileCheck --check-prefix=SECDATA %s 8 9// Symbol name offset overflows string table. 10RUN: not llvm-readobj %p/Inputs/corrupt.elf-x86-64 -symbols \ 11RUN: 2>&1 | FileCheck --check-prefix=SYMNAME %s 12 13// Version index in .gnu.version overflows the version map. 14RUN: not llvm-readobj %p/Inputs/corrupt-version.elf-x86_64 -dt \ 15RUN: 2>&1 | FileCheck --check-prefix=VER %s 16 17SECNAME: Error reading file: Invalid data was encountered while parsing the file. 18 19SECDATA: Error reading file: Invalid data was encountered while parsing the file. 20SECDATA: Error reading file: Invalid data was encountered while parsing the file. 21 22SYMNAME: Error reading file: Invalid data was encountered while parsing the file. 23 24VER: Error reading file: Invalid data was encountered while parsing the file. 25