[llvm] [llvm-cov] - Output better error message when the error kind is `coveragemap_error::malforme`. (PR #65264)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 4 09:29:17 PDT 2023
================
@@ -634,7 +648,9 @@ class VersionedCovMapFuncRecordReader : public CovMapFuncRecordReader {
// Get the filenames.
if (CovBuf + FilenamesSize > CovBufEnd)
- return make_error<CoverageMapError>(coveragemap_error::malformed);
+ return make_error<CoverageMapError>(
+ coveragemap_error::malformed,
+ "filenames section is greater than buffer size");
----------------
MaskRay wrote:
larger
https://github.com/llvm/llvm-project/pull/65264
More information about the llvm-commits
mailing list