core: Fix ordered chapter timeline building memory corruption
commitde11a44bba877d46cfa3b5150cc191453bf97fed
authorUoti Urpala <uau@glyph.nonexistent.invalid>
Wed, 2 Dec 2009 10:24:19 +0000 (2 12:24 +0200)
committerUoti Urpala <uau@glyph.nonexistent.invalid>
Wed, 2 Dec 2009 10:38:13 +0000 (2 12:38 +0200)
tree53d44d9937f800ce3b173c8725eb5407f7b1c931
parent74fd43cf701e1cd17c7a28cf0898a169004b9242
core: Fix ordered chapter timeline building memory corruption

Two arrays were allocated one element too small, causing writes beyond
the allocated area. The bug was triggered when playing a Matroska file
with ordered chapters where each chapter came from a different source
and none of the sources was the original file.

Noticed by Daniel Dawson <ddawson@icehouse.net>
mplayer.c