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 lavdevice: Add AudioToolbox output device. 2020-06-15 15:09:33 +02:00
alldevices.c lavdevice: Add AudioToolbox output device. 2020-06-15 15:09:33 +02:00
alsa.c
alsa.h
alsa_dec.c
alsa_enc.c
android_camera.c
audiotoolbox.m lavdevice: Add AudioToolbox output device. 2020-06-15 15:09:33 +02:00
avdevice.c Silence "string-plus-int" warning shown by clang. 2020-01-06 22:38:56 +01:00
avdevice.h
avdeviceres.rc
avfoundation.m avfoundation: Fix building on iOS 2020-04-30 14:21:47 +02:00
bktr.c
caca.c
decklink_common.cpp avdevice/decklink: add support for SDK version 11.5 2020-02-26 21:32:56 +01:00
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 avdevice/decklink: deprecate the -list_devices option 2020-01-03 18:13:22 +01:00
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/lavfi: check avfilter_graph_dump return value 2019-11-29 19:58:35 +01:00
libavdevice.v
libcdio.c
libdc1394.c
openal-dec.c
opengl_enc.c avdevice/opengl: add support of wrapped avframe codec 2020-04-16 23:52:12 +02:00
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 avdevice/v4l2enc: Allow writing non-rawvideos to v4l2. 2020-05-09 15:44:43 +01:00
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 avdevice/xv: add support of wrapped avframe codec 2020-04-16 23:52:12 +02:00