mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-24 11:54:01 +00:00
Avoid segfaults due to unsigned integer underruns
Fix for bug 698.
This commit is contained in:
parent
6be52374a6
commit
6863f5fe2f
@ -1,3 +1,8 @@
|
||||
2012-01-07 Moritz Bunkus <moritz@bunkus.org>
|
||||
|
||||
* mkvmerge: bug fix: Fixed a segmentation fault in the DTS
|
||||
detection code. Fix for bug 698.
|
||||
|
||||
2012-01-05 Moritz Bunkus <moritz@bunkus.org>
|
||||
|
||||
* mkvextract: bug fix: The track IDs used in the "timecodes_v2"
|
||||
|
@ -316,7 +316,7 @@ find_consecutive_dts_headers(const unsigned char *buf,
|
||||
int offset = dts_header.frame_byte_size;
|
||||
unsigned int i;
|
||||
for (i = 0; (num - 1) > i; ++i) {
|
||||
if ((size - base - offset) < 2)
|
||||
if (size < (2 + base + offset))
|
||||
break;
|
||||
|
||||
pos = find_dts_header(&buf[base + offset], size - base - offset, &new_header, false);
|
||||
|
Loading…
Reference in New Issue
Block a user