See https://trac.bunkus.org/ticket/1096 test case
id:000002,sig:06,src:000000,op:flip2,pos:582
+2014-12-19 Moritz Bunkus <moritz@bunkus.org>
+
+ * KaxBlock::ReadInternalHead(): fixed a off-by-one buffer overflow
+ if with EBML lacing and exactly one frame in the lace.
+
2013-09-17 mosu
New 1.4.1 version:
- Added new elements/classes DiscardPadding, CodecDelay and
cursor += SizeRead;
LastBufferSize -= FrameSize + SizeRead;
}
- SizeList[Index] = LastBufferSize;
+ if (Index <= FrameNum) // Safety check if FrameNum == 0
+ SizeList[Index] = LastBufferSize;
break;
case LACING_FIXED:
for (Index=0; Index<=FrameNum; Index++) {