[PATCH] D63191: [lld][ELF] Check length of subsection in .ARM.attributes
Eugene Leviant via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 13 06:39:48 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL363261: [lld][ELF] Add tests for bad subsection length in .ARM.attributes (authored by evgeny777, committed by ).
Herald added a project: LLVM.
Changed prior to commit:
https://reviews.llvm.org/D63191?vs=204265&id=204520#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D63191/new/
https://reviews.llvm.org/D63191
Files:
lld/trunk/test/ELF/invalid/bad-arm-attributes.s
lld/trunk/test/ELF/invalid/bad-arm-attributes2.s
Index: lld/trunk/test/ELF/invalid/bad-arm-attributes2.s
===================================================================
--- lld/trunk/test/ELF/invalid/bad-arm-attributes2.s
+++ lld/trunk/test/ELF/invalid/bad-arm-attributes2.s
@@ -0,0 +1,8 @@
+# REQUIRES: arm
+# RUN: llvm-mc -filetype=obj -triple=arm-unknown-linux %s -o %t
+# RUN: ld.lld %t -o /dev/null 2>&1 | FileCheck %s
+
+# CHECK: invalid subsection length 4294967295 at offset 1
+
+.section .ARM.attributes,"a",%0x70000003
+ .byte 0, 0xFF, 0xFF, 0xFF, 0xFF
Index: lld/trunk/test/ELF/invalid/bad-arm-attributes.s
===================================================================
--- lld/trunk/test/ELF/invalid/bad-arm-attributes.s
+++ lld/trunk/test/ELF/invalid/bad-arm-attributes.s
@@ -0,0 +1,8 @@
+# REQUIRES: arm
+# RUN: llvm-mc -filetype=obj -triple=arm-unknown-linux %s -o %t
+# RUN: ld.lld %t -o /dev/null 2>&1 | FileCheck %s
+
+# CHECK: invalid subsection length 0 at offset 1
+
+.section .ARM.attributes,"a",%0x70000003
+ .quad 0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63191.204520.patch
Type: text/x-patch
Size: 1002 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190613/dd9090ef/attachment.bin>
More information about the llvm-commits
mailing list