[vlc-devel] [PATCH] Fix crash in invalid MKV files

Cheng Sun chengsun9 at gmail.com
Wed Nov 23 22:56:27 CET 2011


This patch fixes a crash in invalid MKV files.

VirtualFromSegments can crash if the std::vector passed in is empty,
which can happen in corrupted files. This is just a simple check for
this  case, making it fail elegantly rather than crashing.

(Patch attached rather than inline, sorry for inconvenience)

- Cheng
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-crash-in-invalid-mkv-files.patch
Type: text/x-patch
Size: 2832 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20111123/65725a16/attachment.bin>


More information about the vlc-devel mailing list