mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 23:28:16 +00:00
flxdec: Allocate 0-initialized memory for the decoded frame
Otherwise we might leak arbitrary information from the uninitialized memory if not every pixel is written. https://scarybeastsecurity.blogspot.gr/2016/12/1days-0days-pocs-more-gstreamer-flic.html
This commit is contained in:
parent
bc2adef550
commit
96aaf889af
1 changed files with 2 additions and 2 deletions
|
@ -812,8 +812,8 @@ gst_flxdec_chain (GstPad * pad, GstObject * parent, GstBuffer * buf)
|
|||
}
|
||||
|
||||
/* create delta and output frame */
|
||||
flxdec->frame_data = g_malloc (flxdec->size);
|
||||
flxdec->delta_data = g_malloc (flxdec->size);
|
||||
flxdec->frame_data = g_malloc0 (flxdec->size);
|
||||
flxdec->delta_data = g_malloc0 (flxdec->size);
|
||||
|
||||
flxdec->state = GST_FLXDEC_PLAYING;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue