ffmpeg/libavdevice
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
..
tests
.gitignore
Makefile
alldevices.c
alsa.c
alsa.h
alsa_dec.c
alsa_enc.c
android_camera.c
audiotoolbox.m
avdevice.c
avdevice.h
avdeviceres.rc
avfoundation.m
bktr.c
caca.c
decklink_common.cpp
decklink_common.h avdevice/decklink_dec: add support for extracting and outputing klv from vanc 2020-07-03 00:24:59 +02:00
decklink_common_c.h avdevice/decklink_dec: add support for extracting and outputing klv from vanc 2020-07-03 00:24:59 +02:00
decklink_dec.cpp avdevice/decklink_dec: export timecode with s12m side data 2020-07-15 05:47:14 +08:00
decklink_dec.h
decklink_dec_c.c avdevice/decklink_dec: add support for extracting and outputing klv from vanc 2020-07-03 00:24:59 +02:00
decklink_enc.cpp
decklink_enc.h
decklink_enc_c.c
dshow.c
dshow_capture.h
dshow_common.c
dshow_crossbar.c
dshow_enummediatypes.c
dshow_enumpins.c
dshow_filter.c
dshow_pin.c
fbdev_common.c
fbdev_common.h
fbdev_dec.c
fbdev_enc.c
file_open.c
gdigrab.c
iec61883.c
internal.h
jack.c
kmsgrab.c kmsgrab: Add more supported formats 2020-08-09 20:18:49 +01:00
lavfi.c
libavdevice.v
libcdio.c
libdc1394.c
openal-dec.c
opengl_enc.c
opengl_enc_shaders.h
oss.c
oss.h
oss_dec.c
oss_enc.c
pulse_audio_common.c
pulse_audio_common.h
pulse_audio_dec.c
pulse_audio_enc.c
reverse.c
sdl2.c
sndio.c
sndio.h
sndio_dec.c
sndio_enc.c
timefilter.c
timefilter.h
utils.c
v4l2-common.c
v4l2-common.h
v4l2.c
v4l2enc.c
version.h avdevice/decklink_dec: add support for extracting and outputing klv from vanc 2020-07-03 00:24:59 +02:00
vfwcap.c
xcbgrab.c avdevice/xcbgrab: check return values of xcb query functions 2020-08-15 15:32:52 -04:00
xv.c