diff options
author | Moritz Barsnick <barsnick@gmx.net> | 2020-08-05 14:06:53 +0200 |
---|---|---|
committer | Andriy Gelman <andriy.gelman@gmail.com> | 2020-08-15 15:32:52 -0400 |
commit | 2250dc40443a2b1e54a8fbcaae9402fcaa1538dd (patch) | |
tree | af7aca5f38c231e0700c89c8ca8b284a5c96b49f /libavformat/avlanguage.c | |
parent | 161d7f3fee7467b96832cb8773b740065db194fb (diff) | |
download | ffmpeg-2250dc40443a2b1e54a8fbcaae9402fcaa1538dd.tar.gz |
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>
Diffstat (limited to 'libavformat/avlanguage.c')
0 files changed, 0 insertions, 0 deletions