From 86b2fe2e0fabb35980777d25822ecb94207af4d2 Mon Sep 17 00:00:00 2001 From: Jean Christophe DE RYCK Date: Thu, 9 May 2024 20:12:56 +0100 Subject: [PATCH] Fix issue #874 --- tsMuxer/matroskaDemuxer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsMuxer/matroskaDemuxer.cpp b/tsMuxer/matroskaDemuxer.cpp index 0c2efb6d..e5378588 100644 --- a/tsMuxer/matroskaDemuxer.cpp +++ b/tsMuxer/matroskaDemuxer.cpp @@ -576,7 +576,7 @@ int MatroskaDemuxer::matroska_parse_block(uint8_t *data, int size, const int64_t case 0x3: /* EBML lacing */ { n = matroska_ebmlnum_uint(data, size, &num); - if (n < 0 || n >= laces) + if (n < 0 || n > laces) { LTRACE(LT_INFO, 0, "EBML block data error"); break;