Skip to content

Commit 466edd1

Browse files
OSS-Fuzz Teamcopybara-github
authored andcommitted
Allow non-x86_64 loader
Indexer-PiperOrigin-RevId: 839756050
1 parent c72ef09 commit 466edd1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

infra/indexer/index/file_copier.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ void FileCopier::CopyIndexedFiles() {
104104

105105
DLOG(INFO) << "\nFrom: " << src_path << "\n To: " << dst_path << "\n";
106106

107+
if (!std::filesystem::exists(src_path)) {
108+
LOG(WARNING) << "Skipping non-existent file: " << src_path;
109+
continue;
110+
}
111+
107112
QCHECK(std::filesystem::exists(src_path))
108113
<< "Source file does not exist: " << src_path;
109114

0 commit comments

Comments
 (0)