forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to src/utils/region.rsClear filter

2026-08-24

utils/region: Use saturating math for rect extremitiesWitteShadovv · 2149706
utils/region: Use saturating math for rect extremities

Region rects arrive from the client through wl_region.add() unclamped,
so a rect like (0, i32::MAX, 1, 1) overflows r.loc.y + r.size.h. That's
a panic with overflow-checks = true in the release profile, and it takes
the whole session down with it.

ext-background-effect is created without the client_is_unrestricted
filter, so a client on a security-context socket can get here by setting
such a region as its blur region.

Saturating matches what smithay's Point and Size operators already do,
and the region gets clipped during rendering anyway, so nothing changes
for sensible coordinates.

2026-04-14