Moritz Barsnick
2250dc4044
avdevice/xcbgrab: check return values of xcb query functions
...
Fixes #7312 , segmentation fault on close of X11 server
xcb_query_pointer_reply() and xcb_get_geometry_reply() can return NULL
if e.g. the X server closes or the connection is lost. This needs to
be checked in order to cleanly exit, because the returned pointers are
dereferenced later.
Signed-off-by: Moritz Barsnick <barsnick@gmx.net>
Reviewed-by: Andriy Gelman <andriy.gelman@gmail.com>
2020-08-15 15:32:52 -04:00
..
2018-04-05 22:08:53 +01:00
2020-06-15 15:09:33 +02:00
2019-08-15 09:29:55 +08:00
2019-08-15 09:29:55 +08:00
2019-04-23 14:01:23 -08:00
2017-11-27 14:05:28 +01:00
2018-04-19 23:44:33 +02:00
2020-06-15 15:09:33 +02:00
2020-01-06 22:38:56 +01:00
2018-03-31 23:26:31 +01:00
2020-04-30 14:21:47 +02:00
2019-08-15 09:29:55 +08:00
2019-08-15 09:29:55 +08:00
2020-07-03 00:24:59 +02:00
2020-02-26 21:32:56 +01:00
2020-07-03 00:24:59 +02:00
2020-07-03 00:24:59 +02:00
2020-07-15 05:47:14 +08:00
2017-10-10 20:07:25 +02:00
2019-08-15 09:29:55 +08:00
2020-01-03 18:13:22 +01:00
2017-10-10 20:07:25 +02:00
2019-01-03 13:15:45 -03:00
2019-01-03 13:15:45 -03:00
2018-01-28 23:06:43 +01:00
2018-01-28 23:06:43 +01:00
2019-05-17 21:51:20 +08:00
2019-01-16 00:13:49 +01:00
2018-01-28 23:06:43 +01:00
2020-08-09 20:18:49 +01:00
2019-11-29 19:58:35 +01:00
2018-01-28 23:06:43 +01:00
2017-08-18 19:20:15 +02:00
2020-06-15 15:09:33 +02:00
2019-08-15 09:29:55 +08:00
2020-04-16 23:52:12 +02:00
2019-08-15 09:29:55 +08:00
2019-08-15 09:29:55 +08:00
2017-11-11 16:19:50 -03:00
2019-08-15 09:29:55 +08:00
2019-08-15 09:29:55 +08:00
2017-07-20 00:33:29 -03:00
2018-10-23 19:42:32 +02:00
2018-01-28 23:06:43 +01:00
2018-01-28 23:06:43 +01:00
2019-03-22 12:30:47 +01:00
2017-03-22 17:55:18 +01:00
2019-11-06 20:38:03 +01:00
2020-05-09 15:44:43 +01:00
2020-07-03 00:24:59 +02:00
2018-04-18 20:26:44 +02:00
2020-08-15 15:32:52 -04:00
2020-04-16 23:52:12 +02:00