summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorUoti Urpala <uau@mplayer2.org>2012-10-29 19:58:35 +0200
committerwm4 <wm4@nowhere>2012-11-01 02:12:17 +0100
commit02daf37328c57ab12bd086a0d4ce91a5f6d70a97 (patch)
treea8d09632c9446409241aac867d360798992c4dc8 /stream
parentc5eeac66544d6405701f3ffd1134964fbbf8ed51 (diff)
downloadmpv-02daf37328c57ab12bd086a0d4ce91a5f6d70a97.tar.bz2
mpv-02daf37328c57ab12bd086a0d4ce91a5f6d70a97.tar.xz
demux_mkv: fix a hang with invalid files
ebml_read_length() could return a negative value (as uint64_t though) at EOF, and this would then make ebml_read_skip() seek backwards. This could lead to an infinite loop at EOF with corrupt files. Add an extra check to make ebml_read_length() return EBML_UINT_INVALID instead if EOF is hit in the middle of parsing.
Diffstat (limited to 'stream')
0 files changed, 0 insertions, 0 deletions