[all-commits] [llvm/llvm-project] 0ec5f5: Harden IR and bitcode parsers against infinite siz...
Eli Friedman via All-commits
all-commits at lists.llvm.org
Sat May 16 14:25:30 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 0ec5f501964010d4a186a51438338656eebe7912
https://github.com/llvm/llvm-project/commit/0ec5f501964010d4a186a51438338656eebe7912
Author: Eli Friedman <efriedma at quicinc.com>
Date: 2020-05-16 (Sat, 16 May 2020)
Changed paths:
M llvm/lib/AsmParser/LLParser.cpp
M llvm/lib/Bitcode/Reader/BitcodeReader.cpp
A llvm/test/Verifier/recursive-type-load.ll
A llvm/test/Verifier/recursive-type-store.ll
Log Message:
-----------
Harden IR and bitcode parsers against infinite size types.
If isSized is passed a SmallPtrSet, it uses that set to catch infinitely
recursive types (for example, a struct that has itself as a member).
Otherwise, it just crashes on such types.
More information about the All-commits
mailing list