Files
xserver/os
Alan Coopersmith f089b652cd os: handle memory allocation failure in get_mcast_options()
Since this is in initial startup, and other errors in this function are
already fatal, just make allocation failure of this small structure be
fatal as well, since if the X server is already out of memory it will
be dying soon anyway.

Reported in #1817:
xwayland-24.1.6/redhat-linux-build/../os/xdmcp.c:1514:13:
 warning[-Wanalyzer-possible-null-dereference]:
  dereference of possibly-NULL ‘mcastinfo’
xwayland-24.1.6/redhat-linux-build/../os/xdmcp.c:1513:25:
 acquire_memory: this call could return NULL
xwayland-24.1.6/redhat-linux-build/../os/xdmcp.c:1514:13:
 danger: ‘mcastinfo’ could be NULL: unchecked value from (9)

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2163>
2026-04-04 16:00:44 +00:00
..
2026-01-25 10:39:53 -08:00
2026-03-03 06:50:01 -03:00
2026-01-25 10:39:53 -08:00
2026-01-19 12:47:57 -08:00
2026-01-25 10:40:02 -08:00
2026-03-14 17:07:55 -07:00
2016-07-21 15:04:47 -04:00
2012-03-21 13:54:42 -07:00
2012-03-21 13:54:42 -07:00
2026-01-19 12:32:20 -08:00
2013-10-31 16:58:12 -07:00