mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-15 12:40:32 +01:00
glamor: avoid null dereference in glamor_composite_clipped_region()
Reported in #1817:
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_render.c:1577:21:
warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2094>
(cherry picked from commit 6a4ec30af4)
This commit is contained in:
parent
84dccbc45a
commit
2df83c5566
1 changed files with 1 additions and 1 deletions
|
|
@ -1573,7 +1573,7 @@ glamor_composite_clipped_region(CARD8 op,
|
|||
if (source
|
||||
&& ((!source->pDrawable
|
||||
&& (source->pSourcePict->type != SourcePictTypeSolidFill))
|
||||
|| (source->pDrawable
|
||||
|| (source->pDrawable && source_pixmap
|
||||
&& !GLAMOR_PIXMAP_PRIV_HAS_FBO(source_pixmap_priv)
|
||||
&& (source_pixmap->drawable.width != width
|
||||
|| source_pixmap->drawable.height != height)))) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue