mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 02:24:22 +00:00
[BitcodeReader] Make sure abbrev records have at least one operand (record code)
Bug found with AFL fuzz. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238265 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
BIN
test/Bitcode/Inputs/invalid-abbrev-no-operands.bc
Normal file
BIN
test/Bitcode/Inputs/invalid-abbrev-no-operands.bc
Normal file
Binary file not shown.
@ -172,3 +172,8 @@ RUN: not llvm-dis -disable-output %p/Inputs/invalid-global-var-comdat-id.bc 2>&1
|
||||
RUN: FileCheck --check-prefix=INVALID-GVCOMDAT-ID %s
|
||||
|
||||
INVALID-GVCOMDAT-ID: Invalid global variable comdat ID
|
||||
|
||||
RUN: not llvm-dis -disable-output %p/Inputs/invalid-abbrev-no-operands.bc 2>&1 | \
|
||||
RUN: FileCheck --check-prefix=ABBREV-NO-OPS %s
|
||||
|
||||
ABBREV-NO-OPS: Abbrev record with no operands
|
||||
|
Reference in New Issue
Block a user