[PATCH] D108747: [llvm][ProfileData] Add a warning to indicate potentially corrupted data
Roland McGrath via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 26 09:48:25 PDT 2021
mcgrathr added a comment.
The intent is to sanity-check for garbage header fields. The uncompressed size field is one that you can only warn about heuristically like this I guess. But you can do a definitive test on the CompressedSize field to ensure that it isn't larger than the actual size of the data available. There's no need to even worry about whether UncompressedSize is valid if CompressedSize is clearly invalid.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D108747/new/
https://reviews.llvm.org/D108747
More information about the llvm-commits
mailing list