Don't overflow GCTable
authorFilipe Cabecinhas <me@filcab.net>
Thu, 30 Apr 2015 04:09:41 +0000 (04:09 +0000)
committerFilipe Cabecinhas <me@filcab.net>
Thu, 30 Apr 2015 04:09:41 +0000 (04:09 +0000)
commitdeedba2a369a693905c467b805449a3109fca6c7
tree0a55cbcbf0a67a82f1558e865fdaf81cb09fd6d1
parent36a398fe701802e6cdd25a6a8e7ff94bed7631d7
Don't overflow GCTable

Summary: Bug found with AFL fuzz.

Reviewers: rafael, dexonsmith

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D9361

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236200 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Bitcode/Reader/BitcodeReader.cpp
test/Bitcode/Inputs/invalid-GCTable-overflow.bc [new file with mode: 0644]
test/Bitcode/invalid.test