summaryrefslogtreecommitdiff
path: root/surface.c
diff options
context:
space:
mode:
authorAlexander Orzechowski <[email protected]>2022-09-27 20:07:08 -0400
committerKirill Primak <[email protected]>2022-10-10 08:09:55 +0000
commit8e19a9e3e4e2c7340706c89071d0c8dfb57717d1 (patch)
treeb3b1b7f9056d9e4c0f576985ddb6d4f74c2d9cb8 /surface.c
parent096de5d937149d86d1fc1e724b82c49a18215a15 (diff)
wlr_scene: Be resilient against overflow conditions
If the area calculations for output overlap overflow a signed int, we may not consider it to be a primary output. Turn this into an unsigned type so this happens less frequently. Additionally, it is possible the overflow would produce 0, we can handle this by simply changing the comparison to more than or equal. While we're here, let's assert that we always assign a primary output if there are any intersecting outputs.
Diffstat (limited to 'surface.c')
0 files changed, 0 insertions, 0 deletions