Details
Details
- Reviewers
eugenis - Commits
- rGf86db34defc3: [MSan] Move origins for overlapped memory transfer
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
@vitalybuka FYI
compiler-rt/lib/msan/msan_poisoning.cpp | ||
---|---|---|
131 | I think this loop does one extra iteration (compared to the one in CopyOrigin) because it starts at src_end instead of src_end - 1. | |
157 | You can just call it "MoveOrigin", same as memmove is a generalization of memcpy. |
Comment Actions
fixed the incorrect interation number.
Also removed that if (end < begin) check, end >= begin after the change.
compiler-rt/lib/msan/msan_poisoning.cpp | ||
---|---|---|
131 | Thank you for catching this. Fixed. |
I think this loop does one extra iteration (compared to the one in CopyOrigin) because it starts at src_end instead of src_end - 1.