diff options
author | George Rimar <grimar@accesssoftek.com> | 2016-10-27 11:44:56 +0000 |
---|---|---|
committer | George Rimar <grimar@accesssoftek.com> | 2016-10-27 11:44:56 +0000 |
commit | 7aa1626898d79438b440129e352883a630dee8b5 (patch) | |
tree | 390fb01b433edbbd18e3d684b5401ba066308918 /llvm/test/Object/invalid.test | |
parent | df0d75edf640995563f6e3b4fe13f03272a364a7 (diff) | |
download | bcm5719-llvm-7aa1626898d79438b440129e352883a630dee8b5.tar.gz bcm5719-llvm-7aa1626898d79438b440129e352883a630dee8b5.zip |
[Object/ELF] - Do not allow overflow when checking section size/offset.
Overflow was the reason of incorrect passing the check,
patch fixes the case.
Differentail revision: https://reviews.llvm.org/D25514
llvm-svn: 285284
Diffstat (limited to 'llvm/test/Object/invalid.test')
-rw-r--r-- | llvm/test/Object/invalid.test | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/Object/invalid.test b/llvm/test/Object/invalid.test index 352917987de..a0016fef9d5 100644 --- a/llvm/test/Object/invalid.test +++ b/llvm/test/Object/invalid.test @@ -72,3 +72,7 @@ INVALID-RELOC-SH-OFFSET: Invalid data was encountered while parsing the file RUN: not llvm-readobj -t %p/Inputs/invalid-sections-address-alignment.x86-64 2>&1 | \ RUN: FileCheck --check-prefix=INVALID-SEC-ADDRESS-ALIGNMENT %s INVALID-SEC-ADDRESS-ALIGNMENT: Invalid data was encountered while parsing the file + +RUN: not llvm-readobj -t %p/Inputs/invalid-section-size2.elf 2>&1 | \ +RUN: FileCheck --check-prefix=INVALID-SECTION-SIZE2 %s +INVALID-SECTION-SIZE2: Invalid data was encountered while parsing the file. |