I was surprised to see the LocalOffset can exceed uint32_t, but it
does happen and lead to crashes in one of our internal huge TU with a large
preamble.
with this patch, the crash is gone.
Paths
| Differential D79397
[clang] Fix an uint32_t overflow in large preamble. ClosedPublic Authored by hokein on May 5 2020, 12:30 AM.
Details
Summary I was surprised to see the LocalOffset can exceed uint32_t, but it with this patch, the crash is gone.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.May 5 2020, 1:02 AM Closed by commit rG4f8d9722b499: [clang] Fix an uint32_t overflow in large preamble. (authored by hokein). · Explain WhyMay 5 2020, 2:06 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 262029 clang/include/clang/Serialization/ASTReader.h
clang/include/clang/Serialization/ASTRecordReader.h
clang/lib/Serialization/ASTReaderDecl.cpp
|