| Commit-Queue | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
// Regression test for crbug.com/501862016.Mind CCing me on the bug?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
// Regression test for crbug.com/501862016.Mind CCing me on the bug?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Fix heap out-of-bounds read in DeviceDataManagerX11
Refactor XInput mask utility functions to use base::span for safer
memory access and explicit bounds checking. Previously, these functions
used raw pointers without size information, leading to potential
out-of-bounds reads when processing truncated XInput event masks sent by
the X server.
Specific changes:
- Update SetXinputMask and IsXinputMaskSet in xinput_util.h to
accept base::span<uint8_t> and base::span<const uint8_t>.
- Use base::as_byte_span, base::as_writable_byte_span, or
base::byte_span_from_ref at all call sites (including
DeviceDataManagerX11, TouchFactory, and various test utilities) to
pass masks safely.
- Add unit tests in xinput_util_unittest.cc verifying safe bounds
handling for both IsXinputMaskSet and SetXinputMask, using
EXPECT_DEATH_IF_SUPPORTED for the latter.
- Add regression test in device_data_manager_x11_unittest.cc for
GetEventData with truncated masks.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |