mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
rtpjpegdepay: sanity check for NULL qtable
Can happen (at least in crafted stream) Coverity 1208778
This commit is contained in:
parent
b1473491cf
commit
dfa2df1c88
1 changed files with 6 additions and 0 deletions
|
@ -665,6 +665,12 @@ gst_rtp_jpeg_depay_process (GstRTPBaseDepayload * depayload, GstBuffer * buf)
|
|||
goto no_qtable;
|
||||
}
|
||||
}
|
||||
|
||||
/* I think we can get here with a NULL qtable, so make sure we don't
|
||||
go dereferencing it in MakeHeaders if we do */
|
||||
if (!qtable)
|
||||
goto no_qtable;
|
||||
|
||||
/* max header length, should be big enough */
|
||||
outbuf = gst_buffer_new_and_alloc (1000);
|
||||
gst_buffer_map (outbuf, &map, GST_MAP_WRITE);
|
||||
|
|
Loading…
Reference in a new issue