All new elements except the last one initialized to NULL. Ideally, once parsing is...
authorKarthik Bhat <kv.bhat@samsung.com>
Thu, 27 Mar 2014 12:08:23 +0000 (12:08 +0000)
committerKarthik Bhat <kv.bhat@samsung.com>
Thu, 27 Mar 2014 12:08:23 +0000 (12:08 +0000)
commit6ac86cf119640b71328a3530f2906a86487696c9
treeccb887442b20799b2f739a5a83d0cbd3be4972ca
parent0d811741fbb559de49c984efa42642cf488bb379
All new elements except the last one initialized to NULL. Ideally, once parsing is complete, all elements should be non-NULL.
To safe-guard BitcodeReader, this patch adds null check for all access to these list.
Patch by Dinesh Dwivedi!

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