Good to hear from you. Welcome back!
# There’s no way to make the link depend on this file. “inputs” doesn’t have
# the intended effect in a config. https://crbug.com/781858,
# https://crbug.com/796187.This was formatted correctly before!
(Oh, I know what this is, it’s the thing where `gn format` counts bytes instead of UTF-8 characters. Bad `gn format`!)
((address_ + sizeof(Pointer) - 1) & ~(sizeof(Pointer) - 1)) - address_;`#include <algorithm>` and use `std::min(size, …)`, and then `aligned_offset` can even remain `const`.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Good to hear from you. Welcome back!
Thanks!
# There’s no way to make the link depend on this file. “inputs” doesn’t have
# the intended effect in a config. https://crbug.com/781858,
# https://crbug.com/796187.This was formatted correctly before!
(Oh, I know what this is, it’s the thing where `gn format` counts bytes instead of UTF-8 characters. Bad `gn format`!)
Reformat reverted.
((address_ + sizeof(Pointer) - 1) & ~(sizeof(Pointer) - 1)) - address_;`#include <algorithm>` and use `std::min(size, …)`, and then `aligned_offset` can even remain `const`.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
Bug:500097298Missing a space after the colon.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Missing a space after the colon.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
3 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
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.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |