corrupt.test 1.1 KB

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