mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-20 04:40:02 +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>
This commit is contained in:
parent
c6522229b8
commit
6a4ec30af4
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