Fix a use after free on invalid input.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193737 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola
2013-10-31 04:20:23 +00:00
parent 8f4397799f
commit cc8c673e61
3 changed files with 8 additions and 5 deletions
+7
View File
@@ -0,0 +1,7 @@
; RUN: not llvm-dis < %s.bc 2>&1 | FileCheck %s
; CHECK: llvm-dis: Unknown attribute kind
; invalid.ll.bc has an invalid attribute number.
; The test checks that LLVM reports the error and doesn't access freed memory
; in doing so.
Binary file not shown.