Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix nullptr passed to memcpy in lld/COFF/Chunks.cpp
Summary: ubsan found that we sometimes pass nullptr to memcpy in SectionChunk::writeTo(). This change adds a check that avoids that. Reviewers: ruiu Reviewed By: ruiu Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D45789 llvm-svn: 330490
- Loading branch information