mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
mikmod_reader: Possible null pointer dereference:
gst_reader variable is being used before actually checking if it allocated properly https://bugzilla.gnome.org/show_bug.cgi?id=751306
This commit is contained in:
parent
2663388000
commit
5828713771
1 changed files with 5 additions and 3 deletions
|
@ -90,10 +90,12 @@ GST_READER_new (GstMikMod * mik)
|
|||
GST_READER *gst_reader;
|
||||
|
||||
gst_reader = (GST_READER *) g_malloc (sizeof (GST_READER));
|
||||
gst_reader->offset = 0;
|
||||
gst_reader->eof = 0;
|
||||
gst_reader->mik = mik;
|
||||
|
||||
if (gst_reader) {
|
||||
gst_reader->offset = 0;
|
||||
gst_reader->eof = 0;
|
||||
gst_reader->mik = mik;
|
||||
|
||||
gst_reader->core.Eof = &GST_READER_Eof;
|
||||
gst_reader->core.Read = &GST_READER_Read;
|
||||
gst_reader->core.Get = &GST_READER_Get;
|
||||
|
|
Loading…
Reference in a new issue