projects
/
platform
/
upstream
/
gst-plugins-bad.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6800d0c
)
tsdemux: reset iterator to NULL after it's free
author
Alessandro Decina
<alessandro.d@gmail.com>
Wed, 4 Apr 2012 05:24:28 +0000
(07:24 +0200)
committer
Alessandro Decina
<alessandro.d@gmail.com>
Wed, 4 Apr 2012 05:24:28 +0000
(07:24 +0200)
Fixes possible invalid memory access in gst_ts_demux_stream_flush
gst/mpegtsdemux/tsdemux.c
patch
|
blob
|
history
diff --git
a/gst/mpegtsdemux/tsdemux.c
b/gst/mpegtsdemux/tsdemux.c
index
8b97b8e
..
8f4d78d
100644
(file)
--- a/
gst/mpegtsdemux/tsdemux.c
+++ b/
gst/mpegtsdemux/tsdemux.c
@@
-1547,6
+1547,7
@@
beach:
memset (stream->pendingbuffers, 0, TS_MAX_PENDING_BUFFERS);
stream->nbpending = 0;
stream->current = NULL;
+ stream->currentit = NULL;
stream->expected_size = 0;
stream->current_size = 0;