mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 05:22:04 +00:00
Verify sizes when trying to read a BitcodeAbbrevOp
Summary: Make sure the abbrev operands are valid and that we can read/skip them afterwards. Bug found with AFL fuzz. Reviewers: rafael Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D9030 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235595 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -66,3 +66,10 @@ RUN: not llvm-dis -disable-output %p/Inputs/invalid-fp-shift.bc 2>&1 | \
|
||||
RUN: FileCheck --check-prefix=FP-SHIFT %s
|
||||
|
||||
FP-SHIFT: Invalid record
|
||||
|
||||
RUN: not llvm-dis -disable-output %p/Inputs/invalid-abbrev-vbr-size-too-big.bc 2>&1 | \
|
||||
RUN: FileCheck --check-prefix=HUGE-ABBREV-OP %s
|
||||
RUN: not llvm-dis -disable-output %p/Inputs/invalid-abbrev-fixed-size-too-big.bc 2>&1 | \
|
||||
RUN: FileCheck --check-prefix=HUGE-ABBREV-OP %s
|
||||
|
||||
HUGE-ABBREV-OP: Fixed or VBR abbrev record with size > MaxChunkData
|
||||
|
||||
Reference in New Issue
Block a user