[qt/crashpad/crashpad]: Summary of bulk changes made

KDE Git Services - Bulk Change <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git repository change summary for qt/crashpad/crashpad
Pushed by mirror-service into branch 'upstream/main'.
Changed from efdc820b087c20eec9e32cb5e5b1a63dcf73a724 to 526fd4a0352b8cad48331fdcc504acde0f6a5c41
Acknowledgement was received that this change introduces only existing code that has been pushed to another public open source repository.

This change contains the following new commits:

Git commit 526fd4a0352b8cad48331fdcc504acde0f6a5c41 by [email protected] (on behalf of Joshua Peraza) on 24/07/2026 at 16:46..
Clamp aligned_offset in MemorySnapshotSanitized

MemorySanitizer::Sanitize() computes the number of leading unaligned
bytes from the snapshot's base address and uses it as the length of a
memcpy into the data buffer and as the subtrahend for the word count.
When the snapshot is shorter than the alignment offset (an unaligned
base address with a sub-word region), the leading memcpy writes past the
end of the buffer and the word count underflows.

Clamp the offset to the buffer size so that short unaligned regions are
defaced in place.

Add MemorySnapshotSanitized.ShortUnalignedRegion64/32 unit tests
covering every (offset, size) pair below the pointer width.

Bug: 500097298
Change-Id: Ib58b96250631f760329f16d30a0e7b8b062394f2
Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/8138617
Reviewed-by: Mark Mentovai <[email protected]>
Commit-Queue: Joshua Peraza <[email protected]>
https://invent.kde.org/qt/crashpad/crashpad/-/commit/526fd4a0352b8cad48331fdcc504acde0f6a5c41
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.