[PATCH] Avoid crash reading bitcode files with bad abbrev record (bug 20485)
David Callahan
david013 at cs.washington.edu
Thu Jan 15 11:47:39 PST 2015
Hi rafael,
Modified bit code reader to return failure when an invalid abbrev record
is found. ReadAbbrevRecord modified to return "true" in this case and false on success.
Clients modified to check this return value.
REPOSITORY
rL LLVM
http://reviews.llvm.org/D7003
Files:
include/llvm/Bitcode/BitCodes.h
include/llvm/Bitcode/BitstreamReader.h
lib/Bitcode/Reader/BitstreamReader.cpp
test/Bitcode/bad-abbrev-record.txt
test/Bitcode/bad-abbrev-record.txt.bc
test/Bitcode/bad-abbrev-record.txt.stderr
test/ExecutionEngine/MCJIT/eh-lg-pic.ll
test/ExecutionEngine/MCJIT/eh-sm-pic.ll
test/ExecutionEngine/MCJIT/eh.ll
test/ExecutionEngine/MCJIT/multi-module-eh-a.ll
tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7003.18240.patch
Type: text/x-patch
Size: 6199 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150115/da770f69/attachment.bin>
More information about the llvm-commits
mailing list