projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3fbfa1
)
imagefreeze: fix use-after-free on seek event
author
Tim-Philipp Müller
<tim@centricular.com>
Mon, 3 Jul 2017 19:27:29 +0000
(20:27 +0100)
committer
Tim-Philipp Müller
<tim@centricular.com>
Wed, 5 Jul 2017 22:52:14 +0000
(23:52 +0100)
Get seqnum before unreffing the seek event.
https://bugzilla.gnome.org/show_bug.cgi?id=784486
gst/imagefreeze/gstimagefreeze.c
patch
|
blob
|
history
diff --git
a/gst/imagefreeze/gstimagefreeze.c
b/gst/imagefreeze/gstimagefreeze.c
index
b3ab9c0
..
a4e381c
100644
(file)
--- a/
gst/imagefreeze/gstimagefreeze.c
+++ b/
gst/imagefreeze/gstimagefreeze.c
@@
-573,6
+573,7
@@
gst_image_freeze_src_event (GstPad * pad, GstObject * parent, GstEvent * event)
gboolean flush;
guint32 seqnum;
+ seqnum = gst_event_get_seqnum (event);
gst_event_parse_seek (event, &rate, &format, &flags, &start_type, &start,
&stop_type, &stop);
gst_event_unref (event);
@@
-600,7
+601,6
@@
gst_image_freeze_src_event (GstPad * pad, GstObject * parent, GstEvent * event)
}
}
- seqnum = gst_event_get_seqnum (event);
if (flush) {
GstEvent *e;