« Previous | Next » 

Revision 14d735bd

ID14d735bd4f7c1dda547d4a4bd3de31536ef11a2a
Parent cb9f7fd3
Child abb5f2b7

Added by Reimar Döffinger over 9 years ago

matroskadec: add generic element length validation.

This validate the length of a mkv element directly after reading
it.
This has the advantage that it is easy to add new limits and makes
it less likely to forget to add checks and also avoids issues like
bits of the length value above the first 32 being ignored because
the parsing functions only takes an int.
Previously discussed in the "mkv 0-byte integer parsing" thread.

Signed-off-by: Ronald S. Bultje <>
(cherry picked from commit 95ec3d4cacd084e2448c3a1aba420e7d8f00e19b)

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences