Michael J. Spencer | 126973b | 2013-08-08 22:27:13 +0000 | [diff] [blame^] | 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 | |
| 5 | // Section data offset past end of file. |
| 6 | RUN: not llvm-readobj %p/Inputs/corrupt.elf-x86-64 -sections -section-data \ |
| 7 | RUN: 2>&1 | FileCheck --check-prefix=SECDATA %s |
| 8 | |
| 9 | // Symbol name offset overflows string table. |
| 10 | RUN: not llvm-readobj %p/Inputs/corrupt.elf-x86-64 -symbols \ |
| 11 | RUN: 2>&1 | FileCheck --check-prefix=SYMNAME %s |
| 12 | |
| 13 | // Version index in .gnu.version overflows the version map. |
| 14 | RUN: not llvm-readobj %p/Inputs/corrupt-version.elf-x86_64 -dt \ |
| 15 | RUN: 2>&1 | FileCheck --check-prefix=VER %s |
| 16 | |
| 17 | SECNAME: Error reading file: Invalid data was encountered while parsing the file. |
| 18 | |
| 19 | SECDATA: Error reading file: Invalid data was encountered while parsing the file. |
| 20 | SECDATA: Error reading file: Invalid data was encountered while parsing the file. |
| 21 | |
| 22 | SYMNAME: Error reading file: Invalid data was encountered while parsing the file. |
| 23 | |
| 24 | VER: Error reading file: Invalid data was encountered while parsing the file. |