OSDN Git Service

Revert [BitcodeReader] Validate OpNum, before accessing Record array.
authorFlorian Hahn <flo@fhahn.com>
Thu, 11 Jul 2019 10:53:40 +0000 (10:53 +0000)
committerFlorian Hahn <flo@fhahn.com>
Thu, 11 Jul 2019 10:53:40 +0000 (10:53 +0000)
commit4f3a95e57a4a46648f790e5065bed0e64fe98d64
tree4810e0d7b3f65d6f546fd8e278139b38a12c83b5
parent11453089a8562432383d96aaf2271208c35ce5ec
Revert [BitcodeReader] Validate OpNum, before accessing Record array.

This reverts r365750 (git commit 8b222ecf2769ee133691f208f6166ce118c4a164)

llvm-dis runs out of memory while opening invalid-fcmp-opnum.bc on
llvm-hexagon-elf, probably because the bitcode file contains other
suspicious values.

http://lab.llvm.org:8011/builders/llvm-hexagon-elf/builds/21949

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365757 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Bitcode/Reader/BitcodeReader.cpp
test/Bitcode/Inputs/invalid-fcmp-opnum.bc [deleted file]
test/Bitcode/invalid.test