1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-26 10:14:33 +00:00
mpv/demux
wm4 cf14511b1d demux_mkv_timeline: fix potential issue when enabling cache
If the cache is enabled, the demuxer is closed and opened again (because
currently, the cache can not be enabled atfer data was already read).
The call for opening a new demuxer uses the same params struct, which
references the ctx->uids array. But there is a MP_TARRAY_GROW()
invocation somewhere on the way, which can reallocate the ctx->uids
array, making params.uids a dangling pointer.

This issue probably existed for a longer time, probably since 5cd33853
(slightly more obvious since f50b105d).

(cherry picked from commit 9349cfca91)
2015-02-26 11:01:25 +09:00
..
codec_tags.c demux_mkv: support embedded coverart 2014-12-22 12:53:51 +01:00
codec_tags.h demux_mkv: support embedded coverart 2014-12-22 12:53:51 +01:00
demux_cue.c demux: remove file_contents field 2015-02-19 13:39:39 +09:00
demux_disc.c demux_disc: fix CDDA seekability 2015-02-03 19:32:30 +01:00
demux_edl.c demux: remove file_contents field 2015-02-19 13:39:39 +09:00
demux_lavf.c demux_lavf: apply hacks even if format is forced 2015-02-21 20:48:15 +09:00
demux_libass.c
demux_mf.c demux_mf: move mf.c contents to demux_mf.c 2014-12-29 23:09:50 +01:00
demux_mkv_timeline.c demux_mkv_timeline: fix potential issue when enabling cache 2015-02-26 11:01:25 +09:00
demux_mkv.c demux_mkv: minor refactor for deferred cue reading 2015-02-26 10:39:02 +09:00
demux_playlist.c demux_playlist: unquote entries in pls playlists 2014-12-30 13:24:43 +01:00
demux_raw.c demux_raw: output smaller audio packets 2015-02-04 10:42:23 +01:00
demux_subreader.c command: export file format as property 2015-01-23 15:59:06 +01:00
demux_tv.c
demux.c demux, matroska: remove demuxer type field 2015-02-19 13:39:39 +09:00
demux.h demux, matroska: remove demuxer type field 2015-02-19 13:39:39 +09:00
ebml.c demux_mkv: fix EBML parsing checks 2015-01-12 14:31:31 +01:00
ebml.h
matroska.h matroska: make timeline code independent of MPContext 2015-02-19 13:39:38 +09:00
packet.c demux_mkv: refactor packet parsing 2015-02-05 21:52:07 +01:00
packet.h demux_mkv: refactor packet parsing 2015-02-05 21:52:07 +01:00
stheader.h video: remove redundant codec parameters 2015-02-25 11:08:15 +09:00
timeline.c player: use a separate context for timeline loader stuff 2015-02-19 13:39:38 +09:00
timeline.h player: use a separate context for timeline loader stuff 2015-02-19 13:39:38 +09:00