mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 11:12:36 +01:00
Merge pull request #1892 from ivandrofly/dvdsubrip
[DvdSubRip] - Fix possible 'index-out-range' cause.
This commit is contained in:
commit
e11729ccbf
@ -357,7 +357,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
|
||||
internal static bool IsPrivateStream2(byte[] buffer, int index)
|
||||
{
|
||||
return buffer.Length >= index + 3 &&
|
||||
return buffer.Length > index + 3 &&
|
||||
buffer[index + 0] == 0 &&
|
||||
buffer[index + 1] == 0 &&
|
||||
buffer[index + 2] == 1 &&
|
||||
|
Loading…
Reference in New Issue
Block a user