llvm-mirror/tools/llvm-cov
Fangrui Song adac7ac5fb [llvm-cov gcov] Don't require NUL terminator when reading files
.gcno, .gcda and source files can be modified while we are reading them. If the
concurrent modification of a file being read nullifies the NUL terminator
assumption, llvm-cov can trip over an assertion failure in MemoryBuffer::init.
This is not so rare - the source files can be in an editor and .gcda can be
written by an running process (if the process forks, when .gcda gets written is
probably more unpredictable).

There is no accompanying test because an assertion failure requires data
races with some involved setting.
2020-07-19 00:31:52 -07:00
..
CMakeLists.txt [llvm-cov] Add lcov tracefile export format. 2018-11-09 16:10:44 +00:00
CodeCoverage.cpp CoverageFilters.h - reduce unnecessary includes to forward declarations. NFC. 2020-05-27 16:57:47 +01:00
CoverageExporter.h Revert "[llvm-cov] Add option to whitelist filenames" 2019-10-29 22:38:38 -07:00
CoverageExporterJson.cpp [llvm-cov] Prevent llvm-cov from using too many threads 2020-04-24 15:28:25 -04:00
CoverageExporterJson.h Revert "[llvm-cov] Add option to whitelist filenames" 2019-10-29 22:38:38 -07:00
CoverageExporterLcov.cpp [llvm-cov] Add support for -skip-functions to lcov 2020-01-22 12:49:00 -08:00
CoverageExporterLcov.h Revert "[llvm-cov] Add option to whitelist filenames" 2019-10-29 22:38:38 -07:00
CoverageFilters.cpp CoverageFilters.h - reduce unnecessary includes to forward declarations. NFC. 2020-05-27 16:57:47 +01:00
CoverageFilters.h Fix -Wpedantic warning. NFC. 2020-05-27 15:57:03 -04:00
CoverageReport.cpp [llvm-cov] Prevent llvm-cov from using too many threads 2020-04-24 15:28:25 -04:00
CoverageReport.h Revert "[llvm-cov] Add option to whitelist filenames" 2019-10-29 22:38:38 -07:00
CoverageSummaryInfo.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
CoverageSummaryInfo.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CoverageViewOptions.h Revert r367649: Improve raw_ostream so that you can "write" colors using operator<< 2019-08-02 07:22:34 +00:00
gcov.cpp [llvm-cov gcov] Don't require NUL terminator when reading files 2020-07-19 00:31:52 -07:00
llvm-cov.cpp Revert r367649: Improve raw_ostream so that you can "write" colors using operator<< 2019-08-02 07:22:34 +00:00
LLVMBuild.txt Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
RenderingSupport.h Revert r367649: Improve raw_ostream so that you can "write" colors using operator<< 2019-08-02 07:22:34 +00:00
SourceCoverageView.cpp Revert "Remove redundant "std::move"s in return statements" 2020-02-10 07:07:40 -08:00
SourceCoverageView.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
SourceCoverageViewHTML.cpp Simplify string joins. NFCI. 2020-04-11 17:20:11 +02:00
SourceCoverageViewHTML.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
SourceCoverageViewText.cpp Revert r367649: Improve raw_ostream so that you can "write" colors using operator<< 2019-08-02 07:22:34 +00:00
SourceCoverageViewText.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
TestingSupport.cpp [Alignment][NFC] Remove unneeded llvm:: scoping on Align types 2019-09-27 12:54:21 +00:00