mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
[PR #2192] fb: quiet -Wanalyzer-out-of-bounds warnings in fbOverlayCopyWindow()
PR: https://github.com/X11Libre/xserver/pull/2192
This commit is contained in:
committed by
Enrico Weigelt, metux IT consult
parent
3b81b8a9b9
commit
04d9972173
@@ -24,6 +24,7 @@
|
||||
|
||||
#include <dix-config.h>
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "include/shmint.h"
|
||||
@@ -210,6 +211,7 @@ fbOverlayCopyWindow(WindowPtr pWin, xPoint ptOldOrg, RegionPtr prgnSrc)
|
||||
/*
|
||||
* Compute the portion of each fb affected by this copy
|
||||
*/
|
||||
assert(pScrPriv->nlayers <= FB_OVERLAY_MAX);
|
||||
for (i = 0; i < pScrPriv->nlayers; i++) {
|
||||
RegionNull(&layerRgn[i]);
|
||||
RegionIntersect(&layerRgn[i], &rgnDst,
|
||||
|
||||
Reference in New Issue
Block a user