mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-22 23:24:59 +00:00
Verify sizes when trying to read a VBR
Also added an assert to ReadVBR64. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234984 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
BIN
test/Bitcode/Inputs/invalid-VBR-too-big.bc
Normal file
BIN
test/Bitcode/Inputs/invalid-VBR-too-big.bc
Normal file
Binary file not shown.
@@ -55,3 +55,8 @@ RUN: not llvm-dis -disable-output %p/Inputs/invalid-no-proper-module.bc 2>&1 | \
|
||||
RUN: FileCheck --check-prefix=NO-MODULE %s
|
||||
|
||||
NO-MODULE: Malformed IR file
|
||||
|
||||
RUN: not llvm-dis -disable-output %p/Inputs/invalid-VBR-too-big.bc 2>&1 | \
|
||||
RUN: FileCheck --check-prefix=HUGE-VBR %s
|
||||
|
||||
HUGE-VBR: Invalid record
|
||||
|
Reference in New Issue
Block a user